PropertyInfo

Metadata of entity property

class PropertyInfo {}

Constructors

this
this(string propertyName, string columnName, Type columnType, int length, bool key, bool generated, bool nullable, string uniqueIndex, RelationType relation, string referencedEntityName, string referencedPropertyName, ReaderFunc reader, WriterFunc writer, GetVariantFunc getFunc, SetVariantFunc setFunc, KeyIsSetFunc keyIsSetFunc, IsNullFunc isNullFunc, CopyFunc copyFieldFunc, GeneratorFunc generatorFunc, GetObjectFunc getObjectFunc, SetObjectFunc setObjectFunc, GetCollectionFunc getCollectionFunc, SetCollectionFunc setCollectionFunc, SetObjectDelegateFunc setObjectDelegateFunc, SetCollectionDelegateFunc setCollectionDelegateFunc, IsLoadedFunc isLoadedFunc, bool lazyLoad, bool collection, JoinTableInfo joinTable)

Undocumented in source.

Members

Aliases

CopyFunc
alias CopyFunc = void function(Object, Object)

copy property from second passed object to first

GeneratorFunc
alias GeneratorFunc = Variant function(Connection conn, const PropertyInfo prop)

returns new generated primary key for property

GetCollectionFunc
alias GetCollectionFunc = Object[] function(Object)

returns OneToMany or ManyToMany property value as object array

GetObjectFunc
alias GetObjectFunc = Object function(Object)

returns OneToOne, ManyToOne or Embedded property as Object

GetVariantFunc
alias GetVariantFunc = Variant function(Object)

returns simple property as Variant

IsLoadedFunc
alias IsLoadedFunc = bool function(Object)

returns true if Lazy! or LazyCollection! property is loaded (no loader delegate set).

IsNullFunc
alias IsNullFunc = bool function(Object)

returns true if property value of object is not null

KeyIsSetFunc
alias KeyIsSetFunc = bool function(Object)

returns true if key property of object is set (similar to IsNullFunc but returns true if non-nullable number is 0.

ReaderFunc
alias ReaderFunc = void function(Object, DataSetReader, int index)

reads simple property value from data set to object

SetCollectionDelegateFunc
alias SetCollectionDelegateFunc = void function(Object, Object[] delegate())

sets lazy loader delegate for OneToMany, or ManyToMany property if it's LazyCollection! template instance

SetCollectionFunc
alias SetCollectionFunc = void function(Object, Object[])

sets OneToMany or ManyToMany property value from object array

SetObjectDelegateFunc
alias SetObjectDelegateFunc = void function(Object, Object delegate())

sets lazy loader delegate for OneToOne, or ManyToOne property if it's Lazy! template instance

SetObjectFunc
alias SetObjectFunc = void function(Object, Object)

sets OneToOne, ManyToOne or Embedded property as Object

SetVariantFunc
alias SetVariantFunc = void function(Object, Variant value)

sets simple property from Variant

WriterFunc
alias WriterFunc = void function(Object, DataSetWriter, int index)

writes simple property value to data set from object

Functions

getCollectionIds
Variant[] getCollectionIds(Object obj)

Undocumented in source. Be warned that the author may not have intended to support it.

opCmp
int opCmp(PropertyInfo s)

Undocumented in source. Be warned that the author may not have intended to support it.

opEquals
bool opEquals(PropertyInfo s)

Undocumented in source. Be warned that the author may not have intended to support it.

opHash
hash_t opHash()

Undocumented in source. Be warned that the author may not have intended to support it.

updateJoinTable
void updateJoinTable()

Undocumented in source. Be warned that the author may not have intended to support it.

Properties

columnOffset
int columnOffset [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

embedded
bool embedded [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

entity
const(EntityInfo) entity [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

joinTable
const(JoinTableInfo) joinTable [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

manyToMany
bool manyToMany [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

manyToOne
bool manyToOne [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

metadata
const(EntityMetaData) metadata [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

oneToMany
bool oneToMany [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

oneToOne
bool oneToOne [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

referencedEntity
const(EntityInfo) referencedEntity [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

referencedProperty
const(PropertyInfo) referencedProperty [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

simple
bool simple [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_columnOffset
int _columnOffset;

Undocumented in source.

_entity
EntityInfo _entity;

Undocumented in source.

_joinTable
JoinTableInfo _joinTable;

Undocumented in source.

_referencedEntity
EntityInfo _referencedEntity;

Undocumented in source.

_referencedProperty
PropertyInfo _referencedProperty;

Undocumented in source.

collection
bool collection;

Undocumented in source.

columnName
string columnName;

Undocumented in source.

columnType
Type columnType;

Undocumented in source.

copyFieldFunc
CopyFunc copyFieldFunc;

Undocumented in source.

generated
bool generated;

Undocumented in source.

generatorFunc
GeneratorFunc generatorFunc;

Undocumented in source.

getCollectionFunc
GetCollectionFunc getCollectionFunc;

Undocumented in source.

getFunc
GetVariantFunc getFunc;

Undocumented in source.

getObjectFunc
GetObjectFunc getObjectFunc;

Undocumented in source.

isLoadedFunc
IsLoadedFunc isLoadedFunc;

Undocumented in source.

isNullFunc
IsNullFunc isNullFunc;

Undocumented in source.

key
bool key;

Undocumented in source.

keyIsSetFunc
KeyIsSetFunc keyIsSetFunc;

Undocumented in source.

lazyLoad
bool lazyLoad;

Undocumented in source.

length
int length;

Undocumented in source.

nullable
bool nullable;

Undocumented in source.

propertyName
string propertyName;

Undocumented in source.

readFunc
ReaderFunc readFunc;

Undocumented in source.

referencedEntityName
string referencedEntityName;

Undocumented in source.

referencedPropertyName
string referencedPropertyName;

Undocumented in source.

relation
RelationType relation;

Undocumented in source.

setCollectionDelegateFunc
SetCollectionDelegateFunc setCollectionDelegateFunc;

Undocumented in source.

setCollectionFunc
SetCollectionFunc setCollectionFunc;

Undocumented in source.

setFunc
SetVariantFunc setFunc;

Undocumented in source.

setObjectDelegateFunc
SetObjectDelegateFunc setObjectDelegateFunc;

Undocumented in source.

setObjectFunc
SetObjectFunc setObjectFunc;

Undocumented in source.

uniqueIndex
string uniqueIndex;

Undocumented in source.

writeFunc
WriterFunc writeFunc;

Undocumented in source.

Meta