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.OracleAdapter
public class OracleAdapter
extends BasicRdbAdapter
Field Summary | |
private static String | |
static String[][] | |
private static String | |
private int | |
private int | |
static Map | |
private int | |
private int |
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 | |
protected boolean |
|
boolean |
|
String |
|
private static int |
|
String |
|
String |
|
String |
|
String |
|
String |
|
protected void |
|
void |
|
void |
|
boolean | |
void |
|
void |
|
private static final String ORACLEFIRSTLOCATE
public static final String[][] PROPS
private static final String PROP_BASE
private int defaultBytearraySize
private int defaultChararraySize
public static final Map properties
private int varcharSize
private int varcharSizeInPk
protected boolean existRelation(Connection connection, String relName, String[] relationTypes) throws SQLException
- Overrides:
- existRelation in interface BasicRdbAdapter
public boolean existSequence(Connection connection, String seqName) throws SQLException
- Specified by:
- existSequence in interface SequenceAdapter
- Overrides:
- existSequence in interface BasicRdbAdapter
public String getColumnAliasExpr(String aliasName)
- Specified by:
- getColumnAliasExpr in interface RdbAdapter
- Overrides:
- getColumnAliasExpr in interface BasicRdbAdapter
private static final int getDefaultSize(int idx)
public String getFirstLocateExpression(String substring, String instring)
- Specified by:
- getFirstLocateExpression in interface RdbAdapter
- Overrides:
- getFirstLocateExpression in interface BasicRdbAdapter
public String getIndexedLocateExpression(String instring, String substring, String fromIndex)
- Specified by:
- getIndexedLocateExpression in interface RdbAdapter
- Overrides:
- getIndexedLocateExpression in interface BasicRdbAdapter
public String getNextValInSequence(String seqName)
- Specified by:
- getNextValInSequence in interface SequenceAdapter
- Overrides:
- getNextValInSequence in interface BasicRdbAdapter
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 String handleOrderBy(String query)
- Specified by:
- handleOrderBy in interface RdbAdapter
- Overrides:
- handleOrderBy in interface BasicRdbAdapter
protected void modifyWhereClauseWithRange(StringBuffer sb, String whereclause, int rangeStart, int rangeSize)
- Overrides:
- modifyWhereClauseWithRange in interface BasicRdbAdapter
public void setVarcharSize(int s)
public void setVarcharSizeInPk(int s)
public boolean supportBatchPreparedStatement()
- Specified by:
- supportBatchPreparedStatement in interface RdbAdapter
- Overrides:
- supportBatchPreparedStatement in interface BasicRdbAdapter
public void writeColumnAlias(String alias, StringBuffer sb)
- Specified by:
- writeColumnAlias in interface RdbAdapter
- Overrides:
- writeColumnAlias in interface BasicRdbAdapter
public void writeTableAlias(String alias, StringBuffer sb)
- Specified by:
- writeTableAlias in interface RdbAdapter
- Overrides:
- writeTableAlias in interface BasicRdbAdapter