org.apache.ojb.broker.platforms
Class PlatformSybaseASAImpl

java.lang.Object
  extended by org.apache.ojb.broker.platforms.PlatformDefaultImpl
      extended by org.apache.ojb.broker.platforms.PlatformSybaseImpl
          extended by 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

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
PlatformSybaseASAImpl()
           
 
Method Summary
 void initializeJdbcConnection(JdbcConnectionDescriptor jcd, Connection conn)
          Sybase Adaptive Server Enterprise (ASE) support timestamp to a precision of 1/300th of second.
 
Methods inherited from class org.apache.ojb.broker.platforms.PlatformSybaseImpl
getJoinSyntaxType
 
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
 

Constructor Detail

PlatformSybaseASAImpl

public PlatformSybaseASAImpl()
Method Detail

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 © 2004-2012 The Kuali Foundation. All Rights Reserved.