|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--vortex.sql.vortexConnection
| Constructor Summary | |
vortexConnection(java.lang.String conn,
int port,
java.lang.String host,
java.lang.String service,
java.lang.String environs,
int fbs,
int mcl,
int dbc,
int mlc,
java.lang.String login,
java.lang.String socksHost,
java.lang.String socksPort)
Constructs a new JDBC connection object for the VORTEX Channel |
|
| Method Summary | |
void |
clearWarnings()
Clear the warning chain. |
void |
close()
Close the database connection. |
void |
commit()
Commit a transaction. |
java.sql.Statement |
createStatement()
Create a SQL statement object. |
void |
disableAutoClose()
Disable closing of statements and result sets. |
boolean |
getAutoClose()
Get the current auto-close state. |
boolean |
getAutoCommit()
Getting auto-commit mode. |
java.lang.String |
getCatalog()
JDBC draft specification method to return the catalog. |
java.sql.DatabaseMetaData |
getMetaData()
Return information about the database. |
int |
getTransactionIsolation()
JDBC draft specification method for retrieving the transaction isolation level for the connection. |
java.lang.String |
getURL()
Gives the URL used to connect to the database. |
java.lang.String |
getUser()
Retrieve the user name of the connection. |
java.sql.SQLWarning |
getWarnings()
Retrieving a chain of warnings related to the connection. |
boolean |
isClosed()
Checking the connection status. |
boolean |
isReadOnly()
Checking the read-only status of the connection. |
java.lang.String |
nativeSQL(java.lang.String sql)
Converts the given SQL statement into the system's native SQL grammar. |
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
Create a stored procedure call. |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
Create an SQL pre-compiled statement. |
void |
rollback()
Rollback a transaction. |
void |
setAutoClose(boolean autoClose)
When a Connection is in auto-close mode all its PreparedStatements, CallableStatements, and ResultSets will be closed when a transaction is committed or rolled back. |
void |
setAutoCommit(boolean b)
Setting the auto-commit mode. |
void |
setCatalog(java.lang.String str)
JDBC draft specification method to select a sub-space of the target database. |
void |
setReadOnly(boolean b)
Setup the connection in read-only mode. |
void |
setTransactionIsolation(int x)
This method has no meaning to VORTEX since VORTEX support isolation level on a newly opened connection, using TRANSACTION_REPEATABLE_READ only Note: setTransactionIsolation cannot be called while in the middle of a transaction. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public vortexConnection(java.lang.String conn,
int port,
java.lang.String host,
java.lang.String service,
java.lang.String environs,
int fbs,
int mcl,
int dbc,
int mlc,
java.lang.String login,
java.lang.String socksHost,
java.lang.String socksPort)
throws java.sql.SQLException
Constructs a new JDBC connection object for the VORTEX Channel
conn - the database login like 'scott/tiger' for Oracleport - the TCP/IP services port numberhost - the IP address of the host on which the VORTEX server residesservice - the host program on server like '/usr2/vortex/bin/vtxhost.ora'environs - the environment variablesfbs - the fetch buffer size for query like 8192mcl - the max DB columns like 256dbc - the number of DB cursorsmlc - the max number of logical cursorslogin - the operating system logon like '(user/password)'socksHost - the IP address or name of the SOCKS serversocksPort - the port of the SOCKS server| Method Detail |
public java.sql.Statement createStatement()
throws java.sql.SQLException
Connection.createStatement()
public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
sql - SQL statementConnection.prepareStatement(java.lang.String)
public java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
Note that stored procedures aren't supported by VORTEXjdbc now, so this method throws an exception.
sql - SQL statementConnection.prepareCall(java.lang.String)
public java.lang.String nativeSQL(java.lang.String sql)
throws java.sql.SQLException
public void setAutoCommit(boolean b)
throws java.sql.SQLException
b - this set auto commitConnection.setAutoCommit(boolean)
public boolean getAutoCommit()
throws java.sql.SQLException
Connection.getAutoCommit()
public void commit()
throws java.sql.SQLException
Connection.commit()
public void rollback()
throws java.sql.SQLException
Connection.rollback()
public void close()
throws java.sql.SQLException
Connection.close()
public boolean isClosed()
throws java.sql.SQLException
Connection.isClosed()
public java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
Connection.getMetaData()
public void setReadOnly(boolean b)
throws java.sql.SQLException
b - boolean read-onlyConnection.setReadOnly(boolean)
public boolean isReadOnly()
throws java.sql.SQLException
Connection.isReadOnly()
public void setCatalog(java.lang.String str)
throws java.sql.SQLException
str - the catalogConnection.setCatalog(java.lang.String)
public java.lang.String getCatalog()
throws java.sql.SQLException
Connection.getCatalog()
public void setTransactionIsolation(int x)
throws java.sql.SQLException
Note: setTransactionIsolation cannot be called while in the middle of a transaction.
level - one of the TRANSACTION_* isolation values with the
exception of TRANSACTION_NONE; some databases may not support
other valuesDatabaseMetaData.supportsTransactionIsolationLevel(int)
public int getTransactionIsolation()
throws java.sql.SQLException
VORTEXjdbc return TRANSACTION_REPEATABLE_READ only
Connection.getTransactionIsolation()
public void disableAutoClose()
throws java.sql.SQLException
public void setAutoClose(boolean autoClose)
throws java.sql.SQLException
When auto-close is disabled JDBC attempts to keep all statements and ResultSets open across commits and rollbacks. However the actual behaviour will vary depending on what the underlying database supports. Some databases allow these objects to remain open across commits whereas other databases insist on closing them.
autoClose - true enables auto-close, false disables
auto-close.DatabaseMetaData.supportsOpenCursorsAcrossCommit(),
DatabaseMetaData.supportsOpenCursorsAcrossRollback(),
DatabaseMetaData.supportsOpenStatementsAcrossCommit(),
DatabaseMetaData.supportsOpenStatementsAcrossRollback()
public boolean getAutoClose()
throws java.sql.SQLException
setAutoClose(boolean)
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
Connection.getWarnings()
public void clearWarnings()
throws java.sql.SQLException
Connection.clearWarnings()public final java.lang.String getURL()
public final java.lang.String getUser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||