|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
public abstract class AbstractDatastoreMapping
Abstract base for datastore mappings.
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER
|
protected JavaTypeMapping |
mapping
Mapping of the Java type. |
| Constructor Summary | |
|---|---|
AbstractDatastoreMapping(JavaTypeMapping mapping)
|
|
| Method Summary | |
|---|---|
protected String |
failureMessage(String method)
Utility to output any error message. |
boolean |
getBoolean(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
byte |
getByte(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
char |
getChar(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
double |
getDouble(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
float |
getFloat(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
int |
getInt(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
JavaTypeMapping |
getJavaTypeMapping()
Accessor for the java type mapping |
long |
getLong(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
Object |
getObject(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
short |
getShort(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
String |
getString(Object resultSet,
int exprIndex)
Obtains a value from resultSet
at position specified by exprIndex. |
boolean |
isBitBased()
Accessor for whether the mapping is bit-based. |
boolean |
isBooleanBased()
Accessor for whether the mapping is boolean-based. |
boolean |
isDecimalBased()
Accessor for whether the mapping is decimal-based. |
boolean |
isIntegerBased()
Accessor for whether the mapping is integer-based. |
boolean |
isStringBased()
Accessor for whether the mapping is string-based. |
void |
setBoolean(Object preparedStatement,
int exprIndex,
boolean value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setByte(Object preparedStatement,
int exprIndex,
byte value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setChar(Object preparedStatement,
int exprIndex,
char value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setDouble(Object preparedStatement,
int exprIndex,
double value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setFloat(Object preparedStatement,
int exprIndex,
float value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setInt(Object preparedStatement,
int exprIndex,
int value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setLong(Object preparedStatement,
int exprIndex,
long value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setObject(Object preparedStatement,
int exprIndex,
Object value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setShort(Object preparedStatement,
int exprIndex,
short value)
Sets a value into preparedStatement
at position specified by paramIndex. |
void |
setString(Object preparedStatement,
int exprIndex,
String value)
Sets a value into preparedStatement
at position specified by paramIndex. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.datanucleus.store.mapped.mapping.DatastoreMapping |
|---|
getDatastoreField, isNullable |
| Field Detail |
|---|
protected static final Localiser LOCALISER
protected final JavaTypeMapping mapping
| Constructor Detail |
|---|
public AbstractDatastoreMapping(JavaTypeMapping mapping)
| Method Detail |
|---|
public JavaTypeMapping getJavaTypeMapping()
getJavaTypeMapping in interface DatastoreMapping
public void setBoolean(Object preparedStatement,
int exprIndex,
boolean value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setBoolean in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public boolean getBoolean(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getBoolean in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public void setChar(Object preparedStatement,
int exprIndex,
char value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setChar in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public char getChar(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getChar in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public void setByte(Object preparedStatement,
int exprIndex,
byte value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setByte in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public byte getByte(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getByte in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public void setShort(Object preparedStatement,
int exprIndex,
short value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setShort in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public short getShort(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getShort in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public void setInt(Object preparedStatement,
int exprIndex,
int value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setInt in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public int getInt(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getInt in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public void setLong(Object preparedStatement,
int exprIndex,
long value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setLong in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public long getLong(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getLong in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public void setFloat(Object preparedStatement,
int exprIndex,
float value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setFloat in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public float getFloat(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getFloat in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public void setDouble(Object preparedStatement,
int exprIndex,
double value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setDouble in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public double getDouble(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getDouble in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public void setString(Object preparedStatement,
int exprIndex,
String value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setString in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public String getString(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getString in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public void setObject(Object preparedStatement,
int exprIndex,
Object value)
DatastoreMappingvalue into preparedStatement
at position specified by paramIndex.
setObject in interface DatastoreMappingpreparedStatement - a datastore object that executes statements in the databaseexprIndex - the position of the value in the statementvalue - the value
public Object getObject(Object resultSet,
int exprIndex)
DatastoreMappingresultSet
at position specified by exprIndex.
getObject in interface DatastoreMappingresultSet - an object returned from the datastore with valuesexprIndex - the position of the value in the result
public boolean isDecimalBased()
isDecimalBased in interface DatastoreMappingpublic boolean isIntegerBased()
isIntegerBased in interface DatastoreMappingpublic boolean isStringBased()
isStringBased in interface DatastoreMappingpublic boolean isBitBased()
isBitBased in interface DatastoreMappingpublic boolean isBooleanBased()
isBooleanBased in interface DatastoreMappingprotected String failureMessage(String method)
method - The method that failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||