org.jpox.store.mapping
Interface DatastoreMapping

All Known Implementing Classes:
RDBMSMapping

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

public boolean isNullable()
Whether the field mapped is nullable

Returns:
true if is nullable

getDatastoreField

public DatastoreField getDatastoreField()
The datastore field mapped

Returns:
the DatastoreField

getJavaTypeMapping

public JavaTypeMapping getJavaTypeMapping()
The mapping for the java type

Returns:
the JavaTypeMapping

setBoolean

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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 © -2007 . All Rights Reserved.