public abstract class AbstractMemberMetaData extends MetaData implements Comparable, ColumnMetaDataContainer
Modifier and Type | Field and Description |
---|---|
protected boolean |
cacheable
cacheable tag value.
|
protected Boolean |
cascadeDelete
Whether to delete this relation when deleting the owning object (JPA).
|
protected Boolean |
cascadeDetach
Whether to detach this relation when detaching the owning object (JPA).
|
protected Boolean |
cascadePersist
Whether to persist this relation when persisting the owning object.
|
protected Boolean |
cascadeRefresh
Whether to refresh this relation when refreshing the owning object (JPA).
|
protected boolean |
cascadeRemoveOrphans
Whether to remove orphans when deleting the owning object (JPA).
|
protected Boolean |
cascadeUpdate
Whether to update this relation when updating the owning object.
|
protected String |
catalog
Catalog for the table specified for this field.
|
protected String |
className
Name of the class to which this field really belongs.
|
protected String |
column
column tag value.
|
protected ColumnMetaData[] |
columnMetaData
Contains the metadata for column(s).
|
protected List<ColumnMetaData> |
columns
Columns ColumnMetaData
|
protected ContainerMetaData |
containerMetaData
Meta-Data of any container.
|
static int |
DEFAULT_RECURSION_DEPTH
Default recursion-depth according to proposed final draft spec, [12.7.2].
|
protected Boolean |
defaultFetchGroup
default-fetch-group tag value.
|
protected Boolean |
dependent
Whether this field contains a reference that should be deleted when deleting this field.
|
protected ElementMetaData |
elementMetaData
ElementMetaData.
|
protected Boolean |
embedded
embedded tag value.
|
protected EmbeddedMetaData |
embeddedMetaData
EmbeddedMetaData.
|
protected int |
fieldId
Id of the field in its class (only for fields that are managed).
|
protected ForeignKeyMetaData |
foreignKeyMetaData
ForeignKeyMetaData.
|
protected String |
fullFieldName
Cache result of
getFullFieldName() . |
protected IndexedValue |
indexed
The indexing value
|
protected IndexMetaData |
indexMetaData
IndexMetaData.
|
protected JoinMetaData |
joinMetaData
JoinMetaData.
|
protected KeyMetaData |
keyMetaData
KeyMetaData.
|
protected String |
loadFetchGroup
load-fetch-group value.
|
protected String |
mappedBy
mapped-by tag value.
|
protected String |
mapsIdAttribute
Placeholder for the JPA "mapsId" attribute, in case a store plugin wants to use it
|
protected Member |
memberRepresented
The member (field/method) being represented here.
|
protected String |
name
Field name.
|
protected NullValue |
nullValue
null-value tag value (default is NONE).
|
protected boolean |
ordered
Temporary flag to signify if the field is ordered.
|
protected OrderMetaData |
orderMetaData
OrderMetaData.
|
static boolean |
PERSIST_FINAL
Whether we currently allow persistence of final fields.
|
static boolean |
PERSIST_STATIC
Whether we currently allow persistence of static fields.
|
static boolean |
PERSIST_TRANSIENT
Whether we currently allow persistence of transient fields.
|
protected byte |
persistenceFlags
Flags for use in enhancement process [see JDO spec 21.14]
|
protected FieldPersistenceModifier |
persistenceModifier
persistence-modifier tag value.
|
protected Boolean |
primaryKey
primary key tag value.
|
protected int |
recursionDepth
recursion-depth value.
|
protected AbstractMemberMetaData[] |
relatedMemberMetaData
MetaData for the other end of a relation when this member is a bidirectional relation.
|
protected RelationType |
relationType
The relation type of this field (1-1, 1-N, M-N, N-1).
|
protected String |
relationTypeString
Placeholder for the JPA relation type ManyToOne, OneToOne etc so we can store what the user specified.
|
protected String |
schema
Schema for the table specified for this field.
|
protected String |
sequence
If the value-strategy is sequence, the sequence attribute specifies the
name of the sequence to use to automatically generate a value for the field.
|
protected Boolean |
serialized
serialized tag value.
|
protected boolean |
storeInLob
Wrapper for the ugly JPA "lob" so that when being populated we should make this serialised in some way.
|
protected String |
table
Table name for this field.
|
protected String |
targetClassName
Name of the target entity (when used with JPA MetaData on OneToOne, OneToMany etc)
|
protected Class |
type
Field type being represented.
|
static int |
UNDEFINED_RECURSION_DEPTH
Indicates the recursion-depth is not defined.
|
protected boolean |
uniqueConstraint
Whether to add a unique constraint.
|
protected UniqueMetaData |
uniqueMetaData
UniqueMetaData.
|
protected String |
valueGeneratorName
Name of a value generator if the user wants to override the default generator.
|
protected ValueMetaData |
valueMetaData
ValueMetaData.
|
protected IdentityStrategy |
valueStrategy
The value-strategy attribute specifies the strategy used to generate
values for the field.
|
EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_DISABLE, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_CASCADE_UPDATE, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_ENUM_GETTER_BY_VALUE, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_FETCH_FK_ONLY, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, EXTENSION_MEMBER_LIST_ORDERING, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATEABLE, extensions, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME
Constructor and Description |
---|
AbstractMemberMetaData(MetaData parent,
AbstractMemberMetaData mmd)
Convenience constructor to copy the specification from the passed member.
|
AbstractMemberMetaData(MetaData parent,
String name)
Constructor for a fields metadata.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(ColumnMetaData colmd)
Add a new ColumnMetaData element
|
boolean |
calcIsSecondClassMutable(MetaDataManager mmgr)
Calculate wether this field should be a second class mutable field.
|
int |
compareTo(Object o)
Comparator method.
|
boolean |
fetchFKOnly()
Extension accessor where the user has requested that the fetch of this field fetch just the FK.
|
boolean |
fieldBelongsToClass()
Accessor for whether the field is for a superclass, and not for this class.
|
int |
getAbsoluteFieldNumber()
Accessor for the field id
|
AbstractClassMetaData |
getAbstractClassMetaData()
Convenience accessor for the MetaData of the parent class.
|
ArrayMetaData |
getArray()
Accessor for an array container for this field.
|
String |
getCatalog() |
String |
getClassName()
Accessor for the fully-qualified class name owning this field.
|
String |
getClassName(boolean fully_qualified)
Convenience to return the class name that this a field of.
|
CollectionMetaData |
getCollection()
Accessor for a collection container for this field.
|
ColumnMetaData[] |
getColumnMetaData()
Acessor for the columns
|
ContainerMetaData |
getContainer()
Accessor for the container for this field.
|
FieldPersistenceModifier |
getDefaultFieldPersistenceModifier(Class c,
int modifier,
boolean isPCclass,
MetaDataManager mmgr)
Accessor for the default "persistence-modifier" for a field given the
class, its modifier and whether it is a PersistentCapable class.
|
ElementMetaData |
getElementMetaData()
Accessor for elementMetaData
|
EmbeddedMetaData |
getEmbeddedMetaData()
Accessor for embeddedMetaData
|
int |
getFieldId()
Accessor for the field id.
|
String[] |
getFieldTypes()
Accessor for the implementation type(s) that can be stored in this field when it is a reference type.
|
ForeignKeyMetaData |
getForeignKeyMetaData()
Accessor for foreignKeyMetaData
|
String |
getFullFieldName()
Accessor for the full field name.
|
IndexedValue |
getIndexed() |
IndexMetaData |
getIndexMetaData()
Accessor for indexMetaData
|
JoinMetaData |
getJoinMetaData()
Accessor for joinMetaData
|
KeyMetaData |
getKeyMetaData()
Accessor for keyMetaData
|
String |
getLoadFetchGroup() |
MapMetaData |
getMap()
Accessor for a map container for this field.
|
String |
getMappedBy() |
String |
getMapsIdAttribute() |
Member |
getMemberRepresented()
Accessor for the member being represented.
|
String |
getName()
Accessor for the field name
|
NullValue |
getNullValue() |
OrderMetaData |
getOrderMetaData()
Accessor for orderMetaData
|
protected static MetaData |
getOverallParentClassMetaData(MetaData metadata)
Convenience method to navigate back through the parents to find the overall
ClassMetaData handling this object.
|
String |
getPackageName() |
byte |
getPersistenceFlags()
Accessor for the persistence flags
|
FieldPersistenceModifier |
getPersistenceModifier() |
int |
getRecursionDepth() |
AbstractMemberMetaData[] |
getRelatedMemberMetaData(ClassLoaderResolver clr)
Accessor for the FieldMetaData of any related field/property (where this field is part of a
bidirectional relation).
|
AbstractMemberMetaData |
getRelatedMemberMetaDataForObject(ClassLoaderResolver clr,
Object thisPC,
Object otherPC)
Convenience accessor for the MetaData for the field/property at the other side of the bidirectional
relation given the objects at this side and the other side.
|
RelationType |
getRelationType(ClassLoaderResolver clr)
Accessor for the relation type for this field.
|
String |
getRelationTypeString() |
String |
getSchema() |
String |
getSequence()
If the value-strategy is sequence, the sequence attribute specifies the
name of the sequence to use to automatically generate a value for the field.
|
String |
getTable() |
Class |
getType()
Accessor for the field type
|
String |
getTypeConverterName() |
String |
getTypeName()
Accessor for the field type name
|
UniqueMetaData |
getUniqueMetaData()
Accessor for uniqueMetaData
|
String |
getValueGeneratorName()
Name of a (user-provided) value generator to override the default generator for this strategy.
|
ValueMetaData |
getValueMetaData()
Accessor for valueMetaData
|
IdentityStrategy |
getValueStrategy() |
boolean |
hasArray()
Accessor for whether the field has an array
|
boolean |
hasCollection()
Accessor for whether the field has a collection
|
boolean |
hasContainer()
Accessor for whether the field has a container.
|
boolean |
hasMap()
Accessor for whether the field has a map.
|
void |
initialise(ClassLoaderResolver clr,
MetaDataManager mmgr)
Initialisation method.
|
boolean |
isAbstract()
Convenience method to return if this field represents an abstract property.
|
boolean |
isCacheable() |
boolean |
isCascadeDelete()
Accessor for the whether this field should be cascaded at delete
|
boolean |
isCascadeDetach()
Accessor for the whether this field should be cascaded at detach (JPA only).
|
boolean |
isCascadePersist()
Accessor for the whether this field should be cascaded at persist
|
boolean |
isCascadeRefresh()
Accessor for the whether this field should be cascaded at refresh
|
boolean |
isCascadeRemoveOrphans()
Accessor for the whether this field should remove orphans at delete.
|
boolean |
isCascadeUpdate()
Accessor for the whether this field should be cascaded at update
|
boolean |
isDefaultFetchGroup() |
boolean |
isDependent() |
boolean |
isEmbedded() |
boolean |
isFieldArrayTypePersistable(MetaDataManager mmgr)
Utility to return if this array field has elements that are Persistable.
|
boolean |
isFieldToBePersisted()
Accessor for whether the field is to be persisted by the persistence process.
|
boolean |
isFinal()
Convenience method to return if this field/property is final.
|
boolean |
isInsertable()
Convenience method to return if the field/property is insertable.
|
boolean |
isPersistentInterface(ClassLoaderResolver clr,
MetaDataManager mmgr)
Convenience method to return if this member relates to a persistent interface.
|
boolean |
isPrimaryKey() |
boolean |
isPrivate()
Convenience method to return if this field/property is private.
|
boolean |
isProtected()
Convenience method to return if this field/property is protected.
|
boolean |
isPublic()
Convenience method to return if this field/property is public.
|
boolean |
isRelationOwner(ClassLoaderResolver clr)
Convenience method for whether this field is the owner of the relation.
|
boolean |
isSerialized() |
boolean |
isStatic()
Convenience method to return if this field/property is static.
|
boolean |
isTransient()
Convenience method to return if this field/property is transient.
|
boolean |
isTypeConversionDisabled() |
boolean |
isUnique() |
boolean |
isUpdateable()
Convenience method to return if the field/property is updateable.
|
ArrayMetaData |
newArrayMetaData()
Method to create a new array metadata, set it, and return it.
|
CollectionMetaData |
newCollectionMetaData()
Method to create a new collection metadata, set it, and return it.
|
ColumnMetaData |
newColumnMetaData() |
ElementMetaData |
newElementMetaData()
Method to create a new element metadata, set it, and return it.
|
EmbeddedMetaData |
newEmbeddedMetaData()
Method to create a new embedded metadata, set it, and return it.
|
ForeignKeyMetaData |
newForeignKeyMetaData()
Method to create a new FK metadata, set it, and return it.
|
IndexMetaData |
newIndexMetaData()
Method to create a new index metadata, set it, and return it.
|
JoinMetaData |
newJoinMetadata()
Method to create a new JoinMetaData, set it, and return it.
|
JoinMetaData |
newJoinMetaData()
Method to create a new join metadata, set it, and return it.
|
KeyMetaData |
newKeyMetaData()
Method to create a new key metadata, set it, and return it.
|
MapMetaData |
newMapMetaData()
Method to create a new map metadata, set it, and return it.
|
OrderMetaData |
newOrderMetaData()
Method to create a new order metadata, set it, and return it.
|
UniqueMetaData |
newUniqueMetaData()
Method to create a new unique metadata, set it, and return it.
|
ValueMetaData |
newValueMetaData()
Method to create a new value metadata, set it, and return it.
|
void |
populate(ClassLoaderResolver clr,
Field field,
Method method,
ClassLoader primary,
MetaDataManager mmgr)
Method to provide the details of the field being represented by this MetaData hence populating
certain parts of the MetaData.
|
void |
setCacheable(boolean cache) |
void |
setCascadeDelete(boolean cascade)
Mutator for the cascading of delete operations on this field.
|
void |
setCascadeDetach(boolean cascade)
Mutator for the cascading of detach operations on this field.
|
void |
setCascadePersist(boolean cascade)
Mutator for the cascading of persist operations on this field.
|
void |
setCascadeRefresh(boolean cascade)
Mutator for the cascading of refresh operations on this field.
|
void |
setCascadeRemoveOrphans(boolean cascade)
Mutator for the cascading of orphan removal operations on this field.
|
void |
setCascadeUpdate(boolean cascade)
Mutator for the cascading of update operations on this field.
|
AbstractMemberMetaData |
setCatalog(String catalog) |
AbstractMemberMetaData |
setColumn(String col) |
void |
setContainer(ContainerMetaData conmd)
Method to set the container for this field (if this field represents a
container (collection, map, array).
|
void |
setDefaultFetchGroup(boolean dfg) |
void |
setDeleteAction(String action) |
void |
setDependent(boolean dependent) |
void |
setElementMetaData(ElementMetaData elementMetaData)
Mutator for the element MetaData
|
void |
setEmbedded(boolean val) |
void |
setEmbeddedMetaData(EmbeddedMetaData embeddedMetaData)
Mutator for the embedded MetaData
|
void |
setFieldTypes(String types)
Mutator for the possible field type(s) that this reference field can store.
|
void |
setForeignKeyMetaData(ForeignKeyMetaData foreignKeyMetaData)
Mutator for the foreignKey MetaData
|
AbstractMemberMetaData |
setIndexed(IndexedValue val) |
void |
setIndexMetaData(IndexMetaData indexMetaData)
Mutator for the index MetaData
|
void |
setJoinMetaData(JoinMetaData joinMetaData)
Mutator for the join MetaData
|
void |
setKeyMetaData(KeyMetaData keyMetaData)
Mutator for the key MetaData
|
void |
setLoadFetchGroup(String loadFetchGroup) |
void |
setMappedBy(String mappedBy) |
void |
setMapsIdAttribute(String attr) |
void |
setNotPersistent() |
AbstractMemberMetaData |
setNullValue(NullValue val) |
void |
setOrdered()
Mutator for whether the collection stored in this field is ordered.
|
void |
setOrderMetaData(OrderMetaData orderMetaData)
Mutator for the order MetaData
|
void |
setPersistenceModifier(FieldPersistenceModifier modifier) |
AbstractMemberMetaData |
setPrimaryKey(boolean flag) |
void |
setRecursionDepth(int depth) |
void |
setRecursionDepth(String depth) |
protected void |
setRelation(ClassLoaderResolver clr)
Convenience method that sets up the relation type of this field, and the reference to
any related field when it is bidirectional.
|
void |
setRelationTypeString(String relType) |
AbstractMemberMetaData |
setSchema(String schema) |
void |
setSequence(String sequence)
If the value-strategy is sequence, the sequence attribute specifies the
name of the sequence to use to automatically generate a value for the field.
|
void |
setSerialised(boolean flag) |
void |
setStoreInLob()
Mutator for whetehr to store as a "lob".
|
AbstractMemberMetaData |
setTable(String table) |
void |
setTargetClassName(String target)
Mutator for the target class name.
|
void |
setTransactional() |
void |
setTypeConverterDisabled() |
void |
setTypeConverterName(String name) |
AbstractMemberMetaData |
setUnique(boolean unique) |
AbstractMemberMetaData |
setUnique(String unique) |
void |
setUniqueMetaData(UniqueMetaData uniqueMetaData)
Mutator for the unique MetaData
|
void |
setValueGeneratorName(String generator)
Mutator for the name of the value generator to use for this strategy.
|
void |
setValueMetaData(ValueMetaData valueMetaData)
Mutator for the value MetaData
|
void |
setValueStrategy(IdentityStrategy valueStrategy) |
void |
setValueStrategy(String strategy) |
String |
toString(String prefix,
String indent)
Returns a string representation of the object using a prefix
This can be used as part of a facility to output a MetaData file.
|
addExtension, addExtension, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, isInitialised, isPopulated, isUsed, newExtensionMetaData, removeExtension, setParent, toString
public static final boolean PERSIST_STATIC
public static final boolean PERSIST_FINAL
public static final boolean PERSIST_TRANSIENT
protected ColumnMetaData[] columnMetaData
protected ContainerMetaData containerMetaData
protected EmbeddedMetaData embeddedMetaData
protected JoinMetaData joinMetaData
protected ElementMetaData elementMetaData
protected KeyMetaData keyMetaData
protected ValueMetaData valueMetaData
protected IndexMetaData indexMetaData
protected IndexedValue indexed
protected UniqueMetaData uniqueMetaData
protected boolean uniqueConstraint
protected OrderMetaData orderMetaData
protected ForeignKeyMetaData foreignKeyMetaData
protected Boolean defaultFetchGroup
protected String column
protected String mappedBy
protected Boolean embedded
protected Boolean dependent
protected Boolean serialized
protected boolean cacheable
protected Boolean cascadePersist
protected Boolean cascadeUpdate
protected Boolean cascadeDelete
protected Boolean cascadeDetach
protected Boolean cascadeRefresh
protected boolean cascadeRemoveOrphans
protected String loadFetchGroup
public static final int DEFAULT_RECURSION_DEPTH
public static final int UNDEFINED_RECURSION_DEPTH
protected int recursionDepth
protected final String name
protected NullValue nullValue
protected FieldPersistenceModifier persistenceModifier
protected Boolean primaryKey
protected String table
protected String catalog
protected String schema
protected IdentityStrategy valueStrategy
protected String valueGeneratorName
protected String sequence
protected String className
protected String fullFieldName
getFullFieldName()
.protected Class type
protected Member memberRepresented
protected int fieldId
protected RelationType relationType
protected AbstractMemberMetaData[] relatedMemberMetaData
protected boolean ordered
protected List<ColumnMetaData> columns
protected String targetClassName
protected boolean storeInLob
protected String mapsIdAttribute
protected String relationTypeString
protected byte persistenceFlags
public AbstractMemberMetaData(MetaData parent, AbstractMemberMetaData mmd)
parent
- The parentmmd
- The member metadata to copypublic void populate(ClassLoaderResolver clr, Field field, Method method, ClassLoader primary, MetaDataManager mmgr)
clr
- ClassLoaderResolver to use for any class loadingfield
- Field that we are representing (if it's a field)method
- Method(property) that we are representing (if it's a method).primary
- the primary ClassLoader to use (or null)mmgr
- MetaData managerpublic String getPackageName()
public final FieldPersistenceModifier getDefaultFieldPersistenceModifier(Class c, int modifier, boolean isPCclass, MetaDataManager mmgr)
c
- The classmodifier
- The modifiers for the fieldisPCclass
- Whether it is persistence capable.mmgr
- MetaData managerpublic void initialise(ClassLoaderResolver clr, MetaDataManager mmgr)
initialise
in class MetaData
public boolean isFieldArrayTypePersistable(MetaDataManager mmgr)
mmgr
- MetaData managerpublic boolean isStatic()
public boolean isFinal()
public boolean isTransient()
public boolean isPublic()
public boolean isProtected()
public boolean isPrivate()
public boolean isAbstract()
public IdentityStrategy getValueStrategy()
public void setValueStrategy(IdentityStrategy valueStrategy)
public void setValueStrategy(String strategy)
public String getValueGeneratorName()
public String getSequence()
public void setSequence(String sequence)
sequence
- the sequence namepublic boolean isCacheable()
public void setCacheable(boolean cache)
public String getLoadFetchGroup()
public void setLoadFetchGroup(String loadFetchGroup)
public String getTypeConverterName()
public void setTypeConverterName(String name)
public boolean isTypeConversionDisabled()
public void setTypeConverterDisabled()
public int getRecursionDepth()
public void setRecursionDepth(int depth)
public void setRecursionDepth(String depth)
public boolean fetchFKOnly()
protected static MetaData getOverallParentClassMetaData(MetaData metadata)
metadata
- The metadata to checkpublic AbstractClassMetaData getAbstractClassMetaData()
public final OrderMetaData getOrderMetaData()
public String getName()
public String getFullFieldName()
public boolean fieldBelongsToClass()
public String getClassName()
public String getClassName(boolean fully_qualified)
fully_qualified
- Whether the name should be fully qualified.public FieldPersistenceModifier getPersistenceModifier()
public void setPersistenceModifier(FieldPersistenceModifier modifier)
public void setNotPersistent()
public void setTransactional()
public boolean isDefaultFetchGroup()
public void setDefaultFetchGroup(boolean dfg)
public boolean isDependent()
public void setDependent(boolean dependent)
public boolean isEmbedded()
public void setEmbedded(boolean val)
public boolean isSerialized()
public void setSerialised(boolean flag)
public String getMapsIdAttribute()
public boolean isCascadePersist()
public boolean isCascadeUpdate()
public boolean isCascadeDelete()
public boolean isCascadeDetach()
public boolean isCascadeRefresh()
public boolean isCascadeRemoveOrphans()
public boolean isPrimaryKey()
public AbstractMemberMetaData setPrimaryKey(boolean flag)
public AbstractMemberMetaData setColumn(String col)
public String getTable()
public AbstractMemberMetaData setTable(String table)
public String getCatalog()
public AbstractMemberMetaData setCatalog(String catalog)
public String getSchema()
public AbstractMemberMetaData setSchema(String schema)
public boolean isUnique()
public AbstractMemberMetaData setUnique(String unique)
public AbstractMemberMetaData setUnique(boolean unique)
public IndexedValue getIndexed()
public AbstractMemberMetaData setIndexed(IndexedValue val)
public NullValue getNullValue()
public AbstractMemberMetaData setNullValue(NullValue val)
public int getFieldId()
public final String[] getFieldTypes()
public void setFieldTypes(String types)
types
- The types (comma-separated)public int getAbsoluteFieldNumber()
public Member getMemberRepresented()
public Class getType()
public String getTypeName()
public ContainerMetaData getContainer()
public ArrayMetaData getArray()
public CollectionMetaData getCollection()
public MapMetaData getMap()
public final String getMappedBy()
public void setMappedBy(String mappedBy)
public final ColumnMetaData[] getColumnMetaData()
getColumnMetaData
in interface ColumnMetaDataContainer
public final ElementMetaData getElementMetaData()
public final KeyMetaData getKeyMetaData()
public final ValueMetaData getValueMetaData()
public final EmbeddedMetaData getEmbeddedMetaData()
public void setDeleteAction(String action)
public final ForeignKeyMetaData getForeignKeyMetaData()
public final IndexMetaData getIndexMetaData()
public final UniqueMetaData getUniqueMetaData()
public final JoinMetaData getJoinMetaData()
public void addColumn(ColumnMetaData colmd)
addColumn
in interface ColumnMetaDataContainer
colmd
- the ColumnMetaData to addpublic ColumnMetaData newColumnMetaData()
public boolean hasContainer()
public boolean hasArray()
public boolean hasCollection()
public boolean hasMap()
public byte getPersistenceFlags()
public boolean isFieldToBePersisted()
public void setOrdered()
public void setTargetClassName(String target)
target
- Target class namepublic void setStoreInLob()
public void setMapsIdAttribute(String attr)
public void setRelationTypeString(String relType)
public String getRelationTypeString()
public void setCascadePersist(boolean cascade)
cascade
- Whether to cascade at persistpublic void setCascadeUpdate(boolean cascade)
cascade
- Whether to cascade at updatepublic void setCascadeDelete(boolean cascade)
cascade
- Whether to cascade at deletepublic void setCascadeDetach(boolean cascade)
cascade
- Whether to cascade at detachpublic void setCascadeRefresh(boolean cascade)
cascade
- Whether to cascade at refreshpublic void setCascadeRemoveOrphans(boolean cascade)
cascade
- Whether to remove orphans on removepublic void setValueGeneratorName(String generator)
generator
- Name of value generatorpublic void setContainer(ContainerMetaData conmd)
conmd
- The MetaData of the container for this field.public CollectionMetaData newCollectionMetaData()
public ArrayMetaData newArrayMetaData()
public MapMetaData newMapMetaData()
public final void setElementMetaData(ElementMetaData elementMetaData)
elementMetaData
- The elementMetaData to set.public ElementMetaData newElementMetaData()
public final void setKeyMetaData(KeyMetaData keyMetaData)
keyMetaData
- The keyMetaData to set.public KeyMetaData newKeyMetaData()
public final void setValueMetaData(ValueMetaData valueMetaData)
valueMetaData
- The valueMetaData to set.public ValueMetaData newValueMetaData()
public final void setOrderMetaData(OrderMetaData orderMetaData)
orderMetaData
- The orderMetaData to set.public OrderMetaData newOrderMetaData()
public final void setEmbeddedMetaData(EmbeddedMetaData embeddedMetaData)
embeddedMetaData
- The embeddedMetaData to set.public EmbeddedMetaData newEmbeddedMetaData()
public final void setForeignKeyMetaData(ForeignKeyMetaData foreignKeyMetaData)
foreignKeyMetaData
- The foreignKeyMetaData to set.public ForeignKeyMetaData newForeignKeyMetaData()
public final void setIndexMetaData(IndexMetaData indexMetaData)
indexMetaData
- The indexMetaData to set.public IndexMetaData newIndexMetaData()
public final void setUniqueMetaData(UniqueMetaData uniqueMetaData)
uniqueMetaData
- The uniqueMetaData to set.public UniqueMetaData newUniqueMetaData()
public final void setJoinMetaData(JoinMetaData joinMetaData)
joinMetaData
- The joinMetaData to set.public JoinMetaData newJoinMetaData()
public JoinMetaData newJoinMetadata()
protected void setRelation(ClassLoaderResolver clr)
clr
- ClassLoader resolverNucleusUserException
- If mapped-by doesnt exist at other sidepublic RelationType getRelationType(ClassLoaderResolver clr)
clr
- ClassLoader resolverpublic boolean isPersistentInterface(ClassLoaderResolver clr, MetaDataManager mmgr)
clr
- ClassLoader resolvermmgr
- MetaData managerpublic boolean isRelationOwner(ClassLoaderResolver clr)
clr
- ClassLoader resolverpublic AbstractMemberMetaData[] getRelatedMemberMetaData(ClassLoaderResolver clr)
clr
- the ClassLoaderResolverpublic AbstractMemberMetaData getRelatedMemberMetaDataForObject(ClassLoaderResolver clr, Object thisPC, Object otherPC)
clr
- ClassLoader ResolverthisPC
- This objectotherPC
- The related objectpublic boolean calcIsSecondClassMutable(MetaDataManager mmgr)
AbstractClassMetaData.scoMutableMemberFlags
.mmgr
- MetaData managerpublic boolean isInsertable()
public boolean isUpdateable()
public String toString(String prefix, String indent)
public int compareTo(Object o)
compareTo
in interface Comparable
o
- The object to compare againstCopyright © 2017. All rights reserved.