|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter
org.objectweb.jorm.mapper.rdb.adapter.FirebirdAdapter
public class FirebirdAdapter
This class is a sql adapter for the Firebird relational database.
Field Summary |
---|
Fields inherited from class org.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter |
---|
logger, name |
Fields inherited from interface org.objectweb.jorm.mapper.rdb.adapter.api.RdbAdapter |
---|
NOSIZE, RANGEATEND, RANGEATSTART, RANGEUNSUPPORTED |
Fields inherited from interface org.objectweb.jorm.mapper.rdb.adapter.api.TypeAdapter |
---|
TYPE_NAMES, TYPECODE_ARRAY, TYPECODE_BIGDECIMAL, TYPECODE_BIGINTEGER, TYPECODE_BOOLEAN, TYPECODE_BYTE, TYPECODE_BYTEARRAY, TYPECODE_CHAR, TYPECODE_CHARARRAY, TYPECODE_DATE, TYPECODE_DOUBLE, TYPECODE_FLOAT, TYPECODE_INT, TYPECODE_LONG, TYPECODE_OBJBOOLEAN, TYPECODE_OBJBYTE, TYPECODE_OBJCHAR, TYPECODE_OBJDOUBLE, TYPECODE_OBJFLOAT, TYPECODE_OBJINT, TYPECODE_OBJLONG, TYPECODE_OBJSHORT, TYPECODE_SERIALIZED, TYPECODE_SHORT, TYPECODE_STRING |
Constructor Summary | |
---|---|
FirebirdAdapter()
|
Method Summary | |
---|---|
boolean |
getBoolean(java.sql.ResultSet rs,
int idx,
boolean nullValue)
Get a boolean value from a ResultSet. |
java.lang.Boolean |
getOboolean(java.sql.ResultSet rs,
int idx,
java.lang.Boolean nullValue)
Get a Boolean value from a ResultSet. |
java.lang.String |
getSqlType(int typeCode,
boolean usedInPK,
int size,
int scale)
This method returns the SQL type linked to the java type |
void |
setBoolean(java.sql.PreparedStatement ps,
int idx,
boolean o)
Assignes a boolean value into a PreparedStatement |
void |
setOboolean(java.sql.PreparedStatement ps,
int idx,
java.lang.Boolean o)
Assignes a Boolean value into a PreparedStatement |
void |
setOchar(java.sql.PreparedStatement ps,
int idx,
java.lang.Character o)
Assignes a Character value into a PreparedStatement |
boolean |
supportBatchPreparedStatement()
Indicates if the driver supports the batch of PreparedStatement |
void |
writeTableAlias(java.lang.String alias,
java.lang.StringBuffer sb)
Append a table alias to an SQL expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FirebirdAdapter()
Method Detail |
---|
public java.lang.String getSqlType(int typeCode, boolean usedInPK, int size, int scale) throws RdbAdapterException
TypeAdapter
getSqlType
in interface TypeAdapter
getSqlType
in class BasicRdbAdapter
typeCode
- is the type code of the java typeusedInPK
- indicates if the type has to be used into a Primary keysize
- can indicates the expected size of the type. If it equals to
NO_SIZE that means no size is expected. This parameter can be used for
float, BigXXX numbers, String,...scale
- can indicates the expected scale of the type. If it equals to
NO_SIZE that means no scale is expected.
RdbAdapterException
public boolean getBoolean(java.sql.ResultSet rs, int idx, boolean nullValue) throws java.sql.SQLException
ResultsetAdapter
getBoolean
in interface ResultsetAdapter
getBoolean
in class BasicRdbAdapter
rs
- is the result where to get the valueidx
- is the index of the value in the resultsetnullValue
- represents the nullvalue to return if the column is null
in the resultset
java.sql.SQLException
public java.lang.Boolean getOboolean(java.sql.ResultSet rs, int idx, java.lang.Boolean nullValue) throws java.sql.SQLException
ResultsetAdapter
getOboolean
in interface ResultsetAdapter
getOboolean
in class BasicRdbAdapter
rs
- is the result where to get the valueidx
- is the index of the value in the resultsetnullValue
- represents the nullvalue to return if the column is null
in the resultset
java.sql.SQLException
public void setBoolean(java.sql.PreparedStatement ps, int idx, boolean o) throws java.sql.SQLException
PreparedStatementAdapter
setBoolean
in interface PreparedStatementAdapter
setBoolean
in class BasicRdbAdapter
ps
- is the PreparedStatementidx
- is the index of the the value in the PreparedStatemento
- is the value to assign
java.sql.SQLException
public void setOboolean(java.sql.PreparedStatement ps, int idx, java.lang.Boolean o) throws java.sql.SQLException
PreparedStatementAdapter
setOboolean
in interface PreparedStatementAdapter
setOboolean
in class BasicRdbAdapter
ps
- is the PreparedStatementidx
- is the index of the the value in the PreparedStatemento
- is the value to assign
java.sql.SQLException
public void setOchar(java.sql.PreparedStatement ps, int idx, java.lang.Character o) throws java.sql.SQLException
PreparedStatementAdapter
setOchar
in interface PreparedStatementAdapter
setOchar
in class BasicRdbAdapter
ps
- is the PreparedStatementidx
- is the index of the the value in the PreparedStatemento
- is the value to assign
java.sql.SQLException
public void writeTableAlias(java.lang.String alias, java.lang.StringBuffer sb)
RdbAdapter
writeTableAlias
in interface RdbAdapter
writeTableAlias
in class BasicRdbAdapter
alias
- The table aliassb
- The StringBuffer into which to write the alias.public boolean supportBatchPreparedStatement()
RdbAdapter
supportBatchPreparedStatement
in interface RdbAdapter
supportBatchPreparedStatement
in class BasicRdbAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |