public interface HibernatePersistentProperty extends PersistentProperty
Interface for Hibernate persistent properties
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.util.Optional<HibernateSimpleIdentity> |
buildPropertyIdentity()Builds a HibernateSimpleIdentity from this property's own mapped form, for use when the owning entity has no explicit simple identity configured. |
|
private public static java.lang.String |
getClassName(java.lang.Class<?> propertyClass) |
|
public java.lang.String |
getColumnName(ColumnConfig cc) |
|
public java.lang.String |
getGeneratorName()Returns the generator name for this property. |
|
public GrailsHibernatePersistentEntity |
getHibernateAssociatedEntity() |
|
public HibernateAssociation |
getHibernateInverseSide() |
|
public PropertyConfig |
getHibernateMappedForm()
|
|
public GrailsHibernatePersistentEntity |
getHibernateOwner() |
|
public java.lang.String |
getMappedColumnName() |
|
private public static java.lang.String |
getMappingName(java.lang.Class<?> propertyClass, Mapping mapping) |
|
public java.lang.String |
getNameForPropertyAndPath(java.lang.String path) |
|
public org.hibernate.mapping.PersistentClass |
getPersistentClass() |
|
public org.hibernate.mapping.Table |
getTable() |
|
public java.lang.String |
getTypeName()
|
|
public java.lang.String |
getTypeName(java.lang.Class<?> propertyType)
|
|
public java.lang.String |
getTypeName(PropertyConfig config, Mapping mapping)
|
|
public java.lang.String |
getTypeName(java.lang.Class<?> propertyType, PropertyConfig config, Mapping mapping)
|
|
public java.lang.String |
getTypeName(org.hibernate.mapping.SimpleValue simpleValue)
|
|
public java.util.Properties |
getTypeParameters(org.hibernate.mapping.SimpleValue simpleValue)
|
|
public HibernatePersistentProperty |
getTypeProperty(org.hibernate.mapping.SimpleValue simpleValue)
|
|
public java.lang.Class<?> |
getUserType() |
|
public boolean |
isBidirectionalManyToOneWithListMapping(org.hibernate.mapping.Property prop) |
|
public boolean |
isEmbedded() |
|
public boolean |
isEnum()
|
|
public boolean |
isEnumType() |
|
public boolean |
isJoinKeyMapped()
|
|
public boolean |
isLazy()Determines if the property should be lazy. |
|
public boolean |
isLazyAble() |
|
public boolean |
isSerializableType() |
|
public boolean |
isUserButNotCollectionType() |
|
public boolean |
isValidHibernateManyToOne() |
|
public boolean |
isValidHibernateOneToOne() |
|
public void |
markValueSorted(org.hibernate.mapping.SimpleValue value)Marks value as sorted when the Hibernate value type requires it. |
|
public void |
validateAssociation() |
|
public HibernatePersistentProperty |
validateProperty() |
| Methods inherited from class | Name |
|---|---|
interface PersistentProperty |
getCapitilizedName, getMappedForm, getMapping, getName, getOwner, getOwnerClassName, getReader, getType, getWriter, isBidirectionalManyToOne, isCompositeIdProperty, isIdentityProperty, isInherited, isLazyAble, isNullable, isSorted, isUnidirectionalOneToMany, supportsJoinColumnMapping |
Builds a HibernateSimpleIdentity from this property's own mapped form, for use
when the owning entity has no explicit simple identity configured. Returns
java.util.Optional#empty() when the mapped form is absent, typeParams is null,
or typeParams is empty.
Returns the generator name for this property. For identity properties the generator is resolved from the owning entity; for regular properties it comes from the mapped form.
null if none is configured
propertyType - The property type
config - The property configmapping - The mapping
propertyType - The property typeconfig - The property configmapping - The mapping
simpleValue - The Hibernate simple value
simpleValue - The Hibernate simple value
simpleValue - The Hibernate simple value
Determines if the property should be lazy.
Marks value as sorted when the Hibernate value type requires it. Called after binding
so that column ordering aligns with the referenced composite identifier.
The default handles both org.hibernate.mapping.ToOne and org.hibernate.mapping.DependantValue — the two value types that require sorted columns for composite foreign keys — because these can be produced by different property types (e.g. a HibernateToManyProperty can produce a org.hibernate.mapping.DependantValue as its collection key). Subtypes may override to add property-specific behaviour.
value - the Hibernate org.hibernate.mapping.SimpleValue produced for this property