| java.lang.Object org.apache.ojb.broker.platforms.PlatformDefaultImpl
All known Subclasses: org.apache.ojb.broker.platforms.PlatformMySQLImpl, org.apache.ojb.broker.platforms.PlatformFirebirdImpl, org.apache.ojb.broker.platforms.PlatformPostgreSQLImpl, org.apache.ojb.broker.platforms.PlatformSapdbImpl, org.apache.ojb.broker.platforms.PlatformHsqldbImpl, org.apache.ojb.broker.platforms.PlatformOracleImpl, org.apache.ojb.broker.platforms.PlatformDb2Impl, org.apache.ojb.broker.platforms.PlatformSybaseImpl, org.apache.ojb.broker.platforms.PlatformMsAccessImpl, org.apache.ojb.broker.platforms.PlatformInformixImpl, org.apache.ojb.broker.platforms.PlatformMsSQLServerImpl, org.apache.ojb.broker.platforms.PlatformDerbyImpl,
PlatformDefaultImpl | public class PlatformDefaultImpl implements Platform,JoinSyntaxTypes(Code) | | This class is a concrete implementation of Platform . Provides default implementations for all
methods declared in Platform .
It is intended as a vanilla implementation and as baseclass for
platform specific implementations.
version: $Id: PlatformDefaultImpl.java,v 1.27.2.7 2005/12/18 16:43:19 tomdz Exp $ author: Thomas Mahler |
Method Summary | |
public void | addBatch(PreparedStatement stmt) | public void | addPagingSql(StringBuffer anSqlString) | public void | afterStatementClose(Statement stmt, ResultSet rs) | public void | afterStatementCreate(Statement stmt) | public void | beforeBatch(PreparedStatement stmt) | public void | beforeStatementClose(Statement stmt, ResultSet rs) | public int | bindPagingParameters(PreparedStatement ps, int index, int startAt, int endAt) | public boolean | bindPagingParametersFirst() | public void | changeAutoCommitState(JdbcConnectionDescriptor jcd, Connection con, boolean newState) | protected void | checkForBatchSupport(Connection conn) Sets platform information for if the jdbc driver/db combo support
batch operations. | public String | concatenate(String[] theColumns) | public String | createSequenceQuery(String sequenceName, Properties prop) | public String | createSequenceQuery(String sequenceName) | public String | dropSequenceQuery(String sequenceName) | public int[] | executeBatch(PreparedStatement stmt) | protected String | getConcatenationCharacter() | public String | getEscapeClause(LikeCriteria aCriteria) | public byte | getJoinSyntaxType() | public String | getLastInsertIdentityQuery(String tableName) | public void | initializeJdbcConnection(JdbcConnectionDescriptor jcd, Connection conn) | public String | nextSequenceQuery(String sequenceName) | public CallableStatement | prepareNextValProcedureStatement(Connection con, String procedureName, String sequenceName) | public void | registerOutResultSet(CallableStatement stmt, int position) | public void | setNullForStatement(PreparedStatement ps, int index, int sqlType) | public void | setObjectForStatement(PreparedStatement ps, int index, Object value, int sqlType) | public boolean | supportsBatchOperations() | public boolean | supportsMultiColumnCountDistinct() | public boolean | supportsPaging() | public boolean | useCountForResultsetSize() |
m_batchUpdatesChecked | protected boolean m_batchUpdatesChecked(Code) | | |
m_supportsBatchUpdates | protected boolean m_supportsBatchUpdates(Code) | | |
checkForBatchSupport | protected void checkForBatchSupport(Connection conn)(Code) | | Sets platform information for if the jdbc driver/db combo support
batch operations. Will only be checked once, then have same batch
support setting for the entire session.
Parameters: conn - |
createSequenceQuery | public String createSequenceQuery(String sequenceName)(Code) | | Override this method to enable database based sequence generation
|
dropSequenceQuery | public String dropSequenceQuery(String sequenceName)(Code) | | Override this method to enable database based sequence generation
|
getConcatenationCharacter | protected String getConcatenationCharacter()(Code) | | Answer the Character for Concatenation
|
getJoinSyntaxType | public byte getJoinSyntaxType()(Code) | | Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface
See Also: Platform.getJoinSyntaxType |
getLastInsertIdentityQuery | public String getLastInsertIdentityQuery(String tableName)(Code) | | |
nextSequenceQuery | public String nextSequenceQuery(String sequenceName)(Code) | | Override this method to enable database based sequence generation
|
supportsBatchOperations | public boolean supportsBatchOperations()(Code) | | |
supportsMultiColumnCountDistinct | public boolean supportsMultiColumnCountDistinct()(Code) | | |
useCountForResultsetSize | public boolean useCountForResultsetSize()(Code) | | Override default ResultSet size determination (rs.last();rs.getRow())
with select count(*) operation
See Also: Platform.useCountForResultsetSize |
|
|