|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatastoreField
Representation of a Java field (component) 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.
| Method Summary | |
|---|---|
String |
applySelectFunction(String replacementValue)
Wraps the column name with a FUNCTION. |
void |
copyConfigurationTo(DatastoreField col)
Copy the configuration of this field to another field |
ColumnMetaData |
getColumnMetaData()
Access the metadata definition defining this DatastoreField. |
DatastoreContainerObject |
getDatastoreContainerObject()
Accessor for the DatastoreContainerObject container of this field |
DatastoreMapping |
getDatastoreMapping()
Accessor for the datastore mapping that this datastore field relates to. |
Object |
getDefaultValue()
Accessor for the default Value |
DatastoreIdentifier |
getIdentifier()
Accessor for the identifier for this object. |
JavaTypeMapping |
getJavaTypeMapping()
Accessor for the JavaTypeMapping for the field/property that owns this column. |
AbstractMemberMetaData |
getMemberMetaData()
Accessor for the MetaData of the field/property that this is the datastore field for. |
String |
getStoredJavaType()
Accessor for the type of data stored in this field. |
MappedStoreManager |
getStoreManager()
Accessor for the StoreManager for this table. |
boolean |
isDefaultable()
Accessor for whether the column is defaultable. |
boolean |
isIdentity()
Accessor for the whether this column is an identity column. |
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. |
boolean |
isUnique()
Accessor for whether the column is unique. |
void |
setAsPrimaryKey()
Mutator to make the field the primary key. |
void |
setColumnMetaData(ColumnMetaData md)
Method to set the MetaData for this datastore field. |
void |
setDatastoreMapping(DatastoreMapping mapping)
Method to associate this datastore field with its mapping. |
DatastoreField |
setDefaultable()
Mutator for the defaultability of the datastore field. |
void |
setDefaultValue(Object object)
Mutator for the default Value |
void |
setIdentifier(DatastoreIdentifier identifier)
Mutator for the identifier of the column. |
DatastoreField |
setIdentity(boolean identity)
Mutator for whether we set this column as an identity column. |
DatastoreField |
setNullable()
Mutator for the nullability of the datastore field. |
DatastoreField |
setUnique()
Mutator for the uniqueness of the column. |
| Method Detail |
|---|
MappedStoreManager getStoreManager()
String getStoredJavaType()
void setIdentifier(DatastoreIdentifier identifier)
identifier - The identifierDatastoreIdentifier getIdentifier()
void setAsPrimaryKey()
boolean isPrimaryKey()
DatastoreField setNullable()
boolean isNullable()
DatastoreField setDefaultable()
boolean isDefaultable()
DatastoreField setUnique()
boolean isUnique()
DatastoreField setIdentity(boolean identity)
identity - True if column is identityboolean isIdentity()
void setDefaultValue(Object object)
object - default valueObject getDefaultValue()
void setDatastoreMapping(DatastoreMapping mapping)
mapping - The mapping for this datastore fieldDatastoreMapping getDatastoreMapping()
void setColumnMetaData(ColumnMetaData md)
md - The MetaDataColumnMetaData getColumnMetaData()
JavaTypeMapping getJavaTypeMapping()
DatastoreContainerObject getDatastoreContainerObject()
String applySelectFunction(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 fieldAbstractMemberMetaData getMemberMetaData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||