Connection (ADO for Java Syntax)

Constructor

public Connection()
public Connection( String text )

Methods

public int beginTrans()
public void commitTrans()
public void rollbackTrans()

public void cancel()

public void close()

public com.ms.ado.Recordset execute( String commandText )
public com.ms.ado.Recordset execute( String commandText, int options )

public int executeUpdate( String commandText )
public int executeUpdate( String commandText, int options )

public void open()
public void open(String connectionString)
public void open(String connectionString, String userID)
public void open(String connectionString, String userID, String password)
public void open(String connectionString, String userID, String password, int options)

public Recordset openSchema( int schema, Object[] restrictions, String schemaID )

Properties

public int getAttributes()
public void setAttributes( int attr )

public int getCommandTimeout()
public void setCommandTimeout( int timeout )

public String getConnectionString()
public void setConnectionString( String con )

public int getConnectionTimeout()
public void setConnectionTimeout( int timeout )

public int getCursorLocation()
public void setCursorLocation(int cursorLoc)

public String getDefaultDatabase()
public void setDefaultDatabase( String db )

public int getIsolationLevel()
public void setIsolationLevel( int level )

public int getMode()
public void setMode( int mode )

public String getProvider()
public void setProvider( String provider )

public int getState()

public String getVersion()

public AdoProperties getProperties()

public com.ms.ado.Errors getErrors()

Events

public void addBeginTransCompleteHandler(ConnectionEventHandler handler)
public void removeBeginTransCompleteHandler(ConnectionEventHandler handler)

public void addCommitTransCompleteHandler(ConnectionEventHandler handler)
public void removeCommitTransCompleteHandler(ConnectionEventHandler handler)

public void addConnectCompleteHandler(ConnectionEventHandler handler)
public void removeConnectCompleteHandler(ConnectionEventHandler handler)

public void addDisconnectHandler(ConnectionEventHandler handler)
public void removeDisconnectHandler(ConnectionEventHandler handler)

public void addExecuteCompleteHandler(ConnectionEventHandler handler)
public void removeExecuteCompleteHandler(ConnectionEventHandler handler)

public void addInfoMessageHandler(ConnectionEventHandler handler)
public void removeInfoMessageHandler(ConnectionEventHandler handler)

public void addRollbackTransCompleteHandler(ConnectionEventHandler handler)
public void removeRollbackTransCompleteHandler(ConnectionEventHandler handler)

public void addWillConnectHandler(ConnectionEventHandler handler)
public void removeWillConnectHandler(ConnectionEventHandler handler)

public void addWillExecuteHandler(ConnectionEventHandler handler)
public void removeWillExecuteHandler(ConnectionEventHandler handler)