|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.broker.platforms.PlatformDefaultImpl
org.apache.ojb.broker.platforms.PlatformSapdbImpl
SapDB specific Platform implementation
| Field Summary |
| Fields inherited from class org.apache.ojb.broker.platforms.PlatformDefaultImpl |
log, m_batchUpdatesChecked, m_supportsBatchUpdates |
| Fields inherited from interface org.apache.ojb.broker.accesslayer.JoinSyntaxTypes |
ORACLE_JOIN_SYNTAX, SQL92_JOIN_SYNTAX, SQL92_NOPAREN_JOIN_SYNTAX, SYBASE_JOIN_SYNTAX |
| Constructor Summary | |
PlatformSapdbImpl()
|
|
| Method Summary | |
void |
addPagingSql(java.lang.StringBuffer anSqlString)
Add the LIMIT or equivalent to the SQL SQL-Paging is not yet supported |
int |
bindPagingParameters(java.sql.PreparedStatement ps,
int index,
int startAt,
int endAt)
Bind the Paging Parameters SQL-Paging is not yet supported |
java.lang.String |
createSequenceQuery(java.lang.String sequenceName)
Override this method to enable database based sequence generation |
java.lang.String |
dropSequenceQuery(java.lang.String sequenceName)
Override this method to enable database based sequence generation |
byte |
getJoinSyntaxType()
Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface |
java.lang.String |
nextSequenceQuery(java.lang.String sequenceName)
Override this method to enable database based sequence generation |
void |
setObjectForStatement(java.sql.PreparedStatement ps,
int index,
java.lang.Object value,
int sqlType)
some JDBC-Drivers do not support all sqlTypes this callback is used set parameters to a PreparedStatement |
boolean |
supportsPaging()
Answer true if LIMIT or equivalent is supported SQL-Paging is not yet supported |
boolean |
useCountForResultsetSize()
Override default ResultSet size determination (rs.last();rs.getRow()) with select count(*) operation SAP db doesn't let you use the .last, .getRow() mechanism (.getRow() will return -1) |
| Methods inherited from class org.apache.ojb.broker.platforms.PlatformDefaultImpl |
addBatch, afterStatementClose, afterStatementCreate, beforeBatch, beforeStatementClose, bindPagingParametersFirst, changeAutoCommitState, checkForBatchSupport, concatenate, executeBatch, getConcatenationCharacter, getEscapeClause, getLastInsertIdentityQuery, initializeJdbcConnection, prepareNextValProcedureStatement, setNullForStatement, supportsBatchOperations |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PlatformSapdbImpl()
| Method Detail |
public void setObjectForStatement(java.sql.PreparedStatement ps,
int index,
java.lang.Object value,
int sqlType)
throws java.sql.SQLException
Platform
setObjectForStatement in interface PlatformsetObjectForStatement in class PlatformDefaultImpljava.sql.SQLExceptionpublic byte getJoinSyntaxType()
getJoinSyntaxType in interface PlatformgetJoinSyntaxType in class PlatformDefaultImplPlatform.getJoinSyntaxType()public boolean useCountForResultsetSize()
useCountForResultsetSize in interface PlatformuseCountForResultsetSize in class PlatformDefaultImplPlatform.useCountForResultsetSize()public java.lang.String createSequenceQuery(java.lang.String sequenceName)
PlatformDefaultImpl
createSequenceQuery in interface PlatformcreateSequenceQuery in class PlatformDefaultImplpublic java.lang.String nextSequenceQuery(java.lang.String sequenceName)
PlatformDefaultImpl
nextSequenceQuery in interface PlatformnextSequenceQuery in class PlatformDefaultImplpublic java.lang.String dropSequenceQuery(java.lang.String sequenceName)
PlatformDefaultImpl
dropSequenceQuery in interface PlatformdropSequenceQuery in class PlatformDefaultImplpublic void addPagingSql(java.lang.StringBuffer anSqlString)
Platform
addPagingSql in interface PlatformaddPagingSql in class PlatformDefaultImplPlatform.addPagingSql(java.lang.StringBuffer)
public int bindPagingParameters(java.sql.PreparedStatement ps,
int index,
int startAt,
int endAt)
throws java.sql.SQLException
Platform
bindPagingParameters in interface PlatformbindPagingParameters in class PlatformDefaultImpljava.sql.SQLExceptionPlatform.bindPagingParameters(java.sql.PreparedStatement, int, int, int)public boolean supportsPaging()
Platform
supportsPaging in interface PlatformsupportsPaging in class PlatformDefaultImplPlatform.supportsPaging()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||