com.j256.ormlite.db
Class SqlServerJtdsDatabaseType

java.lang.Object
  extended by com.j256.ormlite.db.BaseDatabaseType
      extended by com.j256.ormlite.db.SqlServerDatabaseType
          extended by com.j256.ormlite.db.SqlServerJtdsDatabaseType
All Implemented Interfaces:
com.j256.ormlite.db.DatabaseType

public class SqlServerJtdsDatabaseType
extends SqlServerDatabaseType
implements com.j256.ormlite.db.DatabaseType

Microsoft SQL server database type information connected through the JTDS JDBC driver.

NOTE: Currently with 1.2.4 version of the jTDS package, I'm seeing problems with Java 1.5 because jTDS is using a java.sql 1.6 class.

See JTDS home page for more information. To use this driver, you need to specify the database URL as something like the following. See the URL for more information.

jdbc:jtds:sqlserver://host-name:host-port/database-name

Author:
graywatson

Nested Class Summary
 
Nested classes/interfaces inherited from class com.j256.ormlite.db.BaseDatabaseType
com.j256.ormlite.db.BaseDatabaseType.BooleanNumberFieldConverter
 
Field Summary
 
Fields inherited from class com.j256.ormlite.db.BaseDatabaseType
DEFAULT_SEQUENCE_SUFFIX, driver
 
Constructor Summary
SqlServerJtdsDatabaseType()
           
 
Method Summary
 String getDatabaseName()
           
 String getDriverClassName()
           
 boolean isDatabaseUrlThisType(String url, String dbTypePart)
           
 
Methods inherited from class com.j256.ormlite.db.SqlServerDatabaseType
appendBooleanType, appendByteArrayType, appendByteType, appendDateType, appendEscapedEntityName, appendLimitValue, appendSerializableType, configureGeneratedId, getFieldConverter, isAllowGeneratedIdInsertSupported, isLimitAfterSelect, isOffsetSqlSupported
 
Methods inherited from class com.j256.ormlite.db.BaseDatabaseType
addPrimaryKeySql, addUniqueComboSql, appendCharType, appendColumnArg, appendCreateTableSuffix, appendEscapedWord, appendLongStringType, appendLongType, appendOffsetValue, appendSelectNextValFromSequence, appendShortType, appendStringType, configureGeneratedIdSequence, configureId, dropColumnArg, generatedIdSqlAtEnd, generateIdSequenceName, getCommentLinePrefix, getPingStatement, isBatchUseTransaction, isCreateIfNotExistsSupported, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitSqlSupported, isNestedSavePointsSupported, isOffsetLimitArgument, isSelectSequenceBeforeInsert, isTruncateSupported, isVarcharFieldWidthSupported, loadDriver, setDriver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.j256.ormlite.db.DatabaseType
addPrimaryKeySql, addUniqueComboSql, appendColumnArg, appendCreateTableSuffix, appendEscapedEntityName, appendEscapedWord, appendLimitValue, appendOffsetValue, appendSelectNextValFromSequence, dropColumnArg, generateIdSequenceName, getCommentLinePrefix, getFieldConverter, getPingStatement, isAllowGeneratedIdInsertSupported, isBatchUseTransaction, isCreateIfNotExistsSupported, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterSelect, isLimitSqlSupported, isNestedSavePointsSupported, isOffsetLimitArgument, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isTruncateSupported, isVarcharFieldWidthSupported, loadDriver, setDriver
 

Constructor Detail

SqlServerJtdsDatabaseType

public SqlServerJtdsDatabaseType()
Method Detail

isDatabaseUrlThisType

public boolean isDatabaseUrlThisType(String url,
                                     String dbTypePart)
Specified by:
isDatabaseUrlThisType in interface com.j256.ormlite.db.DatabaseType
Overrides:
isDatabaseUrlThisType in class SqlServerDatabaseType

getDriverClassName

public String getDriverClassName()
Overrides:
getDriverClassName in class SqlServerDatabaseType

getDatabaseName

public String getDatabaseName()
Specified by:
getDatabaseName in interface com.j256.ormlite.db.DatabaseType
Overrides:
getDatabaseName in class SqlServerDatabaseType


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.