|
|||||||||||
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.PostgresAdapter
Constructor Summary | |
PostgresAdapter()
|
Method Summary | |
boolean |
existSequence(java.sql.Connection connection,
java.lang.String seqName)
|
boolean |
existTable(java.sql.Connection connection,
java.lang.String tableName)
|
int |
fetchResultSetSize(java.sql.ResultSet rs)
This calculates the size of a result set. |
java.lang.String |
getConcatExpression(java.lang.String op1,
java.lang.String op2)
|
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)
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 |
getValueAsSQLString(boolean value)
This method returns a String value that represents a boolean value. |
boolean |
supportBatchPreparedStatement()
Indicates if the driver supports the batch of PreparedStatement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PostgresAdapter()
Method Detail |
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 getValueAsSQLString(boolean value)
RdbAdapter
getValueAsSQLString
in interface RdbAdapter
getValueAsSQLString
in class BasicRdbAdapter
public java.lang.String getConcatExpression(java.lang.String op1, java.lang.String op2)
getConcatExpression
in interface RdbAdapter
getConcatExpression
in class BasicRdbAdapter
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
public int fetchResultSetSize(java.sql.ResultSet rs) throws java.sql.SQLException
fetchResultSetSize
in interface RdbAdapter
fetchResultSetSize
in class BasicRdbAdapter
rs
- the result set which the size must be returned
java.sql.SQLException
public java.lang.String getSqlGetterName(PType pt, java.lang.String resultSet, int idx) throws PExceptionProtocol
RdbAdapter
getSqlGetterName
in interface RdbAdapter
getSqlGetterName
in class BasicRdbAdapter
PExceptionProtocol
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
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |