edu.jhu.tmaj.database.conn
Class SQLServerConnectionFactory

java.lang.Object
  extended by edu.jhu.tmaj.database.conn.AbstractConnectionFactory
      extended by edu.jhu.tmaj.database.conn.SQLServerConnectionFactory
All Implemented Interfaces:
ConnectionFactory

public class SQLServerConnectionFactory
extends AbstractConnectionFactory
implements ConnectionFactory

A ConnectionFactory to a Microsoft SQLServer database. The JDBC driver is from jTDS, an open source 100% pure Java (type 4) JDBC 3.0 driver for Microsoft SQL Server. To get a connection, you could write something like:
DatabaseParameters parameters = new DatabaseParameters("localhost", 1230, "tmaj", "sa", "myPassword");
ConnectionManager manager = ConnectionManagerGetter.getConnectionManager(DatabaseType.SQL_SERVER, parameters);
Connection connection = manager.getConnection();


Field Summary
 
Fields inherited from class edu.jhu.tmaj.database.conn.AbstractConnectionFactory
databaseParameters
 
Constructor Summary
SQLServerConnectionFactory(DatabaseParameters databaseParameters)
           
 
Method Summary
(package private)  java.lang.String getConnectionString()
           
(package private)  java.lang.String getDriverName()
           
 
Methods inherited from class edu.jhu.tmaj.database.conn.AbstractConnectionFactory
getNewConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.jhu.tmaj.database.conn.ConnectionFactory
getNewConnection
 

Constructor Detail

SQLServerConnectionFactory

public SQLServerConnectionFactory(DatabaseParameters databaseParameters)
Method Detail

getConnectionString

java.lang.String getConnectionString()
Specified by:
getConnectionString in class AbstractConnectionFactory

getDriverName

java.lang.String getDriverName()
Specified by:
getDriverName in class AbstractConnectionFactory