|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.enhydra.jdbc.core.CoreDataSource
|
+--org.enhydra.jdbc.standard.StandardDataSource
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. Important : networkProtocol, portNumber, serverName are not used. Please use instead the url property.
| Field Summary |
| Fields inherited from class org.enhydra.jdbc.core.CoreDataSource |
logWriter, password, user |
| Constructor Summary | |
|
StandardDataSource()
Constructors |
protected |
StandardDataSource(java.sql.Driver drv)
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.sql.Connection |
getConnection()
Methods inherited from DataSource |
java.sql.Connection |
getConnection(java.lang.String u,
java.lang.String p)
|
java.lang.String |
getDriverName()
Setter/Getter defined for standard properties |
java.lang.Object |
getObjectInstance(java.lang.Object refObj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable env)
Methods inherited from ObjectFactory |
javax.naming.Reference |
getReference()
Methods inherited from referenceable |
int |
getTransactionIsolation()
|
java.lang.String |
getUrl()
|
void |
setDriverName(java.lang.String driverName)
|
void |
setTransactionIsolation(int level)
|
void |
setUrl(java.lang.String url)
|
| Methods inherited from class org.enhydra.jdbc.core.CoreDataSource |
getDescription, getLoginTimeout, getLogWriter, getPassword, getThreadFactory, getUser, isDebug, isVerbose, log, setDebug, setDescription, setLoginTimeout, setLogWriter, setPassword, setThreadFactory, setUser, setVerbose, shutdown |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sql.DataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
| Constructor Detail |
public StandardDataSource()
protected StandardDataSource(java.sql.Driver drv)
throws java.sql.SQLException
| Method Detail |
public java.lang.String getDriverName()
public java.lang.String getUrl()
public void setDriverName(java.lang.String driverName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setUrl(java.lang.String url)
public void setTransactionIsolation(int level)
public int getTransactionIsolation()
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection(java.lang.String u,
java.lang.String p)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.ReferenceablegetReference in class CoreDataSourcejavax.naming.NamingException
public java.lang.Object getObjectInstance(java.lang.Object refObj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable env)
throws java.lang.Exception
getObjectInstance in interface javax.naming.spi.ObjectFactorygetObjectInstance in class CoreDataSourcejava.lang.Exceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||