Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter
org.objectweb.jorm.mapper.rdb.adapter.FirebirdAdapter
public class FirebirdAdapter
extends BasicRdbAdapter
Field Summary |
Fields inherited from class org.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter | |
CONCAT , INDEXEDLOCATE , accountForNanos , name |
Fields inherited from interface org.objectweb.jorm.mapper.rdb.adapter.api.RdbAdapter | |
NOSIZE |
Fields inherited from interface org.objectweb.jorm.mapper.rdb.adapter.api.TypeAdapter | |
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 , TYPE_NAMES |
Constructor Summary | |
Method Summary | |
boolean |
|
Boolean |
|
String |
|
void |
|
void |
|
void |
|
void |
|
public boolean getBoolean(ResultSet rs, int idx, boolean nullValue) throws SQLException
Get a boolean value from a ResultSet.
- Specified by:
- getBoolean in interface ResultsetAdapter
- Overrides:
- getBoolean in interface BasicRdbAdapter
- Parameters:
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
public Boolean getOboolean(ResultSet rs, int idx, Boolean nullValue) throws SQLException
Get a Boolean value from a ResultSet.
- Specified by:
- getOboolean in interface ResultsetAdapter
- Overrides:
- getOboolean in interface BasicRdbAdapter
- Parameters:
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
public String getSqlType(int typeCode, boolean usedInPK, int size, int scale) throws RdbAdapterException
This method returns the SQL type linked to the java type
- Specified by:
- getSqlType in interface TypeAdapter
- Overrides:
- getSqlType in interface BasicRdbAdapter
- Parameters:
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.
public void setBoolean(PreparedStatement ps, int idx, boolean o) throws SQLException
- Specified by:
- setBoolean in interface PreparedStatementAdapter
- Overrides:
- setBoolean in interface BasicRdbAdapter
public void setOboolean(PreparedStatement ps, int idx, Boolean o) throws SQLException
- Specified by:
- setOboolean in interface PreparedStatementAdapter
- Overrides:
- setOboolean in interface BasicRdbAdapter
public void setOchar(PreparedStatement ps, int idx, Character o) throws SQLException
- Specified by:
- setOchar in interface PreparedStatementAdapter
- Overrides:
- setOchar in interface BasicRdbAdapter
public void writeTableAlias(String alias, StringBuffer sb)
- Specified by:
- writeTableAlias in interface RdbAdapter
- Overrides:
- writeTableAlias in interface BasicRdbAdapter