|
i-net JDBC drivers for Oracle Server | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.inet.ora.OraDriver
com.inet.ora.OraDataSource
This class is an implementation of a simple DataSource for the drivers i-net SEROPTO(tm) and i-net ORANXO(tm).
Field Summary |
Fields inherited from class com.inet.ora.OraDriver |
CURSOR |
Constructor Summary | |
OraDataSource()
Attempt to create a Datasource. |
|
OraDataSource(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 |
getAlterSession()
Return if the driver alters the session. |
java.lang.String |
getCaseSensitive()
Return if the driver treats columns case sensitive. |
java.lang.String |
getColumnsCaseSensitive()
Deprecated. Use getCaseSensitive |
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 |
getDedicated()
Return if the connection should be dedicated. |
java.lang.String |
getDescription()
Return a one line description of the DataSource. |
boolean |
getFailover()
Returns if failover is enabled. |
java.lang.String |
getHost1()
Returns the host name of the first failover node. |
java.lang.String |
getIgnoreScale()
Return if getObject() and getBigDecimal(x) should ignore the scale of the column definition. |
java.lang.String |
getInitSQL()
Get the value of initSQL. |
boolean |
getLoadbalance()
Returns if failover is enabled. |
java.lang.String |
getLogging()
Returns if the driver prints logging to System.out. |
int |
getLoginTimeout()
Returns the timeout for login. |
java.lang.String |
getLogonMode()
Return the logon mode for the sys account. |
java.io.PrintWriter |
getLogWriter()
|
java.lang.String |
getMapNumbers()
Return if getObject() on numbers returns always a Bigdecimal. |
int |
getOpencursors()
Returns the maximum number of open cursors. |
java.lang.String |
getPassword()
Return the password for the connection. |
java.lang.String |
getPort()
Return the TCP/IP port number of the Oracle Server. |
java.lang.String |
getPort1()
Returns the port value of the first failover node. |
int |
getPortNumber()
Return the TCP/IP port number of the Oracle Server. |
java.lang.String |
getProgramName()
Return the program name for a session. |
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. |
java.lang.String |
getProtocol()
Get the protocol type. |
int |
getQueryTimeout()
Returns the timeout for queries. |
javax.naming.Reference |
getReference()
|
java.lang.String |
getReportUnsupportedMethods()
Returns if the driver throws exceptions on unsupported methods. |
java.lang.String |
getSduSize()
Return the sduSize for the connection. |
java.lang.String |
getServerName()
Return the host name of the Oracle Server. |
java.lang.String |
getServiceName()
Return the network servicename of a database. |
java.lang.String |
getSid()
Return the insance name of the database. |
java.lang.String |
getStreamstolob()
Return the value of the property streamstolob. |
java.lang.String |
getTables()
Return if the driver uses temporary tables for scrollable resultsets. |
java.lang.String |
getTimestampToDate()
Return the value of the property timestampToDate. |
java.lang.String |
getTraceLevel()
Deprecated. |
java.lang.String |
getTracePackets()
Returns if the driver prints out a packet dump. |
java.lang.String |
getTraceToSysStream()
Deprecated. |
java.lang.String |
getUser()
Return the user for the connection. |
void |
setAlterSession(java.lang.String session)
Set if the driver should alter the session depending on the clients locale. |
void |
setCaseSensitive(java.lang.String sensitive)
Set if the driver should treats columns case sensitive. |
void |
setColumnsCaseSensitive(java.lang.String sensitive)
Deprecated. Use setCaseSensitive |
void |
setDedicated(java.lang.String dedicated)
Set if the connection should be dedicated. |
void |
setDescription(java.lang.String description)
Set the description of the DataSource. |
void |
setFailover(boolean failover)
Sets if the driver should use the failover mechanism. |
void |
setHost1(java.lang.String host1)
Set the host name for the first failover node. |
void |
setIgnoreScale(java.lang.String ignoreScale)
Set if the driver should ignore the scale of the column definition. |
void |
setInitSQL(java.lang.String initSQL)
Set a SQL expression to init the connection. |
void |
setLoadbalance(boolean loadbalance)
Sets if the driver should use the failover mechanism. |
void |
setLogging(java.lang.String logging)
Enable the logging of the driver to System.out. |
void |
setLoginTimeout(int seconds)
Set the login timeout for the connection. |
void |
setLogonMode(java.lang.String mode)
Set the logon mode for the sys account. |
void |
setLogWriter(java.io.PrintWriter out)
|
void |
setMapNumbers(java.lang.String map)
Set if the driver should always return a BigDecimal on number columns. |
void |
setOpencursors(int number)
Set the maximum size of open cursors for ResultSets. |
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 Oracle Server. |
void |
setPort1(java.lang.String port1)
Set the port value for the first failover node. |
void |
setPortNumber(int portNumber)
Set TCP/IP port number of the Oracle Server. |
void |
setProgramName(java.lang.String name)
Set the program name for the session. |
void |
setProperties(java.util.Properties properties)
Set all properties of the DataSource without LoginTimeout and LogWriter. |
void |
setProperty(java.lang.String keyValuePair)
Set any property of the datasource. |
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 |
setProtocol(java.lang.String protocol)
Set the protocol type. |
void |
setQueryTimeout(int seconds)
Set the query timeout for statements. |
void |
setReportUnsupportedMethods(java.lang.String report)
Set the drivers behaviour on unsupported exceptions. |
void |
setSduSize(int size)
Set the sduSize for the connection. |
void |
setSduSize(java.lang.String size)
Set the sduSize for the connection. |
void |
setServerName(java.lang.String hostName)
Set the host name of the Oracle Server. |
void |
setServiceName(java.lang.String serviceName)
Set the network servicename of a database. |
void |
setSid(java.lang.String sid)
Set the insance name of the database. |
void |
setStreamstolob(java.lang.String streamstolob)
Set if the driver should handle streams as BLOB / CLOB. |
void |
setTables(java.lang.String table)
Set if the driver should use temporary tables for scrollable resultsets. |
void |
setTimestampToDate(java.lang.String timestampToDate)
Set if the driver should handle parameters of type java.sql.Timestamp as Oracle data type DATE. |
void |
setTraceLevel(int level)
Deprecated. |
void |
setTraceLevel(java.lang.String level)
Deprecated. |
void |
setTracePackets(java.lang.String packet)
Sets if the driver should dump out packets. |
void |
setTraceToSysStream(java.lang.String trace)
Deprecated. |
void |
setUser(java.lang.String user)
Set the user account for the connection. |
java.lang.String |
toString()
|
Methods inherited from class com.inet.ora.OraDriver |
acceptsURL, connect, getMajorVersion, getMinorVersion, getPropertyInfo, jdbcCompliant, run |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OraDataSource()
public OraDataSource(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 hostName)
hostName
- the host name or IP-Address.public java.lang.String getServiceName()
public void setServiceName(java.lang.String serviceName)
serviceName
- the service name of the Oracle server.public java.lang.String getSid()
public void setSid(java.lang.String sid)
sid
- the insance name of the database.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- 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 Oracle Server.public java.lang.String getUser()
public void setUser(java.lang.String user)
user
- The user name for the Oracle Server.public java.lang.String getSduSize()
public void setSduSize(java.lang.String size)
size
- The sduSize of the connectionpublic void setSduSize(int size)
size
- The sduSize for the connectionpublic java.lang.String getLogonMode()
public void setLogonMode(java.lang.String mode)
mode
- The logon mode.public java.lang.String getReportUnsupportedMethods()
public void setReportUnsupportedMethods(java.lang.String report)
report
- true if the driver should throws exceptions on unsupported methods.public java.lang.String getTraceLevel()
public void setTraceLevel(java.lang.String level)
level
- public void setTraceLevel(int level)
level
- public java.lang.String getTraceToSysStream()
public void setTraceToSysStream(java.lang.String trace)
trace
- true if the driver should print log messages to System.out.public java.lang.String getTracePackets()
public void setTracePackets(java.lang.String packet)
packet
- true if the driver should dump out packets.public java.lang.String getProgramName()
public void setProgramName(java.lang.String name)
name
- The program name.public java.lang.String getMapNumbers()
public void setMapNumbers(java.lang.String map)
map
- true if the driver should always return a BigDecimal on numbers.public java.lang.String getIgnoreScale()
public void setIgnoreScale(java.lang.String ignoreScale)
ignoreScale
- true if the driver should ignore the scale.public java.lang.String getAlterSession()
public void setAlterSession(java.lang.String session)
session
- true if the driver should alter the session.public java.lang.String getDedicated()
public void setDedicated(java.lang.String dedicated)
dedicated
- true if the connection should be dedicated.public java.lang.String getTables()
public void setTables(java.lang.String table)
table
- true if the driver should use temporary tables.public java.lang.String getColumnsCaseSensitive()
getCaseSensitive()
public void setColumnsCaseSensitive(java.lang.String sensitive)
sensitive
- true if the driver should treats columns and table case sensitive.setCaseSensitive(java.lang.String)
public java.lang.String getCaseSensitive()
public void setCaseSensitive(java.lang.String sensitive)
sensitive
- true if the driver should treats columns and table case sensitive.public java.lang.String getStreamstolob()
public void setStreamstolob(java.lang.String streamstolob)
public java.lang.String getTimestampToDate()
public void setTimestampToDate(java.lang.String timestampToDate)
public void setInitSQL(java.lang.String initSQL)
initSQL
- a valid SQL commandgetInitSQL()
public java.lang.String getInitSQL()
setInitSQL(String)
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 java.lang.String getLogging()
public void setLogging(java.lang.String logging)
logging
- true if the driver should print log messages to System.out.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 int getQueryTimeout()
public void setQueryTimeout(int seconds)
seconds
- The query timeout for the connection.public void setOpencursors(int number)
number
- the maximum size of open cursors for ResultSets. The default value is 300.public int getOpencursors()
public void setFailover(boolean failover)
failover
- if set on "true", driver tries to connect to alternative hosts, if connecting failed.to set alternative connection nodes. See the manual.html for more information.
public boolean getFailover()
public void setLoadbalance(boolean loadbalance)
loadbalance
- if set on "true", driver tries to connect to alternative hosts, if connecting failed. The order of target hosts is randomly.to set alternative connection nodes. See the manual.html for more information.
public boolean getLoadbalance()
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 setProperty(java.lang.String keyValuePair)
key=value
keyValuePair
- the property to be setpublic void setHost1(java.lang.String host1)
host1
- the host name of the first failover node.setFailover(boolean)
,
setLoadbalance(boolean)
,
setPort1(String)
public java.lang.String getHost1()
public void setPort1(java.lang.String port1)
port1
- the host name of the first failover node.setFailover(boolean)
,
setLoadbalance(boolean)
,
setPort1(String)
public java.lang.String getPort1()
public void setProtocol(java.lang.String protocol)
protocol
- the new protocolpublic java.lang.String getProtocol()
public void setProperties(java.util.Properties properties)
properties
- The properties of the DataSource.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
public java.lang.String toString()
|
i-net JDBC drivers for Oracle Server | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |