edu.jhu.tmaj.database.conn
Class SQLServerConnectionFactory
java.lang.Object
edu.jhu.tmaj.database.conn.AbstractConnectionFactory
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();
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLServerConnectionFactory
public SQLServerConnectionFactory(DatabaseParameters databaseParameters)
getConnectionString
java.lang.String getConnectionString()
- Specified by:
getConnectionString
in class AbstractConnectionFactory
getDriverName
java.lang.String getDriverName()
- Specified by:
getDriverName
in class AbstractConnectionFactory