EntityInfo

Metadata of single entity

Constructors

this
this(string name, string tableName, bool embeddable, PropertyInfo[] properties, TypeInfo_Class classInfo)

Undocumented in source.

Members

Functions

copyAllProperties
void copyAllProperties(Object to, Object from)

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

createEntity
Object createEntity()

create instance of entity object (using default constructor)

findProperty
const(PropertyInfo) findProperty(string propertyName)

returns property by name, throws exception if not found

getKey
Variant getKey(Object obj)

returns key value as Variant from entity instance

getKey
Variant getKey(DataSetReader r, int startColumn)

returns key value as Variant from data set

getKeyProperty
const(PropertyInfo) getKeyProperty()

returns property info for key property

getProperties
const(PropertyInfo[]) getProperties()

returns all properties as array

getProperty
const(PropertyInfo) getProperty(int propertyIndex)

returns property by index

getPropertyCount
ulong getPropertyCount()

returns number of properties

getPropertyCountExceptKey
ulong getPropertyCountExceptKey()

returns number of properties

getPropertyMap
const(PropertyInfo[string]) getPropertyMap()

returns map of property name to property metadata

getPropertyValue
Variant getPropertyValue(Object obj, string propertyName)

returns property value as Variant

isKeyNull
bool isKeyNull(DataSetReader r, int startColumn)

checks if primary key is set (for non-nullable member types like int or long, 0 is considered as non-set)

isKeySet
bool isKeySet(Object obj)

checks if primary key is set (for non-nullable member types like int or long, 0 is considered as non-set)

isNull
bool isNull(Object obj)

checks if property value is null

opApply
int opApply(int delegate(ref const PropertyInfo) dg)

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

opIndex
const(PropertyInfo) opIndex(int index)

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

opIndex
const(PropertyInfo) opIndex(string propertyName)

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

setKey
void setKey(Object obj, Variant value)

sets key value from Variant

setPropertyValue
void setPropertyValue(Object obj, string propertyName, Variant value)

sets property value from Variant

Properties

keyIndex
int keyIndex [@property getter]

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

keyProperty
const(PropertyInfo) keyProperty [@property getter]

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

length
size_t length [@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.

properties
const(PropertyInfo[]) properties [@property getter]

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

Variables

_metadata
EntityMetaData _metadata;

Undocumented in source.

_propertyMap
PropertyInfo[string] _propertyMap;

Undocumented in source.

classInfo
TypeInfo_Class classInfo;

Undocumented in source.

embeddable
bool embeddable;

Undocumented in source.

name
string name;

Undocumented in source.

tableName
string tableName;

Undocumented in source.

Meta