public class ValueMetaDataImpl extends Object implements ValueMetaData
ValueMetaData implementation.CASCADE_AUTO, CASCADE_IMMEDIATE, CASCADE_NONE, MAPPED_BY_PKMODE_ALL, MODE_ANN_MAPPING, MODE_MAPPING, MODE_MAPPING_INIT, MODE_META, MODE_NONE, MODE_QUERY| Modifier | Constructor and Description |
|---|---|
protected |
ValueMetaDataImpl()
Constructor for serialization.
|
protected |
ValueMetaDataImpl(FieldMetaData owner) |
| Modifier and Type | Method and Description |
|---|---|
ClassMetaData |
addEmbeddedMetaData()
Add embedded metadata for this value.
|
ClassMetaData |
addEmbeddedMetaData(int access)
Add embedded metadata for this value with the given access type
|
void |
copy(ValueMetaData vmd)
Copy state from the given value to this one.
|
int |
getCascadeAttach()
Cascade behavior for attach operation.
|
int |
getCascadeDelete()
Cascade behavior for delete operation.
|
int |
getCascadeDetach()
Cascade behavior for detach operation.
|
int |
getCascadePersist()
Cascade behavior for persist operation.
|
int |
getCascadeRefresh()
Cascade behavior for refresh operation.
|
Class |
getDeclaredType()
Return the declared class of the value.
|
int |
getDeclaredTypeCode()
Return the declared type code of the value.
|
ClassMetaData |
getDeclaredTypeMetaData()
Return metadata for the value's class, if the type is persistent.
|
ClassMetaData |
getEmbeddedMetaData()
The embedded class metadata for the value.
|
FieldMetaData |
getFieldMetaData()
Return the owning field for this value.
|
MetaDataRepository |
getRepository()
Access metadata repository.
|
int |
getResolve()
Resolve mode for metadata.
|
Class |
getType()
The value class.
|
int |
getTypeCode()
The type code of the value class.
|
ClassMetaData |
getTypeMetaData()
The metadata for the value class, if the type is persistent.
|
Class |
getTypeOverride()
User-supplied type overriding assumed type based on field.
|
String |
getValueMappedBy()
The field that this value shares a mapping with.
|
FieldMetaData |
getValueMappedByMetaData()
The field that this value shares a mapping with.
|
boolean |
isDeclaredTypePC()
Whether the type is a persistence capable instance.
|
boolean |
isEmbedded()
This attribute is a hint to the implementation to store this value
in the same structure as the class, rather than as a separate datastore
structure.
|
boolean |
isEmbeddedPC()
Whether this is an embedded persistence capable value.
|
boolean |
isSerialized()
Whether this value is serialized when stored.
|
boolean |
isTypePC()
Whether the type is a persistence capable instance.
|
boolean |
resolve(int mode)
Resolve and validate metadata.
|
void |
setCascadeAttach(int attach)
Cascade behavior for attach operation.
|
void |
setCascadeDelete(int delete)
Cascade behavior for deletion.
|
void |
setCascadeDetach(int detach)
Cascade behavior for detach operation.
|
void |
setCascadePersist(int persist)
Cascade behavior for persist operation.
|
void |
setCascadePersist(int persist,
boolean checkPUDefault)
Cascade behavior for persist operation.
|
void |
setCascadeRefresh(int refresh)
Cascade behavior for refresh operation.
|
void |
setDeclaredType(Class type)
Set the declared class of the value.
|
void |
setDeclaredTypeCode(int code)
Set the type code for the value.
|
void |
setEmbedded(boolean embedded)
This attribute is a hint to the implementation to store this value
in the same structure as the class, rather than as a separate datastore
structure.
|
void |
setResolve(int mode)
Resolve mode for metadata.
|
void |
setResolve(int mode,
boolean on)
Resolve mode for metadata.
|
void |
setSerialized(boolean serialized)
Whether this value is serialized when stored.
|
void |
setType(Class type)
The value class.
|
void |
setTypeCode(int code)
The type code of the value class.
|
void |
setTypeOverride(Class val)
User-supplied type overriding assumed type based on field.
|
void |
setValueMappedBy(String mapped)
The field that this value shares a mapping with.
|
String |
toString() |
protected ValueMetaDataImpl(FieldMetaData owner)
protected ValueMetaDataImpl()
public FieldMetaData getFieldMetaData()
ValueMetaDatagetFieldMetaData in interface ValueMetaDatapublic MetaDataRepository getRepository()
MetaDataContextgetRepository in interface MetaDataContextpublic Class getType()
ValueMetaDatagetType in interface ValueMetaDatapublic void setType(Class type)
ValueMetaDatasetType in interface ValueMetaDatapublic int getTypeCode()
ValueMetaDatagetTypeCode in interface ValueMetaDatapublic void setTypeCode(int code)
ValueMetaDatasetTypeCode in interface ValueMetaDatapublic boolean isTypePC()
ValueMetaDataisTypePC in interface ValueMetaDatapublic ClassMetaData getTypeMetaData()
ValueMetaDatagetTypeMetaData in interface ValueMetaDatapublic Class getDeclaredType()
ValueMetaDataValueMetaData.getType() if the user indicates
a different type or the value has an externalizer.getDeclaredType in interface ValueMetaDatapublic void setDeclaredType(Class type)
ValueMetaDatasetDeclaredType in interface ValueMetaDatapublic int getDeclaredTypeCode()
ValueMetaDataValueMetaData.getTypeCode() if the user indicates
a different type or the value has an externalizer.getDeclaredTypeCode in interface ValueMetaDatapublic void setDeclaredTypeCode(int code)
ValueMetaDatasetDeclaredTypeCode in interface ValueMetaDatapublic boolean isDeclaredTypePC()
ValueMetaDataisDeclaredTypePC in interface ValueMetaDatapublic ClassMetaData getDeclaredTypeMetaData()
ValueMetaDatagetDeclaredTypeMetaData in interface ValueMetaDatapublic boolean isEmbedded()
ValueMetaDataisEmbedded in interface ValueMetaDatapublic void setEmbedded(boolean embedded)
ValueMetaDatasetEmbedded in interface ValueMetaDatapublic boolean isEmbeddedPC()
ValueMetaDataisEmbeddedPC in interface ValueMetaDatapublic ClassMetaData getEmbeddedMetaData()
ValueMetaDatagetEmbeddedMetaData in interface ValueMetaDatapublic ClassMetaData addEmbeddedMetaData(int access)
ValueMetaDataaddEmbeddedMetaData in interface ValueMetaDatapublic ClassMetaData addEmbeddedMetaData()
ValueMetaDataaddEmbeddedMetaData in interface ValueMetaDatapublic int getCascadeDelete()
ValueMetaDataCASCADE_NONE: No cascades.CASCADE_IMMEDIATE: Value is deleted immediately when
the owning object is deleted.CASCADE_AUTO: Value will be deleted on flush
if the owning object is deleted or if the value is removed from the
owning object, and if the value is not assigned to another relation in
the same transaction.getCascadeDelete in interface ValueMetaDatapublic void setCascadeDelete(int delete)
ValueMetaDatasetCascadeDelete in interface ValueMetaDataValueMetaData.getCascadeDelete()public int getCascadePersist()
ValueMetaDataCASCADE_NONE: No cascades. If a transient relation
is held at flush, an error is thrown.CASCADE_IMMEDIATE: Value is persisted immediately when
the owning object is persisted.CASCADE_AUTO: Value will be persisted on flush.getCascadePersist in interface ValueMetaDatapublic void setCascadePersist(int persist)
ValueMetaDatasetCascadePersist in interface ValueMetaDataValueMetaData.getCascadePersist()public void setCascadePersist(int persist,
boolean checkPUDefault)
ValueMetaDatasetCascadePersist in interface ValueMetaDataValueMetaData.getCascadePersist()public int getCascadeAttach()
ValueMetaDataCASCADE_NONE: No cascades of attach. Relation
remains detached.CASCADE_IMMEDIATE: Value is attached immediately.getCascadeAttach in interface ValueMetaDatapublic void setCascadeAttach(int attach)
ValueMetaDatasetCascadeAttach in interface ValueMetaDataValueMetaData.getCascadeAttach()public int getCascadeDetach()
ValueMetaDataCASCADE_NONE: No cascades of detach. Relation
remains attached.CASCADE_IMMEDIATE: Value is detached immediately.getCascadeDetach in interface ValueMetaDatapublic void setCascadeDetach(int detach)
ValueMetaDatasetCascadeDetach in interface ValueMetaDataValueMetaData.getCascadeDetach()public int getCascadeRefresh()
ValueMetaDataCASCADE_NONE: No cascades of refresh.CASCADE_IMMEDIATE: Persistent value object is also
refreshed.CASCADE_AUTO: Value will be refreshed if it is
in the current fetch groups.getCascadeRefresh in interface ValueMetaDatapublic void setCascadeRefresh(int refresh)
ValueMetaDatasetCascadeRefresh in interface ValueMetaDataValueMetaData.getCascadeRefresh()public boolean isSerialized()
ValueMetaDataisSerialized in interface ValueMetaDatapublic void setSerialized(boolean serialized)
ValueMetaDatasetSerialized in interface ValueMetaDatapublic String getValueMappedBy()
ValueMetaDatagetValueMappedBy in interface ValueMetaDatapublic void setValueMappedBy(String mapped)
ValueMetaDatasetValueMappedBy in interface ValueMetaDatapublic FieldMetaData getValueMappedByMetaData()
ValueMetaDatagetValueMappedByMetaData in interface ValueMetaDatapublic Class getTypeOverride()
ValueMetaDatagetTypeOverride in interface ValueMetaDatapublic void setTypeOverride(Class val)
ValueMetaDatasetTypeOverride in interface ValueMetaDatapublic int getResolve()
ValueMetaDatagetResolve in interface ValueMetaDatapublic void setResolve(int mode)
ValueMetaDatasetResolve in interface ValueMetaDatapublic void setResolve(int mode,
boolean on)
ValueMetaDatasetResolve in interface ValueMetaDatapublic boolean resolve(int mode)
ValueMetaDataresolve in interface ValueMetaDatapublic void copy(ValueMetaData vmd)
ValueMetaDatacopy in interface ValueMetaDataCopyright © 2006–2022 Apache Software Foundation. All rights reserved.