|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Representation of a Java field in a datastore. In the case of RDBMS this will be a column. In the case of a file-based structure this may be a file. In the case of an XML-based structure this may be an node.
Method Summary | |
java.lang.String |
applySelectFunction(java.lang.String replacementValue)
Wraps the column name with a FUNCTION. |
void |
copyConfigurationTo(DatastoreField col)
Copy the configuration of this field to another field |
DatastoreContainerObject |
getDatastoreContainerObject()
Accessor for the DatastoreContainerObject container of this field |
ExtendableMetaData |
getExtendableMetaData()
Access the metadata definition for this DatastoreField. |
JavaTypeMapping |
getMapping()
Accessor for the Mapping for this field. |
java.lang.String |
getStoredJavaType()
Accessor for the type of data stored in this field. |
boolean |
isNullable()
Accessor for whether the field is nullable |
boolean |
isPrimaryKey()
Accessor for whether the field is the primary key |
void |
setAsPrimaryKey()
Mutator to make the field the primary key. |
DatastoreField |
setDefaultable()
Mutator for the defaultability of the datastore field. |
DatastoreField |
setNullable()
Mutator for the nullability of the datastore field. |
Methods inherited from interface org.jpox.store.DatastoreObject |
getIdentifier, getStoreManager |
Method Detail |
public java.lang.String getStoredJavaType()
public void setAsPrimaryKey()
public boolean isPrimaryKey()
public boolean isNullable()
public JavaTypeMapping getMapping()
public DatastoreContainerObject getDatastoreContainerObject()
public java.lang.String applySelectFunction(java.lang.String replacementValue)
example: SQRT(?) generates: SQRT(columnName)
replacementValue
- the replacement to ?. Probably it's a column name, that may be fully qualified name or not
public void copyConfigurationTo(DatastoreField col)
col
- the datastore fieldpublic DatastoreField setNullable()
public DatastoreField setDefaultable()
public ExtendableMetaData getExtendableMetaData()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |