|
|||||||||||
| 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 RdbAdaptersupportBatchPreparedStatement in class BasicRdbAdapter
public java.lang.String getSqlType(PType pt,
boolean usedInPK,
int size)
throws PExceptionProtocol
RdbAdapter
getSqlType in interface RdbAdaptergetSqlType in class BasicRdbAdapterPExceptionProtocolpublic java.lang.String getValueAsSQLString(boolean value)
RdbAdapter
getValueAsSQLString in interface RdbAdaptergetValueAsSQLString in class BasicRdbAdapter
public java.lang.String getConcatExpression(java.lang.String op1,
java.lang.String op2)
getConcatExpression in interface RdbAdaptergetConcatExpression in class BasicRdbAdapter
public java.lang.String getIndexedLocateExpression(java.lang.String instring,
java.lang.String substring,
java.lang.String fromIndex)
throws PException
RdbAdapterTwo main syntaxes are found: instr() and locate()
getIndexedLocateExpression in interface RdbAdaptergetIndexedLocateExpression in class BasicRdbAdapterinstring - 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 RdbAdapterfetchResultSetSize in class BasicRdbAdapterrs - 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 RdbAdaptergetSqlGetterName in class BasicRdbAdapterPExceptionProtocol
public boolean existSequence(java.sql.Connection connection,
java.lang.String seqName)
throws java.sql.SQLException
existSequence in interface RdbAdapterexistSequence in class BasicRdbAdapterjava.sql.SQLException
public boolean existTable(java.sql.Connection connection,
java.lang.String tableName)
throws java.sql.SQLException
existTable in interface RdbAdapterexistTable in class BasicRdbAdapterjava.sql.SQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||