|
i-net JDBC drivers for Sybase | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.inet.syb.SybDriver com.inet.syb.SybDataSource
This class is an implementation of a simple DataSource for the drivers i-net SY-TO(tm) / i-net SYBELUX(tm).
Constructor Summary | |
SybDataSource()
Attempt to create a Datasource. |
|
SybDataSource(java.util.Properties info)
Attempt to create a Datasource with the given properties. |
Method Summary | |
java.lang.Object |
clone()
Create a new object of the same class like this DataSource. |
boolean |
equals(java.lang.Object obj)
Compare this DataSource to the specified object. |
java.lang.String |
getAppname()
Return the Application Name. |
java.lang.String |
getChained()
Get the chained property. |
java.lang.String |
getCharset()
Return the charset for the connection. |
java.sql.Connection |
getConnection()
Attempt to establish a connection to the database. |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
Attempt to establish a connection to the database. |
java.lang.String |
getDatabaseName()
Return the first database name of the connection after login. |
java.lang.String |
getDescription()
Return a one line description of the DataSource. |
boolean |
getImpltran()
Get the implicit transaction mode of the driver. |
java.lang.String |
getLogging()
Returns the value of logging property |
int |
getLoginTimeout()
Returns the timeout for login. |
java.io.PrintWriter |
getLogWriter()
|
java.lang.String |
getPassword()
Return the password for the connection. |
java.lang.String |
getPort()
Return the TCP/IP port number of the Sybase Server. |
int |
getPortNumber()
Return the TCP/IP port number of the Sybase Server. |
java.util.Properties |
getProperties()
Get all properties of the DataSource without LoginTimeout and LogWriter. |
java.lang.String |
getProperty(java.lang.String name)
Get any property of the DataSource without LoginTimeout and LogWriter. |
javax.naming.Reference |
getReference()
Retrieves the Reference of this SybDataSource object. |
java.lang.String |
getServerName()
Return the server name of the Sybase Server. |
java.lang.String |
getUser()
Return the user for the connection. |
void |
setAppname(java.lang.String appname)
Set the Application Name. |
void |
setChained(java.lang.String chained)
Set the chained property. |
void |
setCharset(java.lang.String charset)
Set the charset for the connection. |
void |
setDatabaseName(java.lang.String databaseName)
Set the first database name of the connection after login. |
void |
setDescription(java.lang.String description)
Set the description of the DataSource. |
void |
setImpltran(boolean impltran)
Set the implicit transaction mode. |
void |
setLogging(java.lang.String logging)
Set the logging property of driver. |
void |
setLoginTimeout(int seconds)
Set the login timeout for the connection. |
void |
setLogWriter(java.io.PrintWriter out)
|
void |
setPassword(java.lang.String password)
Set the password for the connection. |
void |
setPort(java.lang.String port)
Set TCP/IP port number of the Sybase Server. |
void |
setPortNumber(int portNumber)
Set TCP/IP port number of the Sybase Server. |
void |
setProperties(java.util.Properties properties)
Set all properties of the DataSource without LoginTimeout and LogWriter. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set any property of the DataSource without LoginTimeout and LogWriter. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Set any property of the DataSource without LoginTimeout and LogWriter. |
void |
setServerName(java.lang.String serverName)
Set the server name of the Sybase Server. |
void |
setUser(java.lang.String user)
Set the user account for the connection. |
java.lang.String |
toString()
|
Methods inherited from class com.inet.syb.SybDriver |
acceptsURL, connect, getMajorVersion, getMinorVersion, getPropertyInfo, jdbcCompliant, run |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SybDataSource()
public SybDataSource(java.util.Properties info) throws java.sql.SQLException
info
- a list of arbitrary string tag/value pairs as connection arguments; normally at least a "user" and "password" property should be includedMethod Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
username
- the database user on whose behalf the Connection is being made.password
- the user's password.
java.sql.SQLException
public java.lang.String getServerName()
public void setServerName(java.lang.String serverName)
serverName
- the host name or IP-Address.public java.lang.String getDatabaseName()
public void setDatabaseName(java.lang.String databaseName)
databaseName
- the name of database.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- a one line description.public java.lang.String getAppname()
public void setAppname(java.lang.String appname)
appname
- a one line description.public int getPortNumber()
public void setPortNumber(int portNumber)
portNumber
- the port number.public java.lang.String getPort()
public void setPort(java.lang.String port)
port
- the port number.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- the password for the Sybase Server.public java.lang.String getCharset()
public void setCharset(java.lang.String charset)
charset
- public java.lang.String getUser()
public void setUser(java.lang.String user)
user
- the user name.public void setChained(java.lang.String chained)
getChained()
public java.lang.String getChained()
setChained(java.lang.String)
public void setLogging(java.lang.String logging)
logging
- either "true" or "false".public java.lang.String getLogging()
public java.io.PrintWriter getLogWriter()
getLogWriter
in interface javax.sql.DataSource
public void setLogWriter(java.io.PrintWriter out)
setLogWriter
in interface javax.sql.DataSource
public int getLoginTimeout()
getLoginTimeout
in interface javax.sql.DataSource
public void setLoginTimeout(int seconds)
setLoginTimeout
in interface javax.sql.DataSource
seconds
- The login timeout for the connection.public void setImpltran(boolean impltran)
impltran
- the implicit transaction modegetImpltran()
public boolean getImpltran()
setImpltran(boolean)
public void setProperty(java.lang.String name, java.lang.String value)
name
- The name of the property.value
- The value of the property.getProperty(String)
,
getProperties()
public void setProperty(java.lang.String name, java.lang.Object value)
name
- The name of the property.value
- The value of the property.getProperty(String)
,
getProperties()
public java.lang.String getProperty(java.lang.String name)
name
- The name of the property.
setProperty(String,String)
,
getProperties()
public void setProperties(java.util.Properties properties)
properties
- All properties of the DataSource
without LoginTimeout and LogWriter.getProperty(String)
,
getProperties()
public java.util.Properties getProperties()
setProperty(String,String)
,
getProperty(String)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object obj)
obj
- the object to compare.public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
- If a naming exception was encountered while retrieving the referencepublic java.lang.String toString()
|
i-net JDBC drivers for Sybase | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |