T
- entity typeV
- value typepublic interface Attribute<T,V>
Type
.Property<?,V> getBuilderProperty()
Property
used to apply the attribute a builder instance for the type.String getCollate()
Cardinality getCardinality()
isAssociation()
true attribute the type of relation being represented.Set<CascadeAction> getCascadeActions()
Converter<V,?> getConverter()
getClassType()
to a persisted value
and vice versa.String getDefaultValue()
String getDefinition()
Column.definition()
ReferentialAction getDeleteAction()
isForeignKey()
attribute the action to take when the referenced entity
is deleted, otherwise null.Class<?> getElementClass()
Set<String> getIndexNames()
isIndexed()
true attribute the index name(s), defaults to empty
(auto created).Initializer<T,V> getInitializer()
Initializer
for defining the default value for the property representing the
attribute.Integer getLength()
Class<?> getMapKeyClass()
Supplier<Attribute> getMappedAttribute()
String getName()
PrimitiveKind getPrimitiveKind()
PrimitiveKind
of this attribute if this attribute is representing a
primitive field, returns null otherwise if the field is not primitive (including boxed
versions of types)Supplier<Attribute> getOrderByAttribute()
Order getOrderByDirection()
getOrderByAttribute()
is specified the order direction to use in the
generated query.Property<T,V> getProperty()
Property
representing access to the field of the entity.String getPropertyName()
Property<T,PropertyState> getPropertyState()
Property
representing access to the state of the held property.Supplier<Attribute> getReferencedAttribute()
Class<?> getReferencedClass()
ReferentialAction getUpdateAction()
isForeignKey()
attribute the action to take when the referenced entity
is updated, otherwise null.boolean isAssociation()
boolean isForeignKey()
boolean isGenerated()
boolean isIndexed()
boolean isKey()
boolean isLazy()
boolean isNullable()
boolean isUnique()
Type
.boolean isVersion()