public interface GrailsHibernatePersistentEntity extends PersistentEntity
Common interface for Hibernate persistent entities
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.util.Set<java.lang.String> |
buildDiscriminatorSet() |
|
public void |
configureDerivedProperties() |
|
public boolean |
forGrailsDomainMapping(java.lang.String dataSourceName) |
|
public java.lang.String |
getCatalog(InFlightMetadataCollector mappings) |
|
public java.util.List<HibernatePersistentEntity> |
getChildEntities() |
|
public java.util.List<HibernatePersistentEntity> |
getChildEntities(java.lang.String dataSourceName) |
|
public java.lang.String |
getComment() |
|
public HibernatePersistentProperty[] |
getCompositeIdentity() |
|
public java.lang.String |
getDataSourceName() |
|
private public HibernateSimpleIdentity |
getDefaultIdentity() |
|
public java.lang.String |
getDiscriminatorColumnName() |
|
public java.lang.String |
getDiscriminatorValue() |
|
public java.util.Optional<HibernateCompositeIdentity> |
getHibernateCompositeIdentity() |
|
public HibernatePropertyIdentity |
getHibernateIdentity() |
|
public Mapping |
getHibernateMappedForm() |
|
public java.util.Optional<HibernatePersistentProperty> |
getHibernateParentProperty(java.lang.Class<?> parentType)
|
|
public java.util.List<HibernatePersistentProperty> |
getHibernatePersistentProperties(java.lang.Class<?> parentType)
|
|
public java.util.List<HibernatePersistentProperty> |
getHibernatePersistentProperties() |
|
public HibernatePersistentProperty |
getHibernatePropertyByName(java.lang.String name)Returns the persistent property with the given name cast to HibernatePersistentProperty, or null if no such property exists. |
|
public HibernatePersistentProperty |
getHibernatePropertyByPath(java.lang.String path)Returns the persistent property with the given path (e.g. |
|
public GrailsHibernatePersistentEntity |
getHibernateRootEntity() |
|
public HibernatePersistentProperty |
getHibernateTenantId() |
|
public HibernatePersistentProperty |
getIdentity() |
|
public Mapping |
getMappedForm() |
|
public java.lang.String |
getMultiTenantFilterCondition(DefaultColumnNameFetcher fetcher) |
|
public PersistentClass |
getPersistentClass() |
|
public java.util.List<HibernatePersistentProperty> |
getPersistentPropertiesToBind() |
|
public java.util.List<Column> |
getReferencedIdentifierColumns(java.lang.String[] propertyNames)Returns the identifier columns for the given propertyNames in the order that aligns
with the sorted foreign-key layout produced by sortOrIndexForeignKeyColumns. |
|
public Mapping |
getRootMapping() |
|
public java.lang.String |
getSchema(InFlightMetadataCollector mappings) |
|
public Mapping |
getStrategyMapping() |
|
public GrailsHibernatePersistentEntity |
getStrategyOwner() |
|
public java.lang.String |
getTableName(PersistentEntityNamingStrategy persistentEntityNamingStrategy)Evaluates the table name for the given entity |
|
public HibernatePersistentProperty |
getVersion() |
|
public boolean |
isAbstract() |
|
public boolean |
isComponentPropertyNullable(PersistentProperty<?> embeddedProperty) |
|
public boolean |
isJoinedSubclass() |
|
public boolean |
isLazy(HibernatePersistentProperty property)Determines if the given property should be lazy. |
|
public boolean |
isTableAbstract() |
|
public boolean |
isTablePerHierarchy() |
|
public boolean |
isTablePerHierarchySubclass() |
|
public boolean |
isUnionSubclass() |
|
private public java.util.Optional<HibernatePropertyIdentity> |
resolveCompositeIdentity() |
|
private public static java.lang.String |
resolveDiscriminatorValue(DiscriminatorConfig discriminatorConfig) |
|
public void |
setDataSourceName(java.lang.String dataSourceName) |
|
public void |
setPersistentClass(PersistentClass persistentClass) |
|
public void |
sortOrIndexForeignKeyColumns(SimpleValue value)Sorts or indexes the columns of value to align with this entity's composite
identifier order. |
|
private public static java.util.List<Column> |
sortedByPermutation(java.util.List<Column> columns, int[] permutation) |
|
public boolean |
usesConnectionSource(java.lang.String dataSourceName) |
| Methods inherited from class | Name |
|---|---|
interface PersistentEntity |
addOwner, getAssociations, getCompositeIdentity, getDecapitalizedName, getDiscriminator, getEmbedded, getIdentity, getJavaClass, getMappedForm, getMapping, getMappingContext, getName, getParentEntity, getPersistentProperties, getPersistentPropertyNames, getPropertyByName, getReflector, getRootEntity, getTenantId, getVersion, hasProperty, isExternal, isIdentityName, isInstance, isMultiTenant, isOwningEntity, isRoot, isVersioned, newInstance, setExternal |
interface Initializable |
initialize, isInitialized |
parentType - The type of the parent entity
parentType - The type of the parent entity to exclude from the results Returns the persistent property with the given name cast to HibernatePersistentProperty,
or null if no such property exists.
Returns the persistent property with the given path (e.g. "author.name") cast to HibernatePersistentProperty,
or null if no such property exists.
path - The path to the property Returns the identifier columns for the given propertyNames in the order that aligns
with the sorted foreign-key layout produced by sortOrIndexForeignKeyColumns.
When the identifier is a Component, columns are gathered per property name and then reordered according to the same permutation used during Component#sortProperties()#sortProperties(). When the identifier is a plain KeyValue, its columns are returned directly.
propertyNames - composite identity property names in the caller's declared orderEvaluates the table name for the given entity
persistentEntityNamingStrategy - The naming strategyDetermines if the given property should be lazy.
property - The property Sorts or indexes the columns of value to align with this entity's composite
identifier order. When the identifier is a Component with an established sort order,
delegates to SimpleValue#sortColumns(int[])#sortColumns(int[]). Otherwise assigns sequential
Column#setTypeIndex(int)#setTypeIndex(int) values so Hibernate can correlate them.
value - the foreign-key SimpleValue whose columns should be aligned