|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatastoreField
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 |
DatastoreMapping |
getDatastoreMapping()
Accessor for the datastore mapping that this datastore field relates to. |
AbstractMemberMetaData |
getFieldMetaData()
Accessor for the MetaData of the field that this is the datastore field for. |
JavaTypeMapping |
getMapping()
Accessor for the Mapping for this field. |
MetaData |
getMetaData()
Access the metadata definition defining this DatastoreField. |
java.lang.String |
getStoredJavaType()
Accessor for the type of data stored in this field. |
boolean |
isNullable()
Accessor for whether the field is nullable in the datastore. |
boolean |
isPrimaryKey()
Accessor for whether the field is the primary key in the datastore. |
void |
setAsPrimaryKey()
Mutator to make the field the primary key. |
void |
setDatastoreMapping(DatastoreMapping mapping)
Method to associate this datastore field with its mapping. |
DatastoreField |
setDefaultable()
Mutator for the defaultability of the datastore field. |
void |
setIdentifier(DatastoreIdentifier identifier)
Mutator for the identifier of the column. |
void |
setMetaData(MetaData md)
Method to set the MetaData for this datastore field. |
DatastoreField |
setNullable()
Mutator for the nullability of the datastore field. |
| Methods inherited from interface org.jpox.store.mapped.DatastoreObject |
|---|
getIdentifier, getStoreManager |
| Method Detail |
|---|
java.lang.String getStoredJavaType()
void setAsPrimaryKey()
boolean isPrimaryKey()
boolean isNullable()
DatastoreMapping getDatastoreMapping()
void setDatastoreMapping(DatastoreMapping mapping)
mapping - The mapping for this datastore fieldJavaTypeMapping getMapping()
DatastoreContainerObject getDatastoreContainerObject()
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
void copyConfigurationTo(DatastoreField col)
col - the datastore fieldDatastoreField setNullable()
DatastoreField setDefaultable()
void setIdentifier(DatastoreIdentifier identifier)
identifier - The identifierMetaData getMetaData()
void setMetaData(MetaData md)
md - The MetaDataAbstractMemberMetaData getFieldMetaData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||