org.objectweb.jorm.mapper.rdb.adapter.api

Interface PreparedStatementAdapter

Known Subinterfaces:
RdbAdapter, RdbAdapter
Known Implementing Classes:
BasicRdbAdapter, CloudscapeAdapter, Db2Adapter, FirebirdAdapter, HsqlAdapter, MckoiAdapter, MysqlAdapter, Oracle8Adapter, OracleAdapter, PostgresAdapter, ProgressAdapter, SapdbAdapter, SqlserverAdapter, SybaseAdapter

public interface PreparedStatementAdapter

Adapter for PreparedStatement management

Author:
S.Chassande-Barrioz

Method Summary

void
setBigDecimal(PreparedStatement ps, int idx, BigDecimal o)
Assignes a value into a PreparedStatement
void
setBigInteger(PreparedStatement ps, int idx, BigInteger o)
Assignes a value into a PreparedStatement
void
setBoolean(PreparedStatement ps, int idx, boolean o)
Assignes a value into a PreparedStatement
void
setByte(PreparedStatement ps, int idx, byte o)
Assignes a value into a PreparedStatement
void
setByteArray(PreparedStatement ps, int idx, byte[] o)
Assignes a value into a PreparedStatement
void
setChar(PreparedStatement ps, int idx, char o)
Assignes a value into a PreparedStatement
void
setCharArray(PreparedStatement ps, int idx, char[] o)
Assignes a value into a PreparedStatement
void
setDate(PreparedStatement ps, int idx, Date o, String columnType)
Assignes a value into a PreparedStatement
void
setDouble(PreparedStatement ps, int idx, double o)
Assignes a value into a PreparedStatement
void
setFloat(PreparedStatement ps, int idx, float o)
Assignes a value into a PreparedStatement
void
setInt(PreparedStatement ps, int idx, int o)
Assignes a value into a PreparedStatement
void
setLong(PreparedStatement ps, int idx, long o)
Assignes a value into a PreparedStatement
void
setNull(PreparedStatement ps, int idx, int sqlType)
Assignes a null value into a PreparedStatement
void
setOboolean(PreparedStatement ps, int idx, Boolean o)
Assignes a value into a PreparedStatement
void
setObyte(PreparedStatement ps, int idx, Byte o)
Assignes a value into a PreparedStatement
void
setOchar(PreparedStatement ps, int idx, Character o)
Assignes a value into a PreparedStatement
void
setOdouble(PreparedStatement ps, int idx, Double o)
Assignes a value into a PreparedStatement
void
setOfloat(PreparedStatement ps, int idx, Float o)
Assignes a value into a PreparedStatement
void
setOint(PreparedStatement ps, int idx, Integer o)
Assignes a value into a PreparedStatement
void
setOlong(PreparedStatement ps, int idx, Long o)
Assignes a value into a PreparedStatement
void
setOshort(PreparedStatement ps, int idx, Short o)
Assignes a value into a PreparedStatement
void
setSerialized(PreparedStatement ps, int idx, Serializable o)
Assignes a value into a PreparedStatement
void
setShort(PreparedStatement ps, int idx, short o)
Assignes a value into a PreparedStatement
void
setString(PreparedStatement ps, int idx, String o)
Assignes a value into a PreparedStatement

Method Details

setBigDecimal

public void setBigDecimal(PreparedStatement ps,
                          int idx,
                          BigDecimal o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setBigInteger

public void setBigInteger(PreparedStatement ps,
                          int idx,
                          BigInteger o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setBoolean

public void setBoolean(PreparedStatement ps,
                       int idx,
                       boolean o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setByte

public void setByte(PreparedStatement ps,
                    int idx,
                    byte o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setByteArray

public void setByteArray(PreparedStatement ps,
                         int idx,
                         byte[] o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setChar

public void setChar(PreparedStatement ps,
                    int idx,
                    char o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setCharArray

public void setCharArray(PreparedStatement ps,
                         int idx,
                         char[] o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setDate

public void setDate(PreparedStatement ps,
                    int idx,
                    Date o,
                    String columnType)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setDouble

public void setDouble(PreparedStatement ps,
                      int idx,
                      double o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setFloat

public void setFloat(PreparedStatement ps,
                     int idx,
                     float o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setInt

public void setInt(PreparedStatement ps,
                   int idx,
                   int o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setLong

public void setLong(PreparedStatement ps,
                    int idx,
                    long o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setNull

public void setNull(PreparedStatement ps,
                    int idx,
                    int sqlType)
            throws SQLException
Assignes a null value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
sqlType - is the type of the column


setOboolean

public void setOboolean(PreparedStatement ps,
                        int idx,
                        Boolean o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setObyte

public void setObyte(PreparedStatement ps,
                     int idx,
                     Byte o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setOchar

public void setOchar(PreparedStatement ps,
                     int idx,
                     Character o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setOdouble

public void setOdouble(PreparedStatement ps,
                       int idx,
                       Double o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setOfloat

public void setOfloat(PreparedStatement ps,
                      int idx,
                      Float o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setOint

public void setOint(PreparedStatement ps,
                    int idx,
                    Integer o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setOlong

public void setOlong(PreparedStatement ps,
                     int idx,
                     Long o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setOshort

public void setOshort(PreparedStatement ps,
                      int idx,
                      Short o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setSerialized

public void setSerialized(PreparedStatement ps,
                          int idx,
                          Serializable o)
            throws SQLException,
                   IOException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setShort

public void setShort(PreparedStatement ps,
                     int idx,
                     short o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign


setString

public void setString(PreparedStatement ps,
                      int idx,
                      String o)
            throws SQLException
Assignes a value into a PreparedStatement

Parameters:
ps - is the PreparedStatement
idx - is the index of the the value in the PreparedStatement
o - is the value to assign