|
Kodo 4.0.0RC2 generated on May 12 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectExtensions
kodo.meta.FieldMetaData
public class FieldMetaData
Metadata for a managed class field.
| Field Summary | |
|---|---|
static int |
MANAGE_NONE
Constant specifying the management level of a field. |
static int |
MANAGE_PERSISTENT
Constant specifying the management level of a field. |
static int |
MANAGE_TRANSACTIONAL
Constant specifying the management level of a field. |
static int |
NULL_DEFAULT
Constant specifying to use a datastore default value to persist null values in object fields. |
static int |
NULL_EXCEPTION
Constant specifying to throw an exception when attempting to persist null values in object fields. |
static int |
NULL_NONE
Constant specifying to use a datastore null to persist null values in object fields. |
static int |
NULL_UNSET
Constant specifying that no null-value was given. |
| Constructor Summary | |
|---|---|
protected |
FieldMetaData(String name,
Class type,
ClassMetaData owner)
Constructor. |
| Method Summary | |
|---|---|
ClassMetaData |
addEmbeddedMetaData()
|
protected void |
addExtensionKeys(Collection exts)
|
void |
backingMember(Member member)
Supply the backing member object; this allows us to utilize parameterized type information if available. |
int |
compareTo(Object other)
|
void |
copy(FieldMetaData field)
Copy state from the given field to this one. |
boolean |
equals(Object other)
|
Member |
getBackingMember()
Return the backing member supplied in backingMember(java.lang.reflect.Member). |
int |
getCascadeAttach()
|
int |
getCascadeDelete()
|
int |
getCascadePersist()
|
int |
getCascadeRefresh()
|
String[] |
getComments()
|
int |
getDeclaredIndex()
The relative index of this persistent/transactional field. |
Class |
getDeclaredType()
|
int |
getDeclaredTypeCode()
|
ClassMetaData |
getDeclaredTypeMetaData()
|
ClassMetaData |
getDeclaringMetaData()
The declaring class. |
Class |
getDeclaringType()
The declaring class. |
ClassMetaData |
getDefiningMetaData()
The class that defines the metadata for this field. |
ValueMetaData |
getElement()
Metadata about the element value. |
ClassMetaData |
getEmbeddedMetaData()
|
String |
getExternalizer()
The name of this field's externalizer, or null if none. |
Method |
getExternalizerMethod()
The externalizer method. |
Object |
getExternalValue(Object val,
StoreContext ctx)
Convert the given field value to its external value through the provided externalizer, or return the value as-is if no externalizer. |
Map |
getExternalValueMap()
Return the mapping of field values to external values. |
String |
getExternalValues()
Properties string mapping field values to external values. |
String |
getFactory()
The name of this field's factory, or null if none. |
Member |
getFactoryMethod()
The factory method or constructor. |
String |
getFetchGroup()
Return the name of the custom fetch group for this field, or null if none. |
FieldMetaData |
getFieldMetaData()
|
Object |
getFieldValue(Object val,
StoreContext ctx)
Return the result of passing the given external value through the factory to get the field value. |
Map |
getFieldValueMap()
Return the mapping of external values to field values. |
String |
getFullName()
The field name, qualified by the owning class. |
int |
getIndex()
The absolute index of this persistent/transactional field. |
Object |
getInitializer()
The initializer used by the field, or null if none. |
String |
getInverse()
Logical inverse field. |
FieldMetaData[] |
getInverseMetaDatas()
Return all inverses of this field. |
ValueMetaData |
getKey()
Metadata about the key value. |
int |
getListingIndex()
The index in which this field was listed in the metadata. |
LockGroup |
getLockGroup()
The lock group for this field, or null if none. |
int |
getManagement()
Return the management level for the field. |
String |
getMappedBy()
The field that this field shares a mapping with. |
FieldMetaData |
getMappedByMetaData()
The field that this field shares a mapping with. |
String |
getName()
The field name. |
int |
getNullValue()
How the data store should treat null values for this field: NULL_UNSET: no value supplied
NULL_NONE: leave null values as null in the data store
NULL_EXCEPTION: throw an exception if this field is null
at commit
NULL_DEFAULT: use the database default if this field is
null at commit
Defaults to NULL_UNSET. |
String |
getOrderDeclaration()
String declaring the orderings for this field to be applied on load, or null. |
Order[] |
getOrders()
The orderings for this field to be applied on load, or empty array. |
int |
getPrimaryKeyIndex()
The absolute primary key index for this field, or -1 if not a primary key. |
Class |
getProxyType()
The type this field was initialized with, and therefore the type to use for proxies when loading data into this field. |
MetaDataRepository |
getRepository()
The metadata repository. |
int |
getResolve()
Resolve mode for this field. |
Class |
getType()
|
int |
getTypeCode()
|
ClassMetaData |
getTypeMetaData()
|
Class |
getTypeOverride()
|
int |
getUpdateStrategy()
The strategy to use when updating the field. |
ValueMetaData |
getValue()
MetaData about the field value. |
String |
getValueMappedBy()
|
FieldMetaData |
getValueMappedByMetaData()
|
SequenceMetaData |
getValueSequenceMetaData()
Metadata for the value sequence. |
String |
getValueSequenceName()
The value sequence name, or null for none. |
int |
getValueStrategy()
The strategy to use for insert value generation. |
int |
hashCode()
|
boolean |
isDeclaredTypePC()
|
boolean |
isDefaultFetchGroupExplicit()
Whether the default fetch group setting is explicit. |
boolean |
isEmbedded()
|
boolean |
isEmbeddedPC()
|
boolean |
isExplicit()
Whether this field is explicitly declared in the metadata. |
boolean |
isExternalized()
Whether the field is externalized. |
boolean |
isInDefaultFetchGroup()
Whether this field is in the default fetch group. |
boolean |
isLRS()
Whether this field is backed by a large result set. |
boolean |
isMapped()
Return whether this field is mapped to the datastore. |
boolean |
isPrimaryKey()
Whether this is a primary key field. |
boolean |
isSerialized()
|
boolean |
isTransient()
Return whether this is a transient field. |
boolean |
isTypePC()
|
boolean |
isVersion()
Whether this field holds optimistic version information. |
Object |
order(Object val)
Order this field value when it is loaded. |
boolean |
resolve(int mode)
Resolve and validate metadata. |
void |
setCascadeAttach(int attach)
|
void |
setCascadeDelete(int delete)
|
void |
setCascadePersist(int persist)
|
void |
setCascadeRefresh(int refresh)
|
void |
setComments(String[] comments)
|
void |
setDeclaredIndex(int index)
The relative index of this persistent/transactional field. |
void |
setDeclaredType(Class type)
|
void |
setDeclaredTypeCode(int type)
|
void |
setDeclaringType(Class cls)
The declaring class. |
void |
setDefaultFetchGroupExplicit(boolean explicit)
Whether the default fetch group setting is explicit. |
void |
setEmbedded(boolean embedded)
|
void |
setExplicit(boolean explicit)
Whether this field is explicitly declared in the metadata. |
void |
setExternalizer(String externalizer)
The name of this field's externalizer, or null if none. |
void |
setExternalValues(String values)
Properties string mapping field values to external values. |
void |
setFactory(String factory)
The name of this field's factory, or null if none. |
void |
setFetchGroup(String fg)
Return the name of the custom fetch group for this field, or null if none. |
void |
setInDefaultFetchGroup(boolean dfg)
Whether this field is in the default fetch group. |
void |
setIndex(int index)
The absolute index of this persistent/transactional field. |
void |
setInitializer(Object initializer)
The initializer used by the field, or null if none. |
void |
setInverse(String inverse)
Logical inverse field. |
void |
setListingIndex(int index)
The index in which this field was listed in the metadata. |
void |
setLockGroup(LockGroup lg)
The lock group for this field, or null if none. |
void |
setLRS(boolean lrs)
Whether this field is backed by a large result set. |
void |
setManagement(int manage)
Return the management level for the field. |
void |
setMappedBy(String mapped)
The field that this field shares a mapping with. |
void |
setNullValue(int nullValue)
How the data store should treat null values for this field: NULL_UNSET: no value supplied
NULL_NONE: leave null values as null in the data store
NULL_EXCEPTION: throw an exception if this field is null
at commit
NULL_DEFAULT: use the database default if this field is
null at commit
Defaults to NULL_UNSET. |
void |
setOrderDeclaration(String dec)
String declaring the orderings for this field to be applied on load, or null. |
void |
setOrders(Order[] orders)
The orderings for this field to be applied on load. |
void |
setPrimaryKey(boolean primKey)
Whether this is a primary key field. |
void |
setPrimaryKeyIndex(int index)
The absolute primary key index for this field, or -1 if not a primary key. |
void |
setProxyType(Class type)
The type this field was initialized with, and therefore the type to use for proxies when loading data into this field. |
void |
setResolve(int mode)
Resolve mode for this field. |
void |
setResolve(int mode,
boolean on)
Resolve mode for this field. |
void |
setSerialized(boolean serialized)
|
void |
setTransient(boolean trans)
Return whether this is a transient field. |
void |
setType(Class type)
|
void |
setTypeCode(int code)
|
void |
setTypeOverride(Class type)
|
void |
setUpdateStrategy(int strategy)
Set the update strategy. |
void |
setUsesImplData(Boolean implData)
Whether this field uses impl data in conjunction with standard field data when acting on a KodoStateManager. |
void |
setUsesIntermediate(boolean intermediate)
Whether this field uses intermediate data when loading/storing information through a KodoStateManager. |
void |
setValueMappedBy(String mapped)
|
void |
setValueSequenceName(String seqName)
The value sequence name, or null for none. |
void |
setValueStrategy(int strategy)
The strategy to use for insert value generation. |
void |
setVersion(boolean version)
Whether this field holds optimistic version information. |
String |
toString()
|
Boolean |
usesImplData()
Whether this field uses impl data in conjunction with standard field data when acting on a KodoStateManager. |
boolean |
usesIntermediate()
Whether this field uses intermediate data when loading/storing information through a KodoStateManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NULL_UNSET
public static final int NULL_NONE
public static final int NULL_DEFAULT
public static final int NULL_EXCEPTION
public static final int MANAGE_PERSISTENT
public static final int MANAGE_TRANSACTIONAL
public static final int MANAGE_NONE
| Constructor Detail |
|---|
protected FieldMetaData(String name,
Class type,
ClassMetaData owner)
name - the field nametype - the field typeowner - the owning class metadata| Method Detail |
|---|
public void backingMember(Member member)
public Member getBackingMember()
backingMember(java.lang.reflect.Member).
public MetaDataRepository getRepository()
public ClassMetaData getDefiningMetaData()
public Class getDeclaringType()
public void setDeclaringType(Class cls)
public ClassMetaData getDeclaringMetaData()
public String getName()
public String getFullName()
public ValueMetaData getValue()
public ValueMetaData getKey()
public ValueMetaData getElement()
public boolean isMapped()
public Class getProxyType()
public void setProxyType(Class type)
public Object getInitializer()
Comparator used by a Set or
a TimeZone used by a Calendar.
public void setInitializer(Object initializer)
Comparator used by a Set or
a TimeZone used by a Calendar.
public boolean isTransient()
public void setTransient(boolean trans)
public int getIndex()
public void setIndex(int index)
public int getDeclaredIndex()
public void setDeclaredIndex(int index)
public int getListingIndex()
-1 if this field was not listed in the metadata.
public void setListingIndex(int index)
-1 if this field was not listed in the metadata.
public int getPrimaryKeyIndex()
public void setPrimaryKeyIndex(int index)
public int getManagement()
MANAGE_PERSISTENT: the field is persistentMANAGE_TRANSACTIONAL: the field is transactional but not
persistentMANAGE_NONE: the field is not managedMANAGE_PERSISTENT.
public void setManagement(int manage)
MANAGE_PERSISTENT: the field is persistentMANAGE_TRANSACTIONAL: the field is transactional but not
persistentMANAGE_NONE: the field is not managedMANAGE_PERSISTENT.
public boolean isPrimaryKey()
public void setPrimaryKey(boolean primKey)
public boolean isVersion()
public void setVersion(boolean version)
public boolean isInDefaultFetchGroup()
public void setInDefaultFetchGroup(boolean dfg)
public boolean isDefaultFetchGroupExplicit()
public void setDefaultFetchGroupExplicit(boolean explicit)
public int getNullValue()
NULL_UNSET: no value suppliedNULL_NONE: leave null values as null in the data storeNULL_EXCEPTION: throw an exception if this field is null
at commitNULL_DEFAULT: use the database default if this field is
null at commitNULL_UNSET.
public void setNullValue(int nullValue)
NULL_UNSET: no value suppliedNULL_NONE: leave null values as null in the data storeNULL_EXCEPTION: throw an exception if this field is null
at commitNULL_DEFAULT: use the database default if this field is
null at commitNULL_UNSET.
public boolean isExplicit()
public void setExplicit(boolean explicit)
public String getMappedBy()
public void setMappedBy(String mapped)
public FieldMetaData getMappedByMetaData()
public String getInverse()
public void setInverse(String inverse)
public FieldMetaData[] getInverseMetaDatas()
public int getValueStrategy()
ValueStrategies.
public void setValueStrategy(int strategy)
ValueStrategies.
public String getValueSequenceName()
public void setValueSequenceName(String seqName)
public SequenceMetaData getValueSequenceMetaData()
public int getUpdateStrategy()
public void setUpdateStrategy(int strategy)
public boolean isLRS()
public void setLRS(boolean lrs)
public String getFetchGroup()
public void setFetchGroup(String fg)
public boolean usesIntermediate()
KodoStateManager. Defaults to true.
KodoStateManager#setIntermediate(int,Object)public void setUsesIntermediate(boolean intermediate)
KodoStateManager. Defaults to true.
KodoStateManager#setIntermediate(int,Object)public Boolean usesImplData()
KodoStateManager.
Defaults to Boolean.TRUE (non-cachable impl data).
Boolean.FALSE if this field does not use impl data,
Boolean.TRUE if this field uses non-cachable impl
data, or null if this field uses impl data that
should be cached across instancesKodoStateManager#setImplData(int,Object)public void setUsesImplData(Boolean implData)
KodoStateManager.
KodoStateManager#setImplData(int,Object),
usesImplData()public LockGroup getLockGroup()
public void setLockGroup(LockGroup lg)
public Order[] getOrders()
public void setOrders(Order[] orders)
public String getOrderDeclaration()
orderable[ asc|desc][, ...]#element is used to denote the value of
the field's elements.
public void setOrderDeclaration(String dec)
orderable[ asc|desc][, ...]#element is used to denote the value of
the field's elements.
public Object order(Object val)
public boolean isExternalized()
public Object getExternalValue(Object val,
StoreContext ctx)
public Object getFieldValue(Object val,
StoreContext ctx)
public String getExternalizer()
public void setExternalizer(String externalizer)
public String getFactory()
public void setFactory(String factory)
public String getExternalValues()
public void setExternalValues(String values)
public Map getExternalValueMap()
public Map getFieldValueMap()
public Method getExternalizerMethod()
public Member getFactoryMethod()
public int hashCode()
public boolean equals(Object other)
public int compareTo(Object other)
public String toString()
public int getResolve()
public void setResolve(int mode)
public void setResolve(int mode,
boolean on)
public boolean resolve(int mode)
public void copy(FieldMetaData field)
protected void addExtensionKeys(Collection exts)
public String[] getComments()
public void setComments(String[] comments)
public FieldMetaData getFieldMetaData()
public Class getType()
public void setType(Class type)
public int getTypeCode()
public void setTypeCode(int code)
public boolean isTypePC()
public ClassMetaData getTypeMetaData()
public Class getDeclaredType()
public void setDeclaredType(Class type)
public int getDeclaredTypeCode()
public void setDeclaredTypeCode(int type)
public boolean isDeclaredTypePC()
public ClassMetaData getDeclaredTypeMetaData()
public boolean isEmbedded()
public void setEmbedded(boolean embedded)
public boolean isEmbeddedPC()
public ClassMetaData getEmbeddedMetaData()
public ClassMetaData addEmbeddedMetaData()
public int getCascadeDelete()
public void setCascadeDelete(int delete)
public int getCascadePersist()
public void setCascadePersist(int persist)
public int getCascadeAttach()
public void setCascadeAttach(int attach)
public int getCascadeRefresh()
public void setCascadeRefresh(int refresh)
public boolean isSerialized()
public void setSerialized(boolean serialized)
public String getValueMappedBy()
public void setValueMappedBy(String mapped)
public FieldMetaData getValueMappedByMetaData()
public Class getTypeOverride()
public void setTypeOverride(Class type)
|
Kodo 4.0.0RC2 generated on May 12 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||