com.sybase.jdbc2.jdbc
Class SybStatement

java.lang.Object
  |
  +--com.sybase.jdbc2.jdbc.SybStatement
Direct Known Subclasses:
SybPreparedStatement

public class SybStatement
extends Object
implements SybStatement


Field Summary
 protected boolean_allowsOutputParms
           
 protected java.util.Vector_batchCmds
           
 protected int_batchCmdsCount
           
 protected boolean_closing
           
 protected com.sybase.jdbc2.jdbc.ProtocolContext_context
           
 protected int_currentQT
           
 private int_currentResult
           
 protected com.sybase.jdbc2.jdbc.SybResultSet_currentRS
           
 protected com.sybase.jdbc2.jdbc.Cursor_cursor
           
 protected com.sybase.jdbc2.jdbc.SybDatabaseMetaData_dbmda
           
 protected boolean_doEscapes
           
 protected boolean_doneinproc
           
 private int_fieldsize
           
 protected boolean_hasReturn
           
 protected com.sybase.jdbc2.jdbc.Protocol_protocol
           
 protected com.sybase.jdbc2.jdbc.ResultGetter_resultGetter
           
 protected boolean_returnHasBeenRegistered
           
 private int_rowcount
           
 protected java.lang.String_rpcName
           
 protected int_rsConcur
           
 protected int_rsFetchDir
           
 protected int_rsType
           
 protected int_setEnd
           
 protected int_setStart
           
 protected int_state
           
 protected com.sybase.jdbc2.utils.CacheManager_statementManager
           
 protected java.lang.String_table
           
 protected int_type
           
 private boolean_validRowcount
           
 private java.sql.SQLWarning_warning
           
 protected final static intCALL
           
 protected final static java.lang.StringCALL_DELIMS
           
 protected final static intDELETE
           
 protected final static intMANYRESULTS
           
 protected final static intNORESULTS
           
 protected final static intONERESULT
           
 protected final static intOTHER
           
 protected final static intSELECT
           
 protected final static intUPDATE
           
 protected final static intVALID
           

Constructor Summary
 protected SybStatement(com.sybase.jdbc2.jdbc.ProtocolContext )
           

Method Summary
 voidaddBatch(java.lang.String )
           
 protected int[]batchLoop(com.sybase.jdbc2.jdbc.ParamManager )
           
 protected java.lang.StringbatchToString()
           
 voidcancel()
           
 protected booleancheckBatch()
           
 protected voidcheckCursor(boolean )
           
 protected voidcheckDead()
           
 protected voidcheckStatement(boolean )
           
 voidclearBatch()
           
 voidclearWarnings()
           
 voidclose()
           
 protected voiddeallocateDynamic()
           
 private voiddoCancel(boolean , boolean )
           
 protected java.lang.StringdoEscapeProcessing(java.lang.String )
           
 booleanexecute(java.lang.String )
           
 protected booleanexecute(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )
           
 int[]executeBatch()
           
 protected int[]executeBatch(com.sybase.jdbc2.jdbc.ParamManager )
           
 protected booleanexecuteLoop()
           
 java.sql.ResultSetexecuteQuery(java.lang.String )
           
 protected java.sql.ResultSetexecuteQuery(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )
           
 intexecuteUpdate(java.lang.String )
           
 protected intexecuteUpdate(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )
           
 java.sql.ConnectiongetConnection()
           
 intgetFetchDirection()
           
 intgetFetchSize()
           
 intgetMaxFieldSize()
           
 intgetMaxRows()
           
 com.sybase.jdbcx.SybMessageHandlergetMessageHandler()
           
 booleangetMoreResults()
           
 intgetQueryTimeout()
           
 java.sql.ResultSetgetResultSet()
           
 intgetResultSetConcurrency()
           
 intgetResultSetType()
           
 com.sybase.jdbcx.SybMessageHandlergetSybMessageHandler()
           
 intgetUpdateCount()
           
 java.sql.SQLWarninggetWarnings()
           
 protected java.lang.StringhandleCallBody(java.lang.String )
           
 protected voidhandleParam(com.sybase.jdbc2.jdbc.ParamManager )
           
 protected voidhandleSQLE(java.sql.SQLException )
           
 protected intnextResult()
           
 protected intnextResult(com.sybase.jdbc2.jdbc.ParamManager )
           
 protected java.lang.StringprocessEscapes(java.lang.String )
           
 protected java.sql.ResultSetqueryLoop()
           
 private voidresetRowCount()
           
 protected int[]sendBatch(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )
           
 protected booleansendQuery(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )
           
 voidsetCursorName(java.lang.String )
           
 voidsetEscapeProcessing(boolean )
           
 voidsetFetchDirection(int )
           
 voidsetFetchSize(int )
           
 voidsetMaxFieldSize(int )
           
 voidsetMaxRows(int )
           
 voidsetQueryTimeout(int )
           
 protected voidsetResultSetParams(int , int )
           
 protected voidsetRowCount(int )
           
 voidsetSybMessageHandler(com.sybase.jdbcx.SybMessageHandler )
           
 protected intupdateLoop()
           

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

_allowsOutputParms

protected boolean _allowsOutputParms

_batchCmds

protected java.util.Vector _batchCmds

_batchCmdsCount

protected int _batchCmdsCount

_closing

protected boolean _closing

_context

protected com.sybase.jdbc2.jdbc.ProtocolContext _context

_currentQT

protected int _currentQT

_currentResult

private int _currentResult

_currentRS

protected com.sybase.jdbc2.jdbc.SybResultSet _currentRS

_cursor

protected com.sybase.jdbc2.jdbc.Cursor _cursor

_dbmda

protected com.sybase.jdbc2.jdbc.SybDatabaseMetaData _dbmda

_doEscapes

protected boolean _doEscapes

_doneinproc

protected boolean _doneinproc

_fieldsize

private int _fieldsize

_hasReturn

protected boolean _hasReturn

_protocol

protected com.sybase.jdbc2.jdbc.Protocol _protocol

_resultGetter

protected com.sybase.jdbc2.jdbc.ResultGetter _resultGetter

_returnHasBeenRegistered

protected boolean _returnHasBeenRegistered

_rowcount

private int _rowcount

_rpcName

protected java.lang.String _rpcName

_rsConcur

protected int _rsConcur

_rsFetchDir

protected int _rsFetchDir

_rsType

protected int _rsType

_setEnd

protected int _setEnd

_setStart

protected int _setStart

_state

protected int _state

_statementManager

protected com.sybase.jdbc2.utils.CacheManager _statementManager

_table

protected java.lang.String _table

_type

protected int _type

_validRowcount

private boolean _validRowcount

_warning

private java.sql.SQLWarning _warning

CALL

protected final static int CALL

CALL_DELIMS

protected final static java.lang.String CALL_DELIMS

DELETE

protected final static int DELETE

MANYRESULTS

protected final static int MANYRESULTS

NORESULTS

protected final static int NORESULTS

ONERESULT

protected final static int ONERESULT

OTHER

protected final static int OTHER

SELECT

protected final static int SELECT

UPDATE

protected final static int UPDATE

VALID

protected final static int VALID
Constructor Detail

SybStatement

protected SybStatement(com.sybase.jdbc2.jdbc.ProtocolContext )
Method Detail

addBatch

public void addBatch(java.lang.String )

batchLoop

protected int[] batchLoop(com.sybase.jdbc2.jdbc.ParamManager )

batchToString

protected java.lang.String batchToString()

cancel

public void cancel()

checkBatch

protected boolean checkBatch()

checkCursor

protected void checkCursor(boolean )

checkDead

protected void checkDead()

checkStatement

protected void checkStatement(boolean )

clearBatch

public void clearBatch()

clearWarnings

public void clearWarnings()

close

public void close()

deallocateDynamic

protected void deallocateDynamic()

doCancel

private void doCancel(boolean , boolean )

doEscapeProcessing

protected java.lang.String doEscapeProcessing(java.lang.String )

execute

public boolean execute(java.lang.String )

execute

protected boolean execute(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )

executeBatch

public int[] executeBatch()

executeBatch

protected int[] executeBatch(com.sybase.jdbc2.jdbc.ParamManager )

executeLoop

protected boolean executeLoop()

executeQuery

public java.sql.ResultSet executeQuery(java.lang.String )

executeQuery

protected java.sql.ResultSet executeQuery(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )

executeUpdate

public int executeUpdate(java.lang.String )

executeUpdate

protected int executeUpdate(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )

getConnection

public java.sql.Connection getConnection()

getFetchDirection

public int getFetchDirection()

getFetchSize

public int getFetchSize()

getMaxFieldSize

public int getMaxFieldSize()

getMaxRows

public int getMaxRows()

getMessageHandler

public com.sybase.jdbcx.SybMessageHandler getMessageHandler()

getMoreResults

public boolean getMoreResults()

getQueryTimeout

public int getQueryTimeout()

getResultSet

public java.sql.ResultSet getResultSet()

getResultSetConcurrency

public int getResultSetConcurrency()

getResultSetType

public int getResultSetType()

getSybMessageHandler

public com.sybase.jdbcx.SybMessageHandler getSybMessageHandler()

getUpdateCount

public int getUpdateCount()

getWarnings

public java.sql.SQLWarning getWarnings()

handleCallBody

protected java.lang.String handleCallBody(java.lang.String )

handleParam

protected void handleParam(com.sybase.jdbc2.jdbc.ParamManager )

handleSQLE

protected void handleSQLE(java.sql.SQLException )

nextResult

protected int nextResult()

nextResult

protected int nextResult(com.sybase.jdbc2.jdbc.ParamManager )

processEscapes

protected java.lang.String processEscapes(java.lang.String )

queryLoop

protected java.sql.ResultSet queryLoop()

resetRowCount

private void resetRowCount()

sendBatch

protected int[] sendBatch(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )

sendQuery

protected boolean sendQuery(java.lang.String , com.sybase.jdbc2.jdbc.ParamManager )

setCursorName

public void setCursorName(java.lang.String )

setEscapeProcessing

public void setEscapeProcessing(boolean )

setFetchDirection

public void setFetchDirection(int )

setFetchSize

public void setFetchSize(int )

setMaxFieldSize

public void setMaxFieldSize(int )

setMaxRows

public void setMaxRows(int )

setQueryTimeout

public void setQueryTimeout(int )

setResultSetParams

protected void setResultSetParams(int , int )

setRowCount

protected void setRowCount(int )

setSybMessageHandler

public void setSybMessageHandler(com.sybase.jdbcx.SybMessageHandler )

updateLoop

protected int updateLoop()