org.apache.ojb.broker.platforms
Class PlatformSybaseASAImpl
java.lang.Object
org.apache.ojb.broker.platforms.PlatformDefaultImpl
org.apache.ojb.broker.platforms.PlatformSybaseImpl
org.apache.ojb.broker.platforms.PlatformSybaseASAImpl
- All Implemented Interfaces:
- JoinSyntaxTypes, Platform
public class PlatformSybaseASAImpl
- extends PlatformSybaseImpl
This class is a concrete implementation of Platform
.
Provides an implementation for Sybase ASA.
This class extends PlatformSybaseImpl
and defines specific
behavior for the Sybase ASA platform.
NOTE: Different than the Sybase ASE platform
Modified by Nicus for Sybase ASA
- Version:
- $Id: PlatformSybaseASAImpl.java,v 1.1 2007-08-24 22:17:35 ewestfal Exp $
- Author:
- Matthew Baird
Methods inherited from class org.apache.ojb.broker.platforms.PlatformDefaultImpl |
addBatch, addPagingSql, afterStatementClose, afterStatementCreate, beforeBatch, beforeStatementClose, bindPagingParameters, bindPagingParametersFirst, changeAutoCommitState, checkForBatchSupport, concatenate, createSequenceQuery, createSequenceQuery, dropSequenceQuery, executeBatch, getConcatenationCharacter, getEscapeClause, getLastInsertIdentityQuery, nextSequenceQuery, prepareNextValProcedureStatement, registerOutResultSet, setNullForStatement, setObjectForStatement, supportsBatchOperations, supportsMultiColumnCountDistinct, supportsPaging, useCountForResultsetSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlatformSybaseASAImpl
public PlatformSybaseASAImpl()
initializeJdbcConnection
public void initializeJdbcConnection(JdbcConnectionDescriptor jcd,
Connection conn)
throws PlatformException
- Sybase Adaptive Server Enterprise (ASE) support timestamp to a precision of 1/300th of second.
Adaptive Server Anywhere (ASA) support timestamp to a precision of 1/1000000tho of second.
Sybase JDBC driver (JConnect) retrieving timestamp always rounds to 1/300th sec., causing rounding
problems with ASA when retrieving Timestamp fields.
This work around was suggested by Sybase Support. Unfortunately it works only with ASA.
author Lorenzo Nicora
- Specified by:
initializeJdbcConnection
in interface Platform
- Overrides:
initializeJdbcConnection
in class PlatformDefaultImpl
conn
- the Connection to be initialized
- Throws:
PlatformException
- See Also:
Platform.initializeJdbcConnection(org.apache.ojb.broker.metadata.JdbcConnectionDescriptor, java.sql.Connection)
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.