org.objectweb.jorm.mapper.rdb.adapter
Class MckoiAdapter
- PreparedStatementAdapter, RdbAdapter, RdbAdapter, ResultsetAdapter, SequenceAdapter, TypeAdapter, ValueAsSQLStringAdapter
public class MckoiAdapter
- P. Dechamboux
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 |
String | getFirstLocateExpression(String substring, String instring) - Returns the expression for searching the position of the first occurrence
of a substring in a string.
|
protected String | getINCREMENTkeyWord()
|
String | getIndexedLocateExpression(String instring, String substring, String fromIndex) - Returns the expression for searching the position of the first occurrence
of a substring in a string starting from a given index.
|
protected String | getSTARTkeyWord()
|
String | getSqlType(int typeCode, boolean usedInPK, int size, int scale) - This method returns the SQL type linked to the java type
|
escapeFunctionClose , escapeFunctionOpen , existRelation , existSequence , existTable , existView , fetchResultSetSize , getBigDecimal , getBigInteger , getBoolean , getByte , getByteArray , getCACHEkeyWord , getChar , getCharArray , getCharArray , getCharArray , getColumnAliasExpr , getConcatExpression , getCreateSequence , getCreateSequence , getDate , getDate , getDouble , getFirstLocateExpression , getFloat , getFromClause , getFromClause , getINCREMENTkeyWord , getIndexedLocateExpression , getInt , getLengthOperator , getLong , getName , getNextValInSequence , getOboolean , getObyte , getOchar , getOdouble , getOfloat , getOint , getOlong , getOshort , getQuery , getSTARTkeyWord , getSerialized , getShort , getSqlType , getSqlTypeCode , getSqlTypeCode , getString , getSubqueryAlias , 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 , sqldate2date , supportBatchPreparedStatement , time2date , timestamp2date , writeColumnAlias , writeTableAlias |
MckoiAdapter
public MckoiAdapter()
getFirstLocateExpression
public String getFirstLocateExpression(String substring,
String instring)
throws RdbAdapterException
Returns the expression for searching the position of the first occurrence
of a substring in a string.
Three main syntaxes are found: position(substr in str), locate(substr, srt)
and instr(str, substr).
- getFirstLocateExpression in interface RdbAdapter
- getFirstLocateExpression in interface BasicRdbAdapter
substring
- The substring searchedinstring
- The string in which to search the substring
- The corresponding relational expression.
getINCREMENTkeyWord
protected String getINCREMENTkeyWord()
- getINCREMENTkeyWord in interface BasicRdbAdapter
getIndexedLocateExpression
public String getIndexedLocateExpression(String instring,
String substring,
String fromIndex)
throws RdbAdapterException
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()
- getIndexedLocateExpression in interface RdbAdapter
- getIndexedLocateExpression in interface BasicRdbAdapter
substring
- The substring searchedfromIndex
- The index from which to start searching
- The corresponding relational expression.
getSTARTkeyWord
protected String getSTARTkeyWord()
- getSTARTkeyWord in interface BasicRdbAdapter
getSqlType
public String getSqlType(int typeCode,
boolean usedInPK,
int size,
int scale)
throws RdbAdapterException
This method returns the SQL type linked to the java type
- getSqlType in interface TypeAdapter
- getSqlType in interface 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.