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 365232 2005-12-21 22:36:07Z tomdz $
Author:
Matthew Baird

Field Summary
 
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, java.sql.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, concatenate, createSequenceQuery, createSequenceQuery, dropSequenceQuery, executeBatch, getEscapeClause, getLastInsertIdentityQuery, nextSequenceQuery, prepareNextValProcedureStatement, registerOutResultSet, setNullForStatement, setObjectForStatement, supportsBatchOperations, supportsMultiColumnCountDistinct, supportsPaging, useCountForResultsetSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformSybaseASAImpl

public PlatformSybaseASAImpl()
Method Detail

initializeJdbcConnection

public void initializeJdbcConnection(JdbcConnectionDescriptor jcd,
                                     java.sql.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)


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30