|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinder
org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsDomainBinder
public class GrailsDomainBinder
Handles the binding Grails domain classes and properties to the Hibernate runtime meta model. Based on the HbmBinder code in Hibernate core and influenced by AnnotationsBinder.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinder |
|---|
BACKTICK, CASCADE_ALL, CASCADE_ALL_DELETE_ORPHAN, CASCADE_NONE, CASCADE_SAVE_UPDATE, CT, DEFAULT_ENUM_TYPE, EMPTY_PATH, ENUM_CLASS_PROP, ENUM_TYPE_CLASS, ENUM_TYPE_PROP, FOREIGN_KEY_SUFFIX, LOG, MAPPING_CACHE, NAMING_STRATEGIES, STRING_TYPE, UNDERSCORE |
| Constructor Summary | |
|---|---|
GrailsDomainBinder()
|
|
| Method Summary | |
|---|---|
protected java.lang.Class<?> |
getGroovyAwareJoinedSubclassEntityPersisterClass()
|
protected java.lang.Class<?> |
getGroovyAwareSingleTableEntityPersisterClass()
|
protected void |
handleLazyProxy(org.codehaus.groovy.grails.commons.GrailsDomainClass domainClass,
org.codehaus.groovy.grails.commons.GrailsDomainClassProperty grailsProperty)
|
protected void |
handleUniqueConstraint(org.codehaus.groovy.grails.commons.GrailsDomainClassProperty property,
org.hibernate.mapping.Column column,
java.lang.String path,
org.hibernate.mapping.Table table,
java.lang.String columnName,
java.lang.String sessionFactoryBeanName)
|
protected boolean |
identityEnumTypeSupports(java.lang.Class<?> propertyType)
|
protected boolean |
isNotEmpty(java.lang.String s)
|
protected java.lang.String |
qualify(java.lang.String prefix,
java.lang.String name)
|
protected java.lang.String |
unqualify(java.lang.String qualifiedName)
|
| Methods inherited from class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinder |
|---|
addUnderscore, bindClass, bindClass, bindCollection, bindCollectionForPropertyConfig, bindCollectionSecondPass, bindCollectionTable, bindCollectionWithJoinTable, bindColumn, bindColumnConfigToColumn, bindComponent, bindComponentProperty, bindCompositeId, bindCompositeIdentifierToManyToOne, bindDependentKeyValue, bindDiscriminatorProperty, bindEnumType, bindEnumType, bindIdentity, bindIndex, bindJoinedSubClass, bindListSecondPass, bindManyToMany, bindManyToOne, bindManyToOneValues, bindMapSecondPass, bindNaturalIdentifier, bindNumericColumnConstraints, bindOneToMany, bindOneToOne, bindProperty, bindRoot, bindRootPersistentClassCommonValues, bindSimpleId, bindSimpleValue, bindSimpleValue, bindSimpleValue, bindSimpleValue, bindStringColumnConstraints, bindSubClass, bindSubClass, bindSubClasses, bindUnidirectionalOneToMany, bindUnidirectionalOneToManyInverseValues, bindUnionSubclass, bindVersion, buildDiscriminatorSet, buildOrderByClause, calculateTableForMany, canBindOneToOneWithSingleColumnAndForeignKey, clearMappingCache, clearMappingCache, configureDerivedProperties, configureNamingStrategy, configureNamingStrategy, countDigits, createClassProperties, createKeyForProps, createPrimaryKeyValue, createProperty, createUniqueKeyForColumns, evaluateMapping, evaluateMapping, evaluateMapping, getAssociationDescription, getColumnForSimpleValue, getColumnNameForPropertyAndPath, getConstrainedProperty, getDefaultColumnName, getForeignKeyForPropertyDomainClass, getIndexColumnName, getIndexColumnType, getInsertableness, getJoinedSubClassTableName, getLaziness, getMapElementName, getMapping, getMapping, getMaxSize, getNameForPropertyAndPath, getNamingStrategy, getProperty, getPropertyConfig, getRootMapping, getSingleColumnConfig, getTableName, getTypeName, getUpdateableness, getUserType, hasCompositeIdentifier, hasJoinColumnMapping, hasJoinKeyMapping, hasJoinTableColumnNameMapping, isBidirectionalManyToOne, isBidirectionalManyToOneWithListMapping, isBidirectionalOneToManyMap, isCircularAssociation, isComponentPropertyNullable, isCompositeIdProperty, isIdentityProperty, isNonPropertyToken, isSaveUpdateCascade, isSorted, isUnidirectionalOneToMany, linkBidirectionalOneToMany, linkValueUsingAColumnCopy, logCascadeMapping, removeBackticks, setCascadeBehaviour, setTypeForPropertyConfig, setUniqueName, shouldBindCollectionWithForeignKey, shouldCollectionBindWithJoinColumn, supportsJoinColumnMapping, trackCustomCascadingSaves, trimBackTigs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrailsDomainBinder()
| Method Detail |
|---|
protected java.lang.Class<?> getGroovyAwareJoinedSubclassEntityPersisterClass()
getGroovyAwareJoinedSubclassEntityPersisterClass in class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinderprotected java.lang.Class<?> getGroovyAwareSingleTableEntityPersisterClass()
getGroovyAwareSingleTableEntityPersisterClass in class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinder
protected void handleLazyProxy(org.codehaus.groovy.grails.commons.GrailsDomainClass domainClass,
org.codehaus.groovy.grails.commons.GrailsDomainClassProperty grailsProperty)
handleLazyProxy in class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinder
protected void handleUniqueConstraint(org.codehaus.groovy.grails.commons.GrailsDomainClassProperty property,
org.hibernate.mapping.Column column,
java.lang.String path,
org.hibernate.mapping.Table table,
java.lang.String columnName,
java.lang.String sessionFactoryBeanName)
handleUniqueConstraint in class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinderprotected boolean identityEnumTypeSupports(java.lang.Class<?> propertyType)
identityEnumTypeSupports in class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinderprotected boolean isNotEmpty(java.lang.String s)
isNotEmpty in class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinder
protected java.lang.String qualify(java.lang.String prefix,
java.lang.String name)
qualify in class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinderprotected java.lang.String unqualify(java.lang.String qualifiedName)
unqualify in class org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||