|
|||||||||||
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.OracleAdapter
Field Summary | |
static java.util.Map |
properties
|
static java.lang.String[][] |
PROPS
|
Constructor Summary | |
OracleAdapter()
|
Method Summary | |
boolean |
existSequence(java.sql.Connection connection,
java.lang.String seqName)
|
boolean |
existTable(java.sql.Connection connection,
java.lang.String tableName)
|
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 |
getNextValInSequence(java.lang.String seqName)
|
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. |
java.lang.String |
getSubstringName()
|
java.lang.String |
handleOrderBy(java.lang.String query)
|
void |
setVarcharSize(int s)
|
void |
setVarcharSizeInPk(int s)
|
boolean |
supportBatchPreparedStatement()
Indicates if the driver supports the batch of PreparedStatement |
void |
writeTableAlias(java.lang.String alias,
java.lang.StringBuffer sb)
Used to write table aliases, for which the syntax may vary (use of 'as', except for Oracle) |
Methods inherited from class org.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter |
fetchResultSetSize, getBigDecimal, getBoolean, getByte, getByteArray, getChar, getCharArray, getCharArray, getConcatExpression, getCreateSequence, getDate, getDate, getDouble, getFloat, getFromClause, getFromClause, getInt, getLong, getOboolean, getObyte, getOchar, getOdouble, getOfloat, getOint, getOlong, getOshort, getQuery, getSerialized, getShort, getSqlGetterName, getSqlSetterName, getSqlSetterName, getSqlTypeCode, getSqlTypeCode, getString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getValueAsSQLString, getWhereClause, setBigDecimal, setBoolean, setByte, setByteArray, setChar, setCharArray, setDate, setDouble, setFloat, setInt, setLong, setOboolean, setObyte, setOchar, setOdouble, setOfloat, setOint, setOlong, setOshort, setSerialized, setShort, setString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[][] PROPS
public static final java.util.Map properties
Constructor Detail |
public OracleAdapter()
Method Detail |
public void setVarcharSize(int s)
public void setVarcharSizeInPk(int s)
public boolean supportBatchPreparedStatement()
RdbAdapter
supportBatchPreparedStatement
in interface RdbAdapter
supportBatchPreparedStatement
in class BasicRdbAdapter
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 getSubstringName()
getSubstringName
in interface RdbAdapter
getSubstringName
in class BasicRdbAdapter
public java.lang.String getFirstLocateExpression(java.lang.String substring, java.lang.String instring)
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
public java.lang.String getIndexedLocateExpression(java.lang.String instring, java.lang.String substring, java.lang.String fromIndex)
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
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 void writeTableAlias(java.lang.String alias, java.lang.StringBuffer sb)
RdbAdapter
writeTableAlias
in interface RdbAdapter
writeTableAlias
in class BasicRdbAdapter
alias
- The table aliassb
- The StringBuffer into which to write the alias.public java.lang.String handleOrderBy(java.lang.String query)
handleOrderBy
in interface RdbAdapter
handleOrderBy
in class BasicRdbAdapter
public java.lang.String getNextValInSequence(java.lang.String seqName)
getNextValInSequence
in interface RdbAdapter
getNextValInSequence
in class BasicRdbAdapter
public boolean existTable(java.sql.Connection connection, java.lang.String tableName) throws java.sql.SQLException
existTable
in interface RdbAdapter
existTable
in class BasicRdbAdapter
java.sql.SQLException
public boolean existSequence(java.sql.Connection connection, java.lang.String seqName) throws java.sql.SQLException
existSequence
in interface RdbAdapter
existSequence
in class BasicRdbAdapter
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |