|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the
java.sql.Connection
interface for the Sybase JDBC driver.
Connection
objects obtained from jConnect can be cast
to this class to access Sybase-specific methods.
Statement
,
ResultSet
,
DatabaseMetaData
,
java.sql.DriverManager#getConnection
,
com.sybase.jdbc2.jdbc.SybDriver#connect
Method Summary | |
void |
cancel()
Cancels all pending results on this connection. |
Capture |
createCapture()
|
String |
getSessionID()
Returns the session ID associated with this connection, or null if there is no ID. |
SybMessageHandler |
getSybMessageHandler()
Returns the current message handler object for this connection. |
PreparedStatement |
prepareStatement(String sql,
boolean dynamic)
Creates a prepared statement, overriding the DYNAMIC_PREPARE connection property. |
void |
regNoWatch(String eventName)
Removes the application from the notification list of a registered procedure. |
void |
regWatch(String eventName,
SybEventHandler eventHdlr,
int option)
Adds the application to the notification list of a registered procedure. |
void |
setSybMessageHandler(SybMessageHandler msgHandler)
Sets the message handler for this connection. |
Methods inherited from interface java.sql.Connection |
clearWarnings,
close,
commit,
createStatement,
createStatement,
getAutoCommit,
getCatalog,
getMetaData,
getTransactionIsolation,
getTypeMap,
getWarnings,
isClosed,
isReadOnly,
nativeSQL,
prepareCall,
prepareCall,
prepareStatement,
prepareStatement,
rollback,
setAutoCommit,
setCatalog,
setReadOnly,
setTransactionIsolation,
setTypeMap |
Method Detail |
public void cancel() throws SQLException
public Capture createCapture() throws SQLException
Capture
object which can be used to enable
and disable protocol tracingpublic String getSessionID() throws SQLException
public PreparedStatement prepareStatement(String sql, boolean dynamic) throws SQLException
sql
- string giving the query to preparedynamic
- if true, compile the query in advance for
greater efficiency of repeated executionpublic void regNoWatch(String eventName) throws SQLException
eventName
- the name of the registered procedure for which the
application no longer wants notificationpublic void regWatch(String eventName, SybEventHandler eventHdlr, int option) throws SQLException
eventName
- the name of the registered procedure for which the
application wants notificationeventHdlr
- the class that will handle the notification eventoption
- an int
specifying whether the application
should be removed from the notification list after a single
notification (SybEventHandler.NOTIFY_ONCE
) or be called
every time the procedure executes
(SybEventHandler.NOTIFY_ALWAYS
)public void setSybMessageHandler(SybMessageHandler msgHandler)
msgHandler
- message handler to be called when an error
occurs or null to turn off error callbackspublic SybMessageHandler getSybMessageHandler()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |