org.apache.turbine.util.db.adapter
Class DBMSSQL7

java.lang.Object
  |
  +--org.apache.turbine.util.db.adapter.DB
        |
        +--org.apache.turbine.util.db.adapter.DBSybase
              |
              +--org.apache.turbine.util.db.adapter.DBMSSQL
                    |
                    +--org.apache.turbine.util.db.adapter.DBMSSQL7
All Implemented Interfaces:
IDMethod, java.io.Serializable

public class DBMSSQL7
extends DBMSSQL

This is used to connect to a MSSQL 7+ database. the difference from MSSQL is using SELECT TOP N .... for native limits You can use one of several commercial JDBC drivers; the one I use is: i-net SPRINTA(tm) 2000 Driver Version 3.03 for MS SQL Server http://www.inetsoftware.de/

Version:
$Id: DBMSSQL7.java,v 1.1.1.1 2001/08/16 05:09:51 jvanzyl Exp $
Author:
Gonzalo Diethelm
See Also:
Serialized Form

Fields inherited from class org.apache.turbine.util.db.adapter.DB
DB_CONNECTION, DB_PASS, DB_USER, JDBCDriver, LIMIT_STYLE_MSSQL7, LIMIT_STYLE_MYSQL, LIMIT_STYLE_NONE, LIMIT_STYLE_POSTGRES, LIMIT_STYLE_SYBASE
 
Fields inherited from interface org.apache.turbine.util.db.map.IDMethod
AUTO_INCREMENT, AUTOINCREMENT, ID_BROKER, IDBROKERTABLE, NATIVE, NO_ID_METHOD, SEQUENCE
 
Constructor Summary
DBMSSQL7()
           
 
Method Summary
 int getLimitStyle()
          This method is used to chek whether the database supports limiting the size of the resultset.
 
Methods inherited from class org.apache.turbine.util.db.adapter.DBSybase
getIDMethodSQL, getIDMethodType, getStringDelimiter, ignoreCase, lockTable, supportsNativeLimit, toUpperCase, unlockTable
 
Methods inherited from class org.apache.turbine.util.db.adapter.DB
escapeText, getConnection, getConnectionPoolDataSource, getDateString, getIdSqlForAutoIncrement, getJDBCDriver, getSequenceSql, ignoreCaseInOrderBy, init, objectDataNeedsTrans, setJDBCDriver, supportsNativeOffset
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

DBMSSQL7

public DBMSSQL7()
Method Detail

getLimitStyle

public int getLimitStyle()
This method is used to chek whether the database supports limiting the size of the resultset.
Overrides:
getLimitStyle in class DBSybase
Returns:
LIMIT_STYLE_MSSQL7.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.