|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Holds metadata on a particular field.
Field metadata can be created without attaching it to class metadata,
or without attaching its class metadata to a repository. However, methods
that would require access to metadata for related classes will throw
an exception. Also, the field type code may incorrectly remain
TYPE_OBJECT when the type of the field is actually
persistent (without access to other metadata, there is no way to tell).
| Field Summary | |
static java.lang.String |
DEPENDENT
Extension key used to mark first class object fields that should be deleted when the owning object is deleted. |
static java.lang.String |
ELEMENT_DEPENDENT
Extension key used to mark first class object elements that should be deleted when the owning object is deleted. |
static java.lang.String |
ELEMENT_PC_CLASS
Extension key used to indicate the general type of elements held by a collection field declared to be of a generic interface or object type. |
static java.lang.String |
INVERSE_OWNER
Extension key used to mark the opposite side of a bi-directional relationship if the opposite side is the one managing data storage for the relationship. |
static java.lang.String |
KEY_DEPENDENT
Extension key used to mark first class object keys that should be deleted when the owning object is deleted. |
static java.lang.String |
KEY_PC_CLASS
Extension key used to indicate the general type of keys held by a map field declared to be of a generic interface or object type. |
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 java.lang.String |
PC_CLASS
Extension key used to indicate the general type of values held by a field declared to be of a generic interface or object type. |
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_LOCALE
|
static int |
TYPE_LONG
|
static int |
TYPE_LONG_OBJ
|
static int |
TYPE_MAP
|
static int |
TYPE_NUMBER
|
static int |
TYPE_OBJECT
|
static int |
TYPE_PC_OBJECT
|
static int |
TYPE_SHORT
|
static int |
TYPE_SHORT_OBJ
|
static int |
TYPE_STRING
|
static java.lang.String |
VALUE_DEPENDENT
Extension key used to mark first class object values that should be deleted when the owning object is deleted. |
static java.lang.String |
VALUE_PC_CLASS
Extension key used to indicate the general type of values held by a map field declared to be of a generic interface or object type. |
| Method Summary | |
java.lang.Class |
getDeclaredElementType()
Return the declared class of the described field. |
int |
getDeclaredIndex()
Return the relative index of this persistent/transactional field. |
java.lang.Class |
getDeclaredKeyType()
Return the declared class of the described field. |
java.lang.Class |
getDeclaredType()
Return the declared class of the described field. |
java.lang.String |
getElementPCClass()
The value of the ELEMENT_PC_CLASS extension key. |
java.lang.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. |
com.solarmetric.rd.kodo.meta.ClassMetaData |
getElementTypeMetaData()
Return metadata for the element type, or null if not persistent. |
byte |
getFieldFlag()
Returns the JDO flag type for this field. |
java.lang.String |
getFullName()
Return the full name of the described field, in the form <class>.<field>. |
int |
getIndex()
Return the absolute index of this persistent/transactional field. |
java.lang.String |
getInverseOwner()
Return the field marked as an inverse via the INVERSE_OWNER
extension key. |
com.solarmetric.rd.kodo.meta.FieldMetaData |
getInverseOwnerMetaData()
Return the metadata for the field's inverse. |
java.lang.String |
getKeyPCClass()
The value of the KEY_PC_CLASS extension key. |
java.lang.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. |
com.solarmetric.rd.kodo.meta.ClassMetaData |
getKeyTypeMetaData()
Return metadata for the key type, or null if not persistent. |
int |
getManagement()
Return the management level for the field. |
java.lang.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. |
com.solarmetric.rd.kodo.meta.ClassMetaData |
getOwner()
Return the owning metadata for this field. |
java.lang.String |
getPCClass()
The value of the PC_CLASS extension key. |
java.lang.Class |
getType()
Return the class of the described field. |
int |
getTypeCode()
Return the type code of the described field. |
com.solarmetric.rd.kodo.meta.ClassMetaData |
getTypeMetaData()
Return metadata for the field's type, if the type is persistent. |
void |
invalidateResolve()
For implemntation use. |
boolean |
isDependent()
Return true if the DEPENDENT extension key is
true and the field is a first class object. |
boolean |
isElementDependent()
Return true if the ELEMENT_DEPENDENT/VALUE_DEPENDENT
extension key is true and the element/value contains first class
objects. |
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 declared 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. |
boolean |
isKeyDependent()
Return true if the KEY_DEPENDENT extension key
is true and the key contains first class objects. |
boolean |
isPrimaryKey()
If true, the field was specified in the meta data to be a primary key field. |
void |
resolve()
For implementation use. |
void |
setDeclaredIndex(int index)
Used by ClassMetaData to set index. |
void |
setDependent(boolean cascade)
Set the value of the DEPENDENT standard extension. |
void |
setElementDependent(boolean cascade)
Set the value of the ELEMENT_DEPENDENT extension key. |
void |
setElementPCClass(java.lang.String pc)
The value of the ELEMENT_PC_CLASS extension key. |
void |
setElementType(java.lang.Class cls)
Set the element class for this array/collection/map field. |
void |
setEmbedded(boolean embedded)
Set the embedded value for the field. |
void |
setEmbeddedElement(boolean embedded)
Set whether the elements should be embedded. |
void |
setEmbeddedKey(boolean embedded)
Set whether the keys are embedded. |
void |
setExplicit(boolean explicit)
Set whether the field was explicitly declared in the metadata. |
void |
setInDefaultFetchGroup(boolean dfg)
Set whether the field is in the default fetch group. |
void |
setIndex(int index)
Used by ClassMetaData to set index. |
void |
setInverseOwner(java.lang.String inverse)
Set the field marked as an inverse via the INVERSE_OWNER
extension key. |
void |
setKeyDependent(boolean cascade)
Set the value of the KEY_DEPENDENT extension key. |
void |
setKeyPCClass(java.lang.String pc)
The value of the KEY_PC_CLASS extension key. |
void |
setKeyType(java.lang.Class cls)
Set the key type for this map field. |
void |
setManagement(int manage)
Set the management level for the field. |
void |
setName(java.lang.String name)
Set the name of the described field. |
void |
setNullValue(int nullValue)
Set the null action for the field. |
void |
setOwner(com.solarmetric.rd.kodo.meta.ClassMetaData owner)
Set the owning metadata for this field. |
void |
setPCClass(java.lang.String pc)
The value of the PC_CLASS extension key. |
void |
setPrimaryKey(boolean primKey)
Set whether this is a primary key field. |
void |
setType(java.lang.Class type)
Set the class of the described field. |
| Methods inherited from interface com.solarmetric.rd.kodo.meta.Extensions |
addExtension, addExtension, getBooleanExtension, getBooleanExtension, getDoubleExtension, getDoubleExtension, getEmbeddedExtensions, getEmbeddedExtensions, getExtensionKeys, getExtensionKeys, getExtensionVendors, getIntExtension, getIntExtension, getObjectExtension, getObjectExtension, getStringExtension, getStringExtension, hasExtension, hasExtension, isEmpty, removeEmbeddedExtensions, removeEmbeddedExtensions, removeExtension, removeExtension |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Field Detail |
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
public static final java.lang.String DEPENDENT
public static final java.lang.String ELEMENT_DEPENDENT
public static final java.lang.String KEY_DEPENDENT
public static final java.lang.String VALUE_DEPENDENT
public static final java.lang.String INVERSE_OWNER
public static final java.lang.String PC_CLASS
true to indicate that the field holds some
user-defined persistence-capable value, or to the specific class name
of a user-defined persistent type.
public static final java.lang.String ELEMENT_PC_CLASS
PC_CLASS,
Constant Field Valuespublic static final java.lang.String VALUE_PC_CLASS
PC_CLASS,
Constant Field Valuespublic static final java.lang.String KEY_PC_CLASS
PC_CLASS,
Constant Field Valuespublic 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_NUMBER
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_PC_OBJECT
| Method Detail |
public com.solarmetric.rd.kodo.meta.ClassMetaData getOwner()
public void setOwner(com.solarmetric.rd.kodo.meta.ClassMetaData owner)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getFullName()
<class>.<field>.
public java.lang.Class getType()
public void setType(java.lang.Class type)
public java.lang.Class getDeclaredType()
getType() if the user indicates
a more specific type with the PC_CLASS extension.
public int getTypeCode()
public com.solarmetric.rd.kodo.meta.ClassMetaData getTypeMetaData()
public int getIndex()
public void setIndex(int index)
ClassMetaData to set index.
public int getDeclaredIndex()
public void setDeclaredIndex(int index)
ClassMetaData to set 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)
getManagement()public boolean isPrimaryKey()
public void setPrimaryKey(boolean primKey)
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 void setNullValue(int nullValue)
getNullValue()public boolean isExplicit()
public void setExplicit(boolean explicit)
public boolean isInDefaultFetchGroup()
public void setInDefaultFetchGroup(boolean dfg)
public boolean isEmbedded()
public void setEmbedded(boolean embedded)
public java.lang.Class getElementType()
Object if not specified, or null if this field
does not represent an array/collection/map type.
public java.lang.Class getDeclaredElementType()
getElementType() if the user indicates
a more specific type with the ELEMENT_PC_CLASS extension.
public int getElementTypeCode()
public com.solarmetric.rd.kodo.meta.ClassMetaData getElementTypeMetaData()
public void setElementType(java.lang.Class cls)
public boolean isEmbeddedElement()
public void setEmbeddedElement(boolean embedded)
public java.lang.Class getKeyType()
Object if not specified, or null if this field is not a map.
public java.lang.Class getDeclaredKeyType()
getKeyType() if the user indicates
a more specific type with the KEY_PC_CLASS extension.
public int getKeyTypeCode()
public com.solarmetric.rd.kodo.meta.ClassMetaData getKeyTypeMetaData()
public void setKeyType(java.lang.Class cls)
public boolean isEmbeddedKey()
public void setEmbeddedKey(boolean embedded)
public java.lang.String getInverseOwner()
INVERSE_OWNER
extension key.
public void setInverseOwner(java.lang.String inverse)
INVERSE_OWNER
extension key.
public com.solarmetric.rd.kodo.meta.FieldMetaData getInverseOwnerMetaData()
public boolean isDependent()
DEPENDENT extension key is
true and the field is a first class object.
public void setDependent(boolean cascade)
DEPENDENT standard extension.
public boolean isElementDependent()
ELEMENT_DEPENDENT/VALUE_DEPENDENT
extension key is true and the element/value contains first class
objects.
public void setElementDependent(boolean cascade)
ELEMENT_DEPENDENT extension key.
public boolean isKeyDependent()
KEY_DEPENDENT extension key
is true and the key contains first class objects.
public void setKeyDependent(boolean cascade)
KEY_DEPENDENT extension key.
public java.lang.String getPCClass()
PC_CLASS extension key.
public void setPCClass(java.lang.String pc)
PC_CLASS extension key.
public java.lang.String getElementPCClass()
ELEMENT_PC_CLASS extension key.
public void setElementPCClass(java.lang.String pc)
ELEMENT_PC_CLASS extension key.
public java.lang.String getKeyPCClass()
KEY_PC_CLASS extension key.
public void setKeyPCClass(java.lang.String pc)
KEY_PC_CLASS extension key.
public void resolve()
public void invalidateResolve()
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||