- applyDefault
string applyDefault(string s, string defaultValue)
Undocumented in source. Be warned that the author may not have intended to support it.
- camelCaseToUnderscoreDelimited
string camelCaseToUnderscoreDelimited(string s)
converts camel case MyEntityName to my_entity_name
- capitalizeFieldName
string capitalizeFieldName(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
- classNameToPropertyName
string classNameToPropertyName(string name)
- emptyStringToNull
string emptyStringToNull(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
- entityListDef
string entityListDef()
Undocumented in source. Be warned that the author may not have intended to support it.
- generateImportFor
string generateImportFor()
Undocumented in source. Be warned that the author may not have intended to support it.
- getCollectionPropertyVariantWriteCode
string getCollectionPropertyVariantWriteCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getColumnLength
int getColumnLength()
Undocumented in source. Be warned that the author may not have intended to support it.
- getColumnName
string getColumnName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getColumnTypeDatasetReadCode
string getColumnTypeDatasetReadCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getColumnTypeDatasetWriteCode
string getColumnTypeDatasetWriteCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getColumnTypeIsNullCode
string getColumnTypeIsNullCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getColumnTypeKeyIsSetCode
string getColumnTypeKeyIsSetCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getColumnTypeName
string getColumnTypeName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getEmbeddedPropertyDef
string getEmbeddedPropertyDef()
generate source code for creation of Embedded definition
- getEmbeddedPropertyVariantWriteCode
string getEmbeddedPropertyVariantWriteCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getEntityDef
string getEntityDef()
Undocumented in source. Be warned that the author may not have intended to support it.
- getEntityName
string getEntityName()
returns entity name for class type
- getGeneratorCode
string getGeneratorCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getJoinColumnName
string getJoinColumnName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getJoinTableColumn1
string getJoinTableColumn1()
Undocumented in source. Be warned that the author may not have intended to support it.
- getJoinTableColumn2
string getJoinTableColumn2()
Undocumented in source. Be warned that the author may not have intended to support it.
- getJoinTableName
string getJoinTableName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getLazyPropertyLoadedCode
string getLazyPropertyLoadedCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getLazyPropertyObjectWriteCode
string getLazyPropertyObjectWriteCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getManyToManyPropertyDef
string getManyToManyPropertyDef()
generate source code for creation of ManyToMany definition
- getManyToOnePropertyDef
string getManyToOnePropertyDef()
generate source code for creation of ManyToOne definition
- getOneToManyPropertyDef
string getOneToManyPropertyDef()
generate source code for creation of OneToMany definition
- getOneToManyReferencedPropertyName
string getOneToManyReferencedPropertyName()
T is class/entity
m is member of T eg T.m; m is a collection/array. The ElementType of the collection/array has a ref to T.
Try to figure out the field name in the type of m which is of type T.
When m has a attribute of OneToMany with a name, the atribute.name is used.
- getOneToOnePropertyDef
string getOneToOnePropertyDef()
generate source code for creation of OneToOne definition
- getOneToOneReferencedPropertyName
string getOneToOneReferencedPropertyName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyCollectionWriteCode
string getPropertyCollectionWriteCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyCopyCode
string getPropertyCopyCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyDef
string getPropertyDef()
creates "new PropertyInfo(...)" code to create property metadata for member m of class T
- getPropertyEmbeddedClassName
string getPropertyEmbeddedClassName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyEmbeddedEntityName
string getPropertyEmbeddedEntityName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyMemberKind
PropertyMemberKind getPropertyMemberKind()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyMemberType
PropertyMemberType getPropertyMemberType()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyName
string getPropertyName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyObjectWriteCode
string getPropertyObjectWriteCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyReadCode
string getPropertyReadCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyReferencedClassName
string getPropertyReferencedClassName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyReferencedEntityName
string getPropertyReferencedEntityName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyVariantReadCode
string getPropertyVariantReadCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyVariantWriteCode
string getPropertyVariantWriteCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getPropertyWriteCode
string getPropertyWriteCode()
Undocumented in source. Be warned that the author may not have intended to support it.
- getSimplePropertyDef
string getSimplePropertyDef()
generate source code for creation of simple property definition
- getTableName
string getTableName()
returns table name for class type
- getUniqueIndexName
string getUniqueIndexName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getterNameToFieldName
string getterNameToFieldName(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
- getterNameToSetterName
string getterNameToSetterName(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
- hasAnnotation
bool hasAnnotation()
returns true if class has specified anotations
- hasAnyKeyPropertyAnnotation
bool hasAnyKeyPropertyAnnotation()
Undocumented in source. Be warned that the author may not have intended to support it.
- hasHibernatedClassOrPropertyAnnotation
bool hasHibernatedClassOrPropertyAnnotation()
Undocumented in source. Be warned that the author may not have intended to support it.
- hasMemberAnnotation
bool hasMemberAnnotation()
returns true if class member has specified anotations
- hasOneOfAnnotations
bool hasOneOfAnnotations()
returns true if class has one of specified anotations
- hasOneOfMemberAnnotations
bool hasOneOfMemberAnnotations()
returns true if class member has one of specified anotations
- hasPercentSign
bool hasPercentSign(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
- hasWritePropretyForType
bool hasWritePropretyForType()
returns true if one of overloads of member m of class T is property setter with specified value type
- isColumnTypeNullableByDefault
bool isColumnTypeNullableByDefault()
Undocumented in source. Be warned that the author may not have intended to support it.
- isGetterFunction
bool isGetterFunction()
Undocumented in source. Be warned that the author may not have intended to support it.
- isMainMemberForProperty
bool isMainMemberForProperty()
Undocumented in source. Be warned that the author may not have intended to support it.
- isReadWriteProperty
bool isReadWriteProperty()
returns true if member m of class T has both property getter and setter of the same type
- percentSignCount
int percentSignCount(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
- quoteBool
string quoteBool(bool b)
Undocumented in source. Be warned that the author may not have intended to support it.
- quoteString
string quoteString(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
- substituteParam
string substituteParam(string fmt, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
- substituteParamTwice
string substituteParamTwice(string fmt, string value)
/ string res;
/ bool skipNext = false;
/
/ foreach(ch; fmt) {
/ if (ch == '%') {
/ res ~= "1024"; //to!string(value);
/ skipNext = true;
/ } else if (!skipNext) {
/ res ~= ch;
/ skipNext = false;
/ }
/ }
/ return res;
/ if (hasPercentSign(fmt))
/ return format(fmt, value);
/ else
/ return fmt;
HibernateD - Object-Relation Mapping for D programming language, with interface similar to Hibernate.
Hibernate documentation can be found here: http://hibernate.org/docs
Source file hibernated/metadata.d.
This module contains implementation of Annotations parsing and ORM model metadata holder classes.