org.jpox.store.mapping
Interface DatastoreMapping

All Known Implementing Classes:
AbstractLargeBinaryRDBMSMapping, BigIntRDBMSMapping, BitRDBMSMapping, BlobRDBMSMapping, BooleanRDBMSMapping, CharRDBMSMapping, ClobRDBMSMapping, ColumnMapping, DatalinkRDBMSMapping, DateRDBMSMapping, DecimalRDBMSMapping, DoubleRDBMSMapping, FloatRDBMSMapping, IntegerRDBMSMapping, LongVarBinaryRDBMSMapping, LongVarcharRDBMSMapping, NumericRDBMSMapping, OracleBlobRDBMSMapping, OracleClobRDBMSMapping, RDBMSMapping, RealRDBMSMapping, SmallIntRDBMSMapping, TimeRDBMSMapping, TimestampRDBMSMapping, TinyIntRDBMSMapping, VarBinaryRDBMSMapping, VarCharRDBMSMapping

public interface DatastoreMapping

Representation of the mapping of a datastore type.

Version:
$Revision: 1.4 $

Method Summary
 boolean getBoolean(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 byte getByte(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 char getChar(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 DatastoreField getDatastoreField()
          The datastore field mapped
 double getDouble(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 float getFloat(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 int getInt(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 JavaTypeMapping getJavaTypeMapping()
          The mapping for the java type
 long getLong(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 java.lang.Object getObject(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 short getShort(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 java.lang.String getString(java.lang.Object resultSet, int exprIndex)
          Obtains a value from resultSet at position specified by exprIndex.
 boolean isNullable()
          Whether the field mapped is nullable
 void setBoolean(java.lang.Object preparedStatement, int paramIndex, boolean value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setByte(java.lang.Object preparedStatement, int paramIndex, byte value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setChar(java.lang.Object preparedStatement, int paramIndex, char value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setDouble(java.lang.Object preparedStatement, int paramIndex, double value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setFloat(java.lang.Object preparedStatement, int paramIndex, float value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setInt(java.lang.Object preparedStatement, int paramIndex, int value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setLong(java.lang.Object preparedStatement, int paramIndex, long value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setObject(java.lang.Object preparedStatement, int paramIndex, java.lang.Object value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setShort(java.lang.Object preparedStatement, int paramIndex, short value)
          Sets a value into preparedStatement at position specified by paramIndex.
 void setString(java.lang.Object preparedStatement, int paramIndex, java.lang.String value)
          Sets a value into preparedStatement at position specified by paramIndex.
 

Method Detail

isNullable

boolean isNullable()
Whether the field mapped is nullable

Returns:
true if is nullable

getDatastoreField

DatastoreField getDatastoreField()
The datastore field mapped

Returns:
the DatastoreField

getJavaTypeMapping

JavaTypeMapping getJavaTypeMapping()
The mapping for the java type

Returns:
the JavaTypeMapping

setBoolean

void setBoolean(java.lang.Object preparedStatement,
                int paramIndex,
                boolean value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

setChar

void setChar(java.lang.Object preparedStatement,
             int paramIndex,
             char value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

setByte

void setByte(java.lang.Object preparedStatement,
             int paramIndex,
             byte value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

setShort

void setShort(java.lang.Object preparedStatement,
              int paramIndex,
              short value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

setInt

void setInt(java.lang.Object preparedStatement,
            int paramIndex,
            int value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

setLong

void setLong(java.lang.Object preparedStatement,
             int paramIndex,
             long value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

setFloat

void setFloat(java.lang.Object preparedStatement,
              int paramIndex,
              float value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

setDouble

void setDouble(java.lang.Object preparedStatement,
               int paramIndex,
               double value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

setString

void setString(java.lang.Object preparedStatement,
               int paramIndex,
               java.lang.String value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

setObject

void setObject(java.lang.Object preparedStatement,
               int paramIndex,
               java.lang.Object value)
Sets a value into preparedStatement at position specified by paramIndex.

Parameters:
preparedStatement - a datastore object that executes statements in the database
paramIndex - the position of the value in the statement
value - the value

getBoolean

boolean getBoolean(java.lang.Object resultSet,
                   int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value

getChar

char getChar(java.lang.Object resultSet,
             int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value

getByte

byte getByte(java.lang.Object resultSet,
             int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value

getShort

short getShort(java.lang.Object resultSet,
               int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value

getInt

int getInt(java.lang.Object resultSet,
           int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value

getLong

long getLong(java.lang.Object resultSet,
             int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value

getFloat

float getFloat(java.lang.Object resultSet,
               int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value

getDouble

double getDouble(java.lang.Object resultSet,
                 int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value

getString

java.lang.String getString(java.lang.Object resultSet,
                           int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value

getObject

java.lang.Object getObject(java.lang.Object resultSet,
                           int exprIndex)
Obtains a value from resultSet at position specified by exprIndex.

Parameters:
resultSet - an object returned from the datastore with values
exprIndex - the position of the value in the result
Returns:
the value


Copyright © -2010 . All Rights Reserved.