org.garret.consusx
Class ConsusDataSource
java.lang.Object
org.garret.consusx.ConsusDataSource
- All Implemented Interfaces:
- javax.sql.DataSource, javax.naming.Referenceable, java.io.Serializable
- Direct Known Subclasses:
- ConsusConnectionPoolDataSource
- public class ConsusDataSource
- extends java.lang.Object
- implements javax.sql.DataSource, javax.naming.Referenceable, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
databaseName
public java.lang.String databaseName
dataSourceName
public java.lang.String dataSourceName
description
public java.lang.String description
networkProtocol
public java.lang.String networkProtocol
password
public java.lang.String password
portNumber
public int portNumber
roleName
public java.lang.String roleName
serverName
public java.lang.String serverName
user
public java.lang.String user
ConsusDataSource
public ConsusDataSource()
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Specified by:
getConnection
in interface javax.sql.DataSource
- Throws:
java.sql.SQLException
getConnection
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
- Specified by:
getConnection
in interface javax.sql.DataSource
- Throws:
java.sql.SQLException
getDatabaseName
public java.lang.String getDatabaseName()
getDataSourceName
public java.lang.String getDataSourceName()
getDescription
public java.lang.String getDescription()
getLoginTimeout
public int getLoginTimeout()
throws java.sql.SQLException
- Specified by:
getLoginTimeout
in interface javax.sql.DataSource
- Throws:
java.sql.SQLException
getLogWriter
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
- Specified by:
getLogWriter
in interface javax.sql.DataSource
- Throws:
java.sql.SQLException
getNetworkProtocol
public java.lang.String getNetworkProtocol()
getPassword
public java.lang.String getPassword()
getPortNumber
public int getPortNumber()
getReference
public javax.naming.Reference getReference()
throws javax.naming.NamingException
- Specified by:
getReference
in interface javax.naming.Referenceable
- Throws:
javax.naming.NamingException
getRoleName
public java.lang.String getRoleName()
getServerName
public java.lang.String getServerName()
getUser
public java.lang.String getUser()
setDatabaseName
public void setDatabaseName(java.lang.String databaseName)
setDataSourceName
public void setDataSourceName(java.lang.String dataSourceName)
setDescription
public void setDescription(java.lang.String description)
setLoginTimeout
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
- Specified by:
setLoginTimeout
in interface javax.sql.DataSource
- Throws:
java.sql.SQLException
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
- Specified by:
setLogWriter
in interface javax.sql.DataSource
- Throws:
java.sql.SQLException
setNetworkProtocol
public void setNetworkProtocol(java.lang.String networkProtocol)
setPassword
public void setPassword(java.lang.String password)
setPortNumber
public void setPortNumber(int portNumber)
setrRoleName
public void setrRoleName(java.lang.String roleName)
setServerName
public void setServerName(java.lang.String serverName)
setUser
public void setUser(java.lang.String user)