org.objectweb.jorm.mapper.rdb.adapter
Class MckoiAdapter
java.lang.Object
org.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter
org.objectweb.jorm.mapper.rdb.adapter.MckoiAdapter
- All Implemented Interfaces:
- PreparedStatementAdapter, RdbAdapter, ResultsetAdapter, SequenceAdapter, TypeAdapter, ValueAsSQLStringAdapter
- public class MckoiAdapter
- extends BasicRdbAdapter
- Author:
- P. Dechamboux
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 |
TYPE_NAMES, 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 |
Method Summary |
java.lang.String |
getFirstLocateExpression(java.lang.String substring,
java.lang.String instring)
Returns the expression for searching the position of the first occurrence
of a substring in a string.
|
protected java.lang.String |
getINCREMENTkeyWord()
|
java.lang.String |
getIndexedLocateExpression(java.lang.String instring,
java.lang.String substring,
java.lang.String fromIndex)
Returns the expression for searching the position of the first occurrence
of a substring in a string starting from a given index.
|
java.lang.String |
getSqlType(int typeCode,
boolean usedInPK,
int size,
int scale)
This method returns the SQL type linked to the java type |
protected java.lang.String |
getSTARTkeyWord()
|
Methods inherited from class org.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter |
existRelation, existSequence, existTable, existView, fetchResultSetSize, getBigDecimal, getBigInteger, getBoolean, getByte, getByteArray, getCACHEkeyWord, getChar, getCharArray, getCharArray, getColumnAliasExpr, getConcatExpression, getCreateSequence, getCreateSequence, getDate, getDate, getDouble, getFloat, getFromClause, getFromClause, getInt, getLengthOperator, getLong, getName, getNextValInSequence, getOboolean, getObyte, getOchar, getOdouble, getOfloat, getOint, getOlong, getOshort, getQuery, getSerialized, getShort, getSqlTypeCode, getSqlTypeCode, getString, getSubqueryAlias, getSubstringName, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getWhereClause, handleOrderBy, modifySelectClauseWithRange, modifyWhereClauseWithRange, setBigDecimal, setBigInteger, setBoolean, setByte, setByteArray, setChar, setCharArray, setDate, setDouble, setFloat, setInt, setLong, setNull, setOboolean, setObyte, setOchar, setOdouble, setOfloat, setOint, setOlong, setOshort, setSerialized, setShort, setString, supportBatchPreparedStatement, writeColumnAlias, writeTableAlias |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MckoiAdapter
public MckoiAdapter()
getSqlType
public java.lang.String getSqlType(int typeCode,
boolean usedInPK,
int size,
int scale)
throws RdbAdapterException
- Description copied from interface:
TypeAdapter
- This method returns the SQL type linked to the java type
- Specified by:
getSqlType
in interface TypeAdapter
- Overrides:
getSqlType
in class BasicRdbAdapter
- Throws:
RdbAdapterException
getFirstLocateExpression
public java.lang.String getFirstLocateExpression(java.lang.String substring,
java.lang.String instring)
throws RdbAdapterException
- Description copied from interface:
RdbAdapter
- Returns the expression for searching the position of the first occurrence
of a substring in a string.
Two main syntaxes are found: position(substr in str) and
instr(str, substr).
- Specified by:
getFirstLocateExpression
in interface RdbAdapter
- Overrides:
getFirstLocateExpression
in class BasicRdbAdapter
- Throws:
RdbAdapterException
getIndexedLocateExpression
public java.lang.String getIndexedLocateExpression(java.lang.String instring,
java.lang.String substring,
java.lang.String fromIndex)
throws RdbAdapterException
- Description copied from interface:
RdbAdapter
- Returns the expression for searching the position of the first occurrence
of a substring in a string starting from a given index.
Two main syntaxes are found: instr() and locate()
- Specified by:
getIndexedLocateExpression
in interface RdbAdapter
- Overrides:
getIndexedLocateExpression
in class BasicRdbAdapter
- Throws:
RdbAdapterException
getSTARTkeyWord
protected java.lang.String getSTARTkeyWord()
- Overrides:
getSTARTkeyWord
in class BasicRdbAdapter
getINCREMENTkeyWord
protected java.lang.String getINCREMENTkeyWord()
- Overrides:
getINCREMENTkeyWord
in class BasicRdbAdapter