|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter | +--org.objectweb.jorm.mapper.rdb.adapter.MckoiAdapter
Constructor Summary | |
MckoiAdapter()
|
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. |
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 |
getSqlGetterName(PType pt,
java.lang.String resultSet,
int idx,
java.lang.String sql)
This method returns the sql getter method associated to the PType specified in parameter. |
java.lang.String |
getSqlType(PType pt,
boolean usedInPK,
int size)
This method returns the SQL type linked to the PType specified in parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MckoiAdapter()
Method Detail |
public java.lang.String getSqlType(PType pt, boolean usedInPK, int size) throws PExceptionProtocol
RdbAdapter
getSqlType
in interface RdbAdapter
getSqlType
in class BasicRdbAdapter
PExceptionProtocol
public java.lang.String getSqlGetterName(PType pt, java.lang.String resultSet, int idx, java.lang.String sql) throws PExceptionProtocol
RdbAdapter
getSqlGetterName
in interface RdbAdapter
getSqlGetterName
in class BasicRdbAdapter
PExceptionProtocol
public java.lang.String getFirstLocateExpression(java.lang.String substring, java.lang.String instring) throws PException
RdbAdapter
Two main syntaxes are found: position(substr in str) and instr(str, substr).
getFirstLocateExpression
in interface RdbAdapter
getFirstLocateExpression
in class BasicRdbAdapter
substring
- The substring searchedinstring
- The string in which to search the substring
PException
public java.lang.String getIndexedLocateExpression(java.lang.String instring, java.lang.String substring, java.lang.String fromIndex) throws PException
RdbAdapter
Two main syntaxes are found: instr() and locate()
getIndexedLocateExpression
in interface RdbAdapter
getIndexedLocateExpression
in class BasicRdbAdapter
instring
- The string in which to search the substringsubstring
- The substring searchedfromIndex
- The index from which to start searching
PException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |