|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.croftsoft.core.sql.ConnectionInit
public final class ConnectionInit
Initializer object for creating JDBC Connections.
Java 1.1 compatible.
Field Summary | |
---|---|
String |
jdbcDriverClassName
|
String |
jdbcUrlString
|
String |
password
|
String |
username
|
Constructor Summary | |
---|---|
ConnectionInit(String[] args)
Convenience constructor that takes an array of String arguments. |
|
ConnectionInit(String jdbcDriverClassName,
String jdbcUrlString,
String username,
String password)
Main constructor method. |
Method Summary | |
---|---|
Connection |
createConnection()
Convenience method for creating connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final String jdbcDriverClassName
public final String jdbcUrlString
public final String username
public final String password
Constructor Detail |
---|
public ConnectionInit(String jdbcDriverClassName, String jdbcUrlString, String username, String password)
NullArgumentException
- If any of the arguments is null.public ConnectionInit(String[] args)
The argument ordering is the same as the main constructor method.
NullArgumentException
- If the args is null or any of its elements is null.
IllegalArgumentException
- If args.length != 4.Method Detail |
---|
public Connection createConnection() throws ClassNotFoundException, SQLException
Does not retain reference to newly created Connection.
ClassNotFoundException
SQLException
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |