|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.enhydra.jdbc.util.JdbcUtil
org.enhydra.jdbc.core.CoreDataSource
public class CoreDataSource
Provides a Data Source which can be used to generate JDBC connections.
This class is generic in the sense that it does not rely upon anything other than standard Java APIs. It uses java.sql.DriverManager and preconfigured properties to construct a JDBC connection.
| Field Summary | |
|---|---|
PrintWriter |
logWriter
|
String |
password
|
String |
user
|
| Fields inherited from class org.enhydra.jdbc.util.JdbcUtil |
|---|
log |
| Constructor Summary | |
|---|---|
CoreDataSource()
Constructor |
|
| Method Summary | |
|---|---|
String |
getDescription()
Setter/Getter defined for standard properties |
int |
getLoginTimeout()
|
PrintWriter |
getLogWriter()
|
Object |
getObjectInstance(Object refObj,
Name name,
Context nameCtx,
Hashtable env)
Methods inherited from ObjectFactory |
String |
getPassword()
|
Reference |
getReference()
Methods inherited from referenceable |
JdbcThreadFactory |
getThreadFactory()
|
String |
getUser()
|
boolean |
isDebug()
|
boolean |
isVerbose()
|
void |
setDebug(boolean debug)
|
void |
setDescription(String description)
|
void |
setLoginTimeout(int seconds)
|
void |
setLogWriter(PrintWriter out)
|
void |
setPassword(String password)
|
void |
setThreadFactory(JdbcThreadFactory f)
|
void |
setUser(String user)
|
void |
setVerbose(boolean verbose)
|
void |
shutdown(boolean force)
shutdown is a placeholder for datasources which should shut down any pools which they maintain. |
String |
toString()
|
| Methods inherited from class org.enhydra.jdbc.util.JdbcUtil |
|---|
setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public transient PrintWriter logWriter
public String user
public String password
| Constructor Detail |
|---|
public CoreDataSource()
| Method Detail |
|---|
public String getDescription()
public String getPassword()
public String getUser()
public JdbcThreadFactory getThreadFactory()
public boolean isDebug()
public boolean isVerbose()
public void setDescription(String description)
public void setPassword(String password)
public void setUser(String user)
public void setDebug(boolean debug)
public void setVerbose(boolean verbose)
public void setThreadFactory(JdbcThreadFactory f)
public PrintWriter getLogWriter()
public void setLogWriter(PrintWriter out)
public void shutdown(boolean force)
public void setLoginTimeout(int seconds)
public int getLoginTimeout()
public Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingException
public Object getObjectInstance(Object refObj,
Name name,
Context nameCtx,
Hashtable env)
throws Exception
getObjectInstance in interface ObjectFactoryExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||