public interface MemberMetadata extends Metadata
Modifier and Type | Method and Description |
---|---|
ArrayMetadata |
getArrayMetadata()
Accessor for the array details.
|
boolean |
getCacheable()
Accessor for whether this is cacheable.
|
CollectionMetadata |
getCollectionMetadata()
Accessor for the array details.
|
String |
getColumn()
Accessor for the name of the column.
|
ColumnMetadata[] |
getColumns()
Accessor for all column(s) defined on the join.
|
AttributeConverter<?,?> |
getConverter()
Accessor for the attribute converter for this member (if any).
|
String |
getCustomStrategy()
Accessor for the custom strategy (overriding "strategy").
|
Boolean |
getDefaultFetchGroup()
Accessor for whether part of the DFG.
|
ForeignKeyAction |
getDeleteAction()
Accessor for the delete action of the FK.
|
Boolean |
getDependent()
Accessor for whether unique.
|
ElementMetadata |
getElementMetadata()
Accessor for the element details.
|
Boolean |
getEmbedded()
Accessor for whether it is embedded.
|
EmbeddedMetadata |
getEmbeddedMetadata()
Accessor for the embedded metadata.
|
String |
getFieldType()
Accessor for the type storable in the field.
|
ForeignKeyMetadata |
getForeignKeyMetadata()
Accessor for any foreign key metadata on this field/property.
|
Boolean |
getIndexed()
Accessor for whether it is indexed.
|
IndexMetadata |
getIndexMetadata()
Accessor for any index metadata for the field/property.
|
JoinMetadata |
getJoinMetadata()
Accessor for the join details.
|
KeyMetadata |
getKeyMetadata()
Accessor for the key details.
|
String |
getLoadFetchGroup()
Accessor for the name of the load fetch group
|
MapMetadata |
getMapMetadata()
Accessor for the map details.
|
String |
getMappedBy()
Accessor for the mapped-by field/property
|
String |
getName()
Accessor for the name of the field/property.
|
NullValue |
getNullValue()
Accessor for the behaviour of a null value
|
int |
getNumberOfColumns()
Accessor for the number of columns defined for this join.
|
OrderMetadata |
getOrderMetadata()
Accessor for the order metadata.
|
PersistenceModifier |
getPersistenceModifier()
Accessor for the persistence modifier of the field/property.
|
boolean |
getPrimaryKey()
Accessor for whether it is part of the pk.
|
int |
getRecursionDepth()
Accessor for the recursion depth (when part of a fetch group).
|
String |
getSequence()
Accessor for the sequence (when using value-strategy of "sequence")
|
Boolean |
getSerialized()
Accessor for whether it is serialized.
|
String |
getTable()
Accessor for the name of the table.
|
Boolean |
getUnique()
Accessor for whether unique.
|
UniqueMetadata |
getUniqueMetadata()
Accessor for any unique constraint metadata on this field/property.
|
Boolean |
getUseDefaultConversion()
Accessor for whether any AttributeConverter for this member type is explicitly disabled and should use the implementation default.
|
ValueMetadata |
getValueMetadata()
Accessor for the value details.
|
IdGeneratorStrategy |
getValueStrategy()
Accessor for the value strategy
|
ArrayMetadata |
newArrayMetadata()
Method to define the array details (if the field/property is an array)
|
CollectionMetadata |
newCollectionMetadata()
Method to define the array details (if the field/property is an array).
|
ColumnMetadata |
newColumnMetadata()
Add a new column for this join.
|
ElementMetadata |
newElementMetadata()
Method to define the new element details.
|
EmbeddedMetadata |
newEmbeddedMetadata()
Method to define the embedded details.
|
ForeignKeyMetadata |
newForeignKeyMetadata()
Method to set new foreign key metadata for the field/property.
|
IndexMetadata |
newIndexMetadata()
Method to set index metadata for the field/property.
|
JoinMetadata |
newJoinMetadata()
Method to define the join details.
|
KeyMetadata |
newKeyMetadata()
Method to define the key details.
|
MapMetadata |
newMapMetadata()
Method to define the map details (if the field/property is an map).
|
OrderMetadata |
newOrderMetadata()
Method to define the order details.
|
UniqueMetadata |
newUniqueMetadata()
Method to set new unique constraint metadata for the field/property.
|
ValueMetadata |
newValueMetadata()
Method to define the value details.
|
MemberMetadata |
setCacheable(boolean cacheable)
Method to set whether this is cacheable
|
MemberMetadata |
setColumn(String col)
Method to set the column name.
|
MemberMetadata |
setConverter(AttributeConverter<?,?> conv)
Method to set the attribute converter to use for this member.
|
MemberMetadata |
setCustomStrategy(String strategy)
Method to set the custom identity generation strategy.
|
MemberMetadata |
setDefaultFetchGroup(boolean dfg)
Method to set whether it is in the DFG.
|
MemberMetadata |
setDeleteAction(ForeignKeyAction action)
Method to set the delete action of the FK
|
MemberMetadata |
setDependent(boolean unique)
Method to set whether it is unique.
|
MemberMetadata |
setEmbedded(boolean emb)
Method to set whether it is embedded.
|
MemberMetadata |
setFieldType(String type)
Method to set the field type(s).
|
MemberMetadata |
setIndexed(boolean index)
Method to set whether it is indexed.
|
MemberMetadata |
setLoadFetchGroup(String grp)
Method to set the load fetch group.
|
MemberMetadata |
setMappedBy(String map)
Method to set the field on the other side of a bidirectional relation
(this side is owner).
|
MemberMetadata |
setName(String name)
Method to set the name.
|
MemberMetadata |
setNullValue(NullValue val)
Method to set the behaviour of a null value
|
MemberMetadata |
setPersistenceModifier(PersistenceModifier mod)
Method to set the persistence-modifier of the field/property.
|
MemberMetadata |
setPrimaryKey(boolean pk)
Method to set whether it is part of the pk
|
MemberMetadata |
setRecursionDepth(int depth)
Method to set the recursion depth (when used in a fetch group).
|
MemberMetadata |
setSequence(String seq)
Method to set the sequence (when using value-strategy of "sequence")
|
MemberMetadata |
setSerialized(boolean ser)
Method to set whether it is serialized.
|
MemberMetadata |
setTable(String table)
Method to set the table name.
|
MemberMetadata |
setUnique(boolean unique)
Method to set whether it is unique.
|
MemberMetadata |
setUseDefaultConversion(Boolean flag)
Method to explicitly set whether to disable use of AttributeConverter for this type (either here, class-level or PMF level).
|
MemberMetadata |
setValueStrategy(IdGeneratorStrategy str)
Method to set the value strategy
|
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
MemberMetadata setName(String name)
name
- nameString getName()
MemberMetadata setTable(String table)
table
- Table nameString getTable()
MemberMetadata setColumn(String col)
col
- Column nameString getColumn()
MemberMetadata setFieldType(String type)
type
- Type of fieldString getFieldType()
MemberMetadata setDeleteAction(ForeignKeyAction action)
action
- Delete action of the FKForeignKeyAction getDeleteAction()
MemberMetadata setPersistenceModifier(PersistenceModifier mod)
mod
- persistence modifierPersistenceModifier getPersistenceModifier()
MemberMetadata setNullValue(NullValue val)
val
- Null value behaviourNullValue getNullValue()
MemberMetadata setDefaultFetchGroup(boolean dfg)
dfg
- DFG?Boolean getDefaultFetchGroup()
MemberMetadata setDependent(boolean unique)
unique
- Unique?Boolean getDependent()
MemberMetadata setEmbedded(boolean emb)
emb
- Embedded?Boolean getEmbedded()
MemberMetadata setSerialized(boolean ser)
ser
- serialized?Boolean getSerialized()
MemberMetadata setPrimaryKey(boolean pk)
pk
- PK?boolean getPrimaryKey()
MemberMetadata setIndexed(boolean index)
index
- Indexed?Boolean getIndexed()
MemberMetadata setUnique(boolean unique)
unique
- Unique?Boolean getUnique()
MemberMetadata setCacheable(boolean cacheable)
cacheable
- Cacheable?boolean getCacheable()
MemberMetadata setRecursionDepth(int depth)
depth
- Recursion depthint getRecursionDepth()
MemberMetadata setLoadFetchGroup(String grp)
grp
- Load fetch groupString getLoadFetchGroup()
MemberMetadata setValueStrategy(IdGeneratorStrategy str)
str
- Value strategyIdGeneratorStrategy getValueStrategy()
MemberMetadata setCustomStrategy(String strategy)
strategy
- The strategyString getCustomStrategy()
MemberMetadata setSequence(String seq)
seq
- Sequence keyString getSequence()
MemberMetadata setMappedBy(String map)
map
- mapped-by field/propertyString getMappedBy()
ArrayMetadata newArrayMetadata()
ArrayMetadata getArrayMetadata()
CollectionMetadata newCollectionMetadata()
CollectionMetadata getCollectionMetadata()
MapMetadata newMapMetadata()
MapMetadata getMapMetadata()
JoinMetadata newJoinMetadata()
JoinMetadata getJoinMetadata()
EmbeddedMetadata newEmbeddedMetadata()
EmbeddedMetadata getEmbeddedMetadata()
ElementMetadata newElementMetadata()
ElementMetadata getElementMetadata()
KeyMetadata newKeyMetadata()
KeyMetadata getKeyMetadata()
ValueMetadata newValueMetadata()
ValueMetadata getValueMetadata()
IndexMetadata newIndexMetadata()
IndexMetadata getIndexMetadata()
UniqueMetadata newUniqueMetadata()
UniqueMetadata getUniqueMetadata()
ForeignKeyMetadata newForeignKeyMetadata()
ForeignKeyMetadata getForeignKeyMetadata()
OrderMetadata newOrderMetadata()
OrderMetadata getOrderMetadata()
ColumnMetadata[] getColumns()
ColumnMetadata newColumnMetadata()
int getNumberOfColumns()
AttributeConverter<?,?> getConverter()
MemberMetadata setConverter(AttributeConverter<?,?> conv)
conv
- ConverterBoolean getUseDefaultConversion()
MemberMetadata setUseDefaultConversion(Boolean flag)
flag
- Whether to disableCopyright © 2005–1970 Apache Software Foundation. All rights reserved.