org.apache.cayenne.dba.sybase
Class SybaseAdapter

java.lang.Object
  extended by org.apache.cayenne.dba.JdbcAdapter
      extended by org.apache.cayenne.dba.sybase.SybaseAdapter
All Implemented Interfaces:
DbAdapter
Direct Known Subclasses:
SQLServerAdapter

public class SybaseAdapter
extends JdbcAdapter

DbAdapter implementation for Sybase RDBMS.

Author:
Andrei Adamchik

Field Summary
 
Fields inherited from class org.apache.cayenne.dba.JdbcAdapter
extendedTypes, pkGenerator, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler
 
Constructor Summary
SybaseAdapter()
           
 
Method Summary
 void bindParameter(java.sql.PreparedStatement statement, java.lang.Object object, int pos, int sqlType, int precision)
          Binds an object value to PreparedStatement's numbered parameter.
protected  void configureExtendedTypes(ExtendedTypeMap map)
          Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers.
protected  PkGenerator createPkGenerator()
          Creates and returns a primary key generator.
 java.lang.String getBatchTerminator()
          Returns word "go".
 
Methods inherited from class org.apache.cayenne.dba.JdbcAdapter
buildAttribute, createDataNode, createFkConstraint, createTable, createTableAppendColumn, createTableAppendPKClause, createUniqueConstraint, dropTable, externalTypesForJdbcType, findAdapterResource, getAction, getExtendedTypes, getPkGenerator, getQualifierTranslator, getQueryTranslator, queryTranslatorClass, setPkGenerator, setSupportsBatchUpdates, setSupportsFkConstraints, setSupportsGeneratedKeys, setSupportsUniqueConstraints, shouldRunBatchQuery, supportsBatchUpdates, supportsFkConstraints, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SybaseAdapter

public SybaseAdapter()
Method Detail

getBatchTerminator

public java.lang.String getBatchTerminator()
Returns word "go".

Specified by:
getBatchTerminator in interface DbAdapter
Overrides:
getBatchTerminator in class JdbcAdapter
Since:
1.0.4

configureExtendedTypes

protected void configureExtendedTypes(ExtendedTypeMap map)
Installs appropriate ExtendedTypes as converters for passing values between JDBC and Java layers.

Overrides:
configureExtendedTypes in class JdbcAdapter

createPkGenerator

protected PkGenerator createPkGenerator()
Creates and returns a primary key generator. Overrides superclass implementation to return an instance of SybasePkGenerator.

Overrides:
createPkGenerator in class JdbcAdapter

bindParameter

public void bindParameter(java.sql.PreparedStatement statement,
                          java.lang.Object object,
                          int pos,
                          int sqlType,
                          int precision)
                   throws java.sql.SQLException,
                          java.lang.Exception
Description copied from interface: DbAdapter
Binds an object value to PreparedStatement's numbered parameter.

Specified by:
bindParameter in interface DbAdapter
Overrides:
bindParameter in class JdbcAdapter
Throws:
java.sql.SQLException
java.lang.Exception


Copyright © 2001-2006 Apache.org All Rights Reserved.