|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.kodo.meta.Extensions
|
+--com.solarmetric.kodo.meta.FieldMetaData
Holds metadata on a particular persistent or transactional field. Instances are not kept for non-persistent, non-transactional fields of JDO instances.
| Field Summary | |
static String |
DEPENDENT
Extension key used to mark first class object fields that should be deleted when the owning object is deleted. |
static String |
ELEMENT_DEPENDENT
Extension key used to mark first class object elements that should be deleted when the owning object is deleted. |
static String |
FETCH_GROUP
Extension key used to identify the fetch group that an object is a member of. |
static String |
KEY_DEPENDENT
Extension key used to mark first class object keys that should be deleted when the owning object is deleted. |
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 |
TYPE_ARRAY
|
static int |
TYPE_BIGDECIMAL
|
static int |
TYPE_BIGINTEGER
|
static int |
TYPE_BOOLEAN
|
static int |
TYPE_BOOLEAN_OBJ
|
static int |
TYPE_BYTE
|
static int |
TYPE_BYTE_OBJ
|
static int |
TYPE_CHAR
|
static int |
TYPE_CHAR_OBJ
|
static int |
TYPE_COLLECTION
|
static int |
TYPE_DATE
|
static int |
TYPE_DOUBLE
|
static int |
TYPE_DOUBLE_OBJ
|
static int |
TYPE_FCO
|
static int |
TYPE_FLOAT
|
static int |
TYPE_FLOAT_OBJ
|
static int |
TYPE_INT
|
static int |
TYPE_INT_OBJ
|
static int |
TYPE_INTERFACE
|
static int |
TYPE_LOCALE
|
static int |
TYPE_LONG
|
static int |
TYPE_LONG_OBJ
|
static int |
TYPE_MAP
|
static int |
TYPE_OBJECT
|
static int |
TYPE_SHORT
|
static int |
TYPE_SHORT_OBJ
|
static int |
TYPE_STRING
|
static String |
VALUE_DEPENDENT
Extension key used to mark first class object values that should be deleted when the owning object is deleted. |
| Constructor Summary | |
(package private) |
FieldMetaData(String name,
Class type,
boolean explicit,
ClassMetaData owner)
Constructor. |
| Method Summary | |
int |
compareTo(Object other)
FieldMetaData orders itself on field name. |
(package private) void |
finish(ClassResolver loader,
JDOMetaDataParser parser,
boolean validate)
Called when the metadata is being finalized to resolve unknown object types and determine whether they are in fact other first class object classes. |
int |
getDeclaredIndex()
Return the relative index of this persistent/transactional field. |
boolean |
getDeclaresCollection()
|
boolean |
getDeclaresMap()
|
Class |
getElementType()
Return the type of objects stored in the array/collection/map; defaults to Object if not specified, or null if this field
does not represent an array/collection/map type. |
int |
getElementTypeCode()
Return the type code of objects stored in the array/collection/map, or -1 if not an array/collection/map. |
ClassMetaData |
getElementTypeMetaData()
Return the ClassMetaData of the objects stored in the
array/collection/map. |
byte |
getFieldFlag()
Returns the JDO flag type for this field. |
int |
getIndex()
Return the absolute index of this persistent/transactional field. |
Class |
getKeyType()
The type of objects used as keys in the map; defaults to Object if not specified, or null if this field is not a map. |
int |
getKeyTypeCode()
The type code of objects used as keys in the map. |
ClassMetaData |
getKeyTypeMetaData()
Return the ClassMetaData of the objects used as keys
in the map. |
String |
getName()
Return the name of the described field. |
int |
getNullValue()
How the data store should treat null values for this field: 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_NONE. |
ClassMetaData |
getOwner()
Return the owning metadata for this field. |
Class |
getType()
Return the class of the described field. |
int |
getTypeCode()
Return the type code of the described field. |
ClassMetaData |
getTypeMetaData()
Return the ClassMetaData of the described field. |
(package private) void |
invalidate()
|
boolean |
isDefaultFetchGroupSpecified()
Return true if the default-fetch-group setting for this field was set; otherwise return false. |
boolean |
isDependent()
|
boolean |
isElementDependent()
|
boolean |
isEmbedded()
This attribute is a hint to the JDO implementation to store this field in the same instance as the class, rather than as a separate datastore instance. |
boolean |
isEmbeddedElement()
A hint to the JDO implementation on whether the arary/collection/map values should be stored as part of the instance rather than as their own instances in the data store. |
boolean |
isEmbeddedKey()
A hint to the JDO implementation on whether the map keys should be stored as part of the instance rather than as their own instances in the data store. |
boolean |
isExplicit()
Return true if the field is explicitly marked persistent or transactional in the metadata. |
boolean |
isInDefaultFetchGroup()
Return true if the field should be fetched at once along with all other default fetch group fields, rather than individually. |
(package private) boolean |
isInvalid()
|
boolean |
isKeyDependent()
|
boolean |
isPersistent()
If false, the field is transactional but not persistent. |
boolean |
isPrimaryKey()
If true, the field was specified in the meta data to be a primary key field. |
(package private) void |
setDeclaredIndex(int index)
|
void |
setDeclaresCollection(boolean coll)
|
void |
setDeclaresMap(boolean map)
|
void |
setDependent(boolean cascade)
|
void |
setElementDependent(boolean cascade)
|
(package private) void |
setElementType(Class type)
|
(package private) void |
setEmbedded(boolean embedded)
|
(package private) void |
setEmbeddedElement(boolean embedded)
|
(package private) void |
setEmbeddedKey(boolean embedded)
|
(package private) void |
setInDefaultFetchGroup(boolean dfg)
|
(package private) void |
setIndex(int index)
|
void |
setKeyDependent(boolean cascade)
|
(package private) void |
setKeyType(Class type)
|
(package private) void |
setNullValue(int nullValue)
|
(package private) void |
setPersistent(boolean persistent)
|
(package private) void |
setPrimaryKey(boolean primKey)
|
| Methods inherited from class com.solarmetric.kodo.meta.Extensions |
addExtension, addExtension, getBooleanExtension, getBooleanExtension, getDoubleExtension, getDoubleExtension, getIntExtension, getIntExtension, getObjectExtension, getObjectExtension, getStringExtension, getStringExtension, hasExtension, hasExtension, removeExtension, removeExtension |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int NULL_NONE
public static final int NULL_DEFAULT
public static final int NULL_EXCEPTION
public static final String DEPENDENT
public static final String ELEMENT_DEPENDENT
public static final String KEY_DEPENDENT
public static final String VALUE_DEPENDENT
public static final String FETCH_GROUP
fetch-group.public static final int TYPE_BOOLEAN
public static final int TYPE_BYTE
public static final int TYPE_CHAR
public static final int TYPE_DOUBLE
public static final int TYPE_FLOAT
public static final int TYPE_INT
public static final int TYPE_LONG
public static final int TYPE_SHORT
public static final int TYPE_STRING
public static final int TYPE_OBJECT
public static final int TYPE_ARRAY
public static final int TYPE_COLLECTION
public static final int TYPE_MAP
public static final int TYPE_DATE
public static final int TYPE_FCO
public static final int TYPE_BOOLEAN_OBJ
public static final int TYPE_BYTE_OBJ
public static final int TYPE_CHAR_OBJ
public static final int TYPE_DOUBLE_OBJ
public static final int TYPE_FLOAT_OBJ
public static final int TYPE_INT_OBJ
public static final int TYPE_LONG_OBJ
public static final int TYPE_SHORT_OBJ
public static final int TYPE_BIGDECIMAL
public static final int TYPE_BIGINTEGER
public static final int TYPE_LOCALE
public static final int TYPE_INTERFACE
| Constructor Detail |
FieldMetaData(String name,
Class type,
boolean explicit,
ClassMetaData owner)
name - the field nametype - the field typeexplicit - true if the field was explicitly declared in the
metadataowner - metadata for the field's declaring class| Method Detail |
void finish(ClassResolver loader,
JDOMetaDataParser parser,
boolean validate)
public ClassMetaData getOwner()
public String getName()
public int getIndex()
public int getDeclaredIndex()
public Class getType()
public ClassMetaData getTypeMetaData()
ClassMetaData of the described field.public int getTypeCode()
public boolean isPersistent()
public boolean isPrimaryKey()
public byte getFieldFlag()
PersistenceCapable interface.public int getNullValue()
NULL_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_NONE.public boolean isExplicit()
public boolean isInDefaultFetchGroup()
public boolean isDefaultFetchGroupSpecified()
public boolean isEmbedded()
public Class getElementType()
Object if not specified, or null if this field
does not represent an array/collection/map type.public ClassMetaData getElementTypeMetaData()
ClassMetaData of the objects stored in the
array/collection/map.public int getElementTypeCode()
public boolean isEmbeddedElement()
public Class getKeyType()
Object if not specified, or null if this field is not a map.public ClassMetaData getKeyTypeMetaData()
ClassMetaData of the objects used as keys
in the map.public int getKeyTypeCode()
public boolean isEmbeddedKey()
public int compareTo(Object other)
compareTo in interface Comparablevoid invalidate()
boolean isInvalid()
void setInDefaultFetchGroup(boolean dfg)
void setIndex(int index)
void setDeclaredIndex(int index)
void setPersistent(boolean persistent)
void setPrimaryKey(boolean primKey)
void setNullValue(int nullValue)
void setEmbedded(boolean embedded)
void setElementType(Class type)
void setEmbeddedElement(boolean embedded)
void setKeyType(Class type)
void setEmbeddedKey(boolean embedded)
public boolean isDependent()
public void setDependent(boolean cascade)
public boolean isElementDependent()
public void setElementDependent(boolean cascade)
public boolean isKeyDependent()
public void setKeyDependent(boolean cascade)
public void setDeclaresMap(boolean map)
public boolean getDeclaresMap()
public void setDeclaresCollection(boolean coll)
public boolean getDeclaresCollection()
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||