|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Column
Interface for a column in an RDBMS datastore.
| Field Summary | |
|---|---|
static int |
WRAPPER_FUNCTION_INSERT
wrapper function insert |
static int |
WRAPPER_FUNCTION_SELECT
wrapper function select |
static int |
WRAPPER_FUNCTION_UPDATE
wrapper function update |
| Method Summary | |
|---|---|
void |
checkDecimal()
Checks the column definition as a decimal. |
void |
checkInteger()
Checks the column definition as an integer. |
void |
checkPrimitive()
Checks the column definition as a primitive. |
void |
checkString()
Checks the column definition as a string. |
String |
getConstraints()
|
int |
getJdbcType()
Accessor for the JDBC type being used for this Column |
String |
getSQLDefinition()
Accessor for the SQL definition of this column. |
SQLTypeInfo |
getTypeInfo()
Accessor for the type info for this column. |
String |
getWrapperFunction(int wrapperMode)
Gets the wrapper for parameters. |
void |
initializeColumnInfoFromDatastore(RDBMSColumnInfo ci)
Initialize the default column value and auto increment |
boolean |
isUnlimitedLength()
Convenience method to check if the length is required to be unlimited (BLOB/CLOB). |
Column |
setConstraints(String constraints)
Mutator for the constraints of the column. |
Column |
setTypeInfo(SQLTypeInfo typeInfo)
Mutator for the type information of the column. |
void |
setWrapperFunction(String wrapperFunction,
int wrapperMode)
Sets a function to wrap the column. |
void |
validate(RDBMSColumnInfo ci)
Method to validate the contents of the column. |
| Methods inherited from interface org.datanucleus.store.mapped.DatastoreField |
|---|
applySelectFunction, copyConfigurationTo, getColumnMetaData, getDatastoreContainerObject, getDatastoreMapping, getDefaultValue, getIdentifier, getJavaTypeMapping, getMemberMetaData, getStoredJavaType, getStoreManager, isDefaultable, isIdentity, isNullable, isPrimaryKey, isUnique, setAsPrimaryKey, setColumnMetaData, setDatastoreMapping, setDefaultable, setDefaultValue, setIdentifier, setIdentity, setNullable, setUnique |
| Field Detail |
|---|
static final int WRAPPER_FUNCTION_SELECT
static final int WRAPPER_FUNCTION_INSERT
static final int WRAPPER_FUNCTION_UPDATE
| Method Detail |
|---|
boolean isUnlimitedLength()
Column setTypeInfo(SQLTypeInfo typeInfo)
typeInfo - The type info
SQLTypeInfo getTypeInfo()
int getJdbcType()
String getSQLDefinition()
void initializeColumnInfoFromDatastore(RDBMSColumnInfo ci)
ci - The column informationvoid validate(RDBMSColumnInfo ci)
ci - The column information taken from the databaseColumn setConstraints(String constraints)
constraints - The constraints
String getConstraints()
void checkPrimitive()
throws org.datanucleus.store.mapped.exceptions.DatastoreFieldDefinitionException
org.datanucleus.store.mapped.exceptions.DatastoreFieldDefinitionException
void checkInteger()
throws org.datanucleus.store.mapped.exceptions.DatastoreFieldDefinitionException
org.datanucleus.store.mapped.exceptions.DatastoreFieldDefinitionException
void checkDecimal()
throws org.datanucleus.store.mapped.exceptions.DatastoreFieldDefinitionException
org.datanucleus.store.mapped.exceptions.DatastoreFieldDefinitionException
void checkString()
throws org.datanucleus.store.mapped.exceptions.DatastoreFieldDefinitionException
org.datanucleus.store.mapped.exceptions.DatastoreFieldDefinitionException
void setWrapperFunction(String wrapperFunction,
int wrapperMode)
SQRT(?) generates: SQRT(COLUMN)
wrapperFunction - The wrapperFunction to set.wrapperMode - whether select, insert or updateString getWrapperFunction(int wrapperMode)
wrapperMode - whether select, insert or update
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||