|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter
org.objectweb.jorm.mapper.rdb.adapter.PostgresAdapter
Field Summary | |
private static java.lang.String |
POSTGRESCONCAT
|
Fields inherited from class org.objectweb.jorm.mapper.rdb.adapter.BasicRdbAdapter |
name |
Fields inherited from interface org.objectweb.jorm.mapper.rdb.adapter.api.RdbAdapter |
NOSIZE |
Fields inherited from interface org.objectweb.jorm.mapper.rdb.adapter.api.TypeAdapter |
TYPE_NAMES, 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 |
Constructor Summary | |
PostgresAdapter()
|
Method Summary | |
protected boolean |
existRelation(java.sql.Connection connection,
java.lang.String relName,
java.lang.String[] relationTypes)
|
boolean |
existSequence(java.sql.Connection connection,
java.lang.String seqName)
checks the sequence existence |
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 |
getSqlType(int typeCode,
boolean usedInPK,
int size,
int scale)
This method returns the SQL type linked to the java type |
java.lang.String |
getSubqueryAlias()
In the case the subquery needs to be aliased (Postgres), returns a string to be appended to the subquery. |
java.lang.String |
getValueAsSQLString(boolean value)
This method returns a String value that represents a boolean value. |
java.lang.String |
getValueAsSQLString(java.lang.Object value,
int typeCode)
This method returns a String value that represents a value. |
protected void |
modifyWhereClauseWithRange(java.lang.StringBuffer sb,
java.lang.String _where,
int rangeStart,
int rangeSize)
|
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 |
Field Detail |
private static final java.lang.String POSTGRESCONCAT
Constructor Detail |
public PostgresAdapter()
Method Detail |
public boolean supportBatchPreparedStatement()
RdbAdapter
supportBatchPreparedStatement
in interface RdbAdapter
supportBatchPreparedStatement
in class BasicRdbAdapter
public java.lang.String getSqlType(int typeCode, boolean usedInPK, int size, int scale) throws RdbAdapterException
TypeAdapter
getSqlType
in interface TypeAdapter
getSqlType
in class BasicRdbAdapter
RdbAdapterException
public java.lang.String getValueAsSQLString(boolean value)
ValueAsSQLStringAdapter
getValueAsSQLString
in interface ValueAsSQLStringAdapter
getValueAsSQLString
in class BasicRdbAdapter
public java.lang.String getValueAsSQLString(java.lang.Object value, int typeCode)
ValueAsSQLStringAdapter
getValueAsSQLString
in interface ValueAsSQLStringAdapter
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 RdbAdapterException
RdbAdapter
Two main syntaxes are found: instr() and locate()
getIndexedLocateExpression
in interface RdbAdapter
getIndexedLocateExpression
in class BasicRdbAdapter
RdbAdapterException
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 boolean existSequence(java.sql.Connection connection, java.lang.String seqName) throws java.sql.SQLException
SequenceAdapter
existSequence
in interface SequenceAdapter
existSequence
in class BasicRdbAdapter
java.sql.SQLException
protected boolean existRelation(java.sql.Connection connection, java.lang.String relName, java.lang.String[] relationTypes) throws java.sql.SQLException
existRelation
in class BasicRdbAdapter
java.sql.SQLException
public java.lang.String getSubqueryAlias()
RdbAdapter
getSubqueryAlias
in interface RdbAdapter
getSubqueryAlias
in class BasicRdbAdapter
protected void modifyWhereClauseWithRange(java.lang.StringBuffer sb, java.lang.String _where, int rangeStart, int rangeSize)
modifyWhereClauseWithRange
in class BasicRdbAdapter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |