Java Doc for Statement.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » client » am » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derby.client.am 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.client.am.Statement

All known Subclasses:   org.apache.derby.client.am.PreparedStatement,  org.apache.derby.client.am.Statement40,
Statement
public class Statement implements java.sql.Statement,StatementCallbackInterface(Code)


Field Summary
final public static  intCLOSE_ALL_RESULTS
    
final public static  intCLOSE_CURRENT_RESULT
    
final public static  intKEEP_CURRENT_RESULT
    
final protected static  StringTIMEOUT_STATEMENT
    
public  Agentagent_
    
public  intautoGeneratedKeys_
    
 java.util.ArrayListbatch_
    
public  CursorcachedCursor_
    
public  CursorcachedSingletonRowData_
    
public  Connectionconnection_
    
public  StringcursorAttributesToSendOnPrepare_
    
 StringcursorName_
    
public  DatabaseMetaDatadatabaseMetaData_
    
protected  booleandoWriteTimeout
    
 booleanescapedProcedureCallWithResult_
    
final static  intexecuteMethod__
    
final static  intexecuteQueryMethod__
    
final static  intexecuteUpdateMethod__
    
public  intfetchDirection_
    
public  intfetchSize_
    
public  String[]generatedKeysColumnNames_
    
public  ResultSetgeneratedKeysResultSet_
    
protected  intindexOfCurrentResultSet_
    
public  booleanisAutoCommittableStatement_
    
final static  intisCall__
    
public  booleanisCallableStatement_
    
 booleanisCatalogQuery_
    
final public static  intisCommitSql__
    
final static  intisDeleteSql__
    
final static  intisInsertSql__
    
protected  booleanisPoolable
    
final static  intisPositionedUpdateDeleteSql__
    
public  booleanisPreparedStatement_
    
final static  intisQuery__
    
final public static  intisRollbackSql__
    
final static  intisUpdateSql__
    
final static  intisUpdate__
    
public  MaterialStatementmaterialStatement_
    
 intmaxFieldSize_
    
 intmaxRows_
    
public  intnumInvisibleRS_
    
 booleanopenOnClient_
    
 booleanopenOnServer_
    
public  PreparedStatementpreparedStatementForAutoGeneratedKeys_
    
public  intresultSetConcurrency_
    
public  intresultSetHoldability_
    
 ResultSet[]resultSetList_
    
public  ColumnMetaDataresultSetMetaData_
    
public  intresultSetType_
    
public  ResultSetresultSet_
    
 intreturnValueFromProcedure_
    
public  Sectionsection_
    
public  CursorsingletonRowData_
    
protected  intsqlMode_
    
public  intsqlUpdateMode_
    
protected  java.util.ArrayListtimeoutArrayList
    
 inttimeout_
    
 intupdateCount_
    

Constructor Summary
public  Statement(Agent agent, Connection connection)
    
public  Statement(Agent agent, Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames)
    

Method Summary
public  voidaccumulateWarning(SqlWarning e)
    
public  voidaddBatch(String sql)
    
 StringcacheCursorAttributesToSendOnPrepare()
    
public  voidcancel()
    
 voidcheckAutoGeneratedKeysParameters()
    
 voidcheckForAppropriateSqlMode(int executeType, int sqlMode)
    
 voidcheckForClosedStatement()
    
protected  voidcheckForDuplicateCursorName()
    
 voidcheckForInvalidBatchedSql(String sql)
    
final protected  voidcheckForStoredProcResultSetCount(int executeType)
     Checks that a stored procedure returns the correct number of result sets given its execute type.
public  voidclearBatch()
    
public  voidclearWarnings()
    
public  voidclearWarningsX()
    
public  voidclose()
    
public  voidcloseX()
     An untraced version of close.
public  voidcompleteExecute(Sqlca sqlca)
    
public  voidcompleteExecuteCall(Sqlca sqlca, Cursor singletonParams, ResultSet[] resultSets)
    
public  voidcompleteExecuteCall(Sqlca sqlca, Cursor singletonParams)
    
public  voidcompleteExecuteCallOpenQuery(Sqlca sqlca, ResultSet resultSet, ColumnMetaData resultSetMetaData, Section generatedSection)
    
public  voidcompleteExecuteImmediate(Sqlca sqlca)
    
public  voidcompleteExecuteSetStatement(Sqlca sqlca)
    
public  voidcompleteLocalCommit(java.util.Iterator listenerIterator)
    
public  voidcompleteLocalRollback(java.util.Iterator listenerIterator)
    
public  voidcompleteOpenQuery(Sqlca sqlca, ResultSet resultSet)
    
public  voidcompletePrepare(Sqlca sqlca)
    
public  voidcompletePrepareDescribeOutput(ColumnMetaData resultSetMetaData, Sqlca sqlca)
    
public  intcompleteSqlca(Sqlca sqlca)
    
protected  StringconstructSelectFromInsertSQL(String sql)
    
 Stringescape(String sql)
    
public  booleanexecute(String sql)
    
public  booleanexecute(String sql, int autoGeneratedKeys)
    
public  booleanexecute(String sql, int columnIndexes)
    
public  booleanexecute(String sql, String columnNames)
    
public  int[]executeBatch()
    
public  java.sql.ResultSetexecuteQuery(String sql)
    
public  intexecuteUpdate(String sql)
    
public  intexecuteUpdate(String sql, int autoGeneratedKeys)
    
public  intexecuteUpdate(String sql, int columnIndexes)
    
public  intexecuteUpdate(String sql, String columnNames)
    
 booleanexecuteX(String sql)
    
 String[]extractCursorNameFromWhereCurrentOf(String sql)
    
protected  voidfinalize()
    
 voidflowExecuteBatch(int[] updateCounts)
    
public  java.sql.ConnectiongetConnection()
    
public  ConnectionCallbackInterfacegetConnectionCallbackInterface()
    
public  intgetFetchDirection()
    
public  intgetFetchSize()
    
public  java.sql.ResultSetgetGeneratedKeys()
    
public  ColumnMetaDatagetGuessedResultSetMetaData()
    
protected  StringgetJdbcStatementInterfaceName()
     Returns the name of the java.sql interface implemented by this class.
public  intgetMaxFieldSize()
    
public  intgetMaxRows()
    
public  booleangetMoreResults()
    
public  booleangetMoreResults(int current)
    
 voidgetPreparedStatementForAutoGeneratedKeys()
    
 StringgetProcedureName(String sql)
    
public  intgetQueryTimeout()
    
public  java.sql.ResultSetgetResultSet()
    
public  intgetResultSetConcurrency()
    
public  intgetResultSetHoldability()
    
public  intgetResultSetType()
    
protected  SqlWarninggetSqlWarnings()
    
public  intgetUpdateCount()
    
public  java.sql.SQLWarninggetWarnings()
    
protected  voidinitResetPreparedStatement()
    
public  booleanisClosed()
     Tell whether the statement has been closed or not. true if closed, false otherwise.
exception:
  SQLException - if a database access error occurs (according tospec).
public  booleanisPoolable()
     Returns the value of the poolable hint, indicating whether pooling is requested.
public  booleanisQueryMode()
    
public  booleanisWrapperFor(Class iface)
     Returns false unless iface is implemented
Parameters:
  iface - a Class defining an interface.
protected  SQLExceptionjdbc3FeatureNotSupported(boolean checkStatement)
    
protected  SQLExceptionjdbc3FeatureNotSupported()
    
public  voidlistenToUnitOfWork()
    
 voidmapCursorNameToResultSet()
    
public  voidmarkAutoCommitted()
     Mark all ResultSets associated with this statement as auto-committed.
 voidmarkClosed()
     This method cleans up client-side resources held by this Statement.
 voidmarkClosed(boolean removeListener)
     This method cleans up client-side resources held by this Statement.
 voidmarkClosedOnServer()
    
 voidmarkPreparedStatementForAutoGeneratedKeysClosed()
    
 voidmarkResultSetsClosed()
     Mark all ResultSets associated with this statement as closed.
 voidmarkResultSetsClosed(boolean removeListener)
     Mark all ResultSets associated with this statement as closed.
 voidparseSqlAndSetSqlModes(String sql)
    
 voidparseStorProcReturnedScrollableRowset()
    
 voidprepareAutoGeneratedKeysStatement()
    
final  voidreadClose(boolean allowAutoCommits)
    
 voidreadCloseResultSets(boolean allowAutoCommits)
    
 voidreadCloseResultSets(int number, boolean allowAutoCommits)
    
public  voidreadExecuteCall()
    
public  voidreadExecuteImmediate()
    
public  voidreadExecuteImmediateForBatch(String sql)
    
public  voidreadOpenQuery()
    
public  voidreadPrepare()
    
 voidreadPrepareAutoGeneratedKeysStatement()
    
public  voidreadPrepareDescribeOutput()
    
public  voidreadSetSpecialRegister()
    
protected  voidremoveClientCursorNameFromCache()
    
public  voidreset(boolean fullReset)
    
 voidresetCursorNameAndRemoveFromWhereCurrentOfMappings()
    
public  voidresetStatement(Agent agent, Connection connection)
    
public  voidresetStatement(Agent agent, Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames)
    
public  voidresultSetCommitting(ResultSet closingRS)
    
public  booleanresultSetCommitting(ResultSet closingRS, boolean writeChain)
     Method that checks to see if any other ResultSets are open.
public  voidsetCursorName(String name)
    
public  voidsetEscapeProcessing(boolean enable)
    
public  voidsetFetchDirection(int direction)
    
public  voidsetFetchSize(int rows)
    
public  voidsetMaxFieldSize(int max)
    
public  voidsetMaxRows(int maxRows)
    
public  voidsetPoolable(boolean poolable)
     Requests that a Statement be pooled or not.
public  voidsetQueryTimeout(int seconds)
    
public  voidsetUpdateCount(int updateCount)
    
protected  voidsetupCursorNameCacheAndMappings()
    
protected  StringsubstituteClientCursorNameWithServerCursorName(String sql, Section section)
    
public static  StringupperCaseProcedureName(String procedureName)
    
final  voidwriteClose(boolean allowAutoCommits)
    
 booleanwriteCloseResultSets(boolean allowAutoCommits)
    
 booleanwriteCloseResultSets(int number, boolean allowAutoCommits)
    
public  voidwriteExecuteCall(boolean outputExpected, String procedureName, Section section, int fetchSize, boolean suppressResultSets, int resultSetType, ColumnMetaData parameterMetaData, Object[] inputs)
    
public  voidwriteExecuteImmediate(String sql, Section section)
    
public  voidwriteOpenQuery(Section section, int fetchSize, int resultSetType)
    
public  voidwritePrepare(String sql, Section section)
    
public  voidwritePrepareDescribeOutput(String sql, Section section)
    
public  voidwriteSetSpecialRegister(java.util.ArrayList sqlsttList)
    

Field Detail
CLOSE_ALL_RESULTS
final public static int CLOSE_ALL_RESULTS(Code)



CLOSE_CURRENT_RESULT
final public static int CLOSE_CURRENT_RESULT(Code)



KEEP_CURRENT_RESULT
final public static int KEEP_CURRENT_RESULT(Code)



TIMEOUT_STATEMENT
final protected static String TIMEOUT_STATEMENT(Code)



agent_
public Agent agent_(Code)



autoGeneratedKeys_
public int autoGeneratedKeys_(Code)



batch_
java.util.ArrayList batch_(Code)



cachedCursor_
public Cursor cachedCursor_(Code)



cachedSingletonRowData_
public Cursor cachedSingletonRowData_(Code)



connection_
public Connection connection_(Code)



cursorAttributesToSendOnPrepare_
public String cursorAttributesToSendOnPrepare_(Code)



cursorName_
String cursorName_(Code)



databaseMetaData_
public DatabaseMetaData databaseMetaData_(Code)



doWriteTimeout
protected boolean doWriteTimeout(Code)



escapedProcedureCallWithResult_
boolean escapedProcedureCallWithResult_(Code)



executeMethod__
final static int executeMethod__(Code)



executeQueryMethod__
final static int executeQueryMethod__(Code)



executeUpdateMethod__
final static int executeUpdateMethod__(Code)



fetchDirection_
public int fetchDirection_(Code)



fetchSize_
public int fetchSize_(Code)



generatedKeysColumnNames_
public String[] generatedKeysColumnNames_(Code)



generatedKeysResultSet_
public ResultSet generatedKeysResultSet_(Code)



indexOfCurrentResultSet_
protected int indexOfCurrentResultSet_(Code)



isAutoCommittableStatement_
public boolean isAutoCommittableStatement_(Code)



isCall__
final static int isCall__(Code)



isCallableStatement_
public boolean isCallableStatement_(Code)



isCatalogQuery_
boolean isCatalogQuery_(Code)



isCommitSql__
final public static int isCommitSql__(Code)



isDeleteSql__
final static int isDeleteSql__(Code)



isInsertSql__
final static int isInsertSql__(Code)



isPoolable
protected boolean isPoolable(Code)



isPositionedUpdateDeleteSql__
final static int isPositionedUpdateDeleteSql__(Code)



isPreparedStatement_
public boolean isPreparedStatement_(Code)



isQuery__
final static int isQuery__(Code)



isRollbackSql__
final public static int isRollbackSql__(Code)



isUpdateSql__
final static int isUpdateSql__(Code)



isUpdate__
final static int isUpdate__(Code)



materialStatement_
public MaterialStatement materialStatement_(Code)



maxFieldSize_
int maxFieldSize_(Code)



maxRows_
int maxRows_(Code)



numInvisibleRS_
public int numInvisibleRS_(Code)



openOnClient_
boolean openOnClient_(Code)



openOnServer_
boolean openOnServer_(Code)



preparedStatementForAutoGeneratedKeys_
public PreparedStatement preparedStatementForAutoGeneratedKeys_(Code)



resultSetConcurrency_
public int resultSetConcurrency_(Code)



resultSetHoldability_
public int resultSetHoldability_(Code)



resultSetList_
ResultSet[] resultSetList_(Code)



resultSetMetaData_
public ColumnMetaData resultSetMetaData_(Code)



resultSetType_
public int resultSetType_(Code)



resultSet_
public ResultSet resultSet_(Code)



returnValueFromProcedure_
int returnValueFromProcedure_(Code)



section_
public Section section_(Code)



singletonRowData_
public Cursor singletonRowData_(Code)



sqlMode_
protected int sqlMode_(Code)



sqlUpdateMode_
public int sqlUpdateMode_(Code)



timeoutArrayList
protected java.util.ArrayList timeoutArrayList(Code)



timeout_
int timeout_(Code)



updateCount_
int updateCount_(Code)




Constructor Detail
Statement
public Statement(Agent agent, Connection connection) throws SqlException(Code)



Statement
public Statement(Agent agent, Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames) throws SqlException(Code)




Method Detail
accumulateWarning
public void accumulateWarning(SqlWarning e)(Code)



addBatch
public void addBatch(String sql) throws SQLException(Code)



cacheCursorAttributesToSendOnPrepare
String cacheCursorAttributesToSendOnPrepare() throws SqlException(Code)



cancel
public void cancel() throws SQLException(Code)



checkAutoGeneratedKeysParameters
void checkAutoGeneratedKeysParameters() throws SqlException(Code)



checkForAppropriateSqlMode
void checkForAppropriateSqlMode(int executeType, int sqlMode) throws SqlException(Code)



checkForClosedStatement
void checkForClosedStatement() throws SqlException(Code)



checkForDuplicateCursorName
protected void checkForDuplicateCursorName() throws SqlException(Code)



checkForInvalidBatchedSql
void checkForInvalidBatchedSql(String sql) throws SqlException(Code)



checkForStoredProcResultSetCount
final protected void checkForStoredProcResultSetCount(int executeType) throws SqlException(Code)
Checks that a stored procedure returns the correct number of result sets given its execute type. If the number is incorrect, make sure the transaction is rolled back when auto commit is enabled.
Parameters:
  executeType - one of executeQueryMethod__,executeUpdateMethod__ and executeMethod__
exception:
  SqlException - if the number of result sets does notmatch the execute type
See Also:   Statement.checkResultSetCount(int)



clearBatch
public void clearBatch() throws SQLException(Code)



clearWarnings
public void clearWarnings() throws SQLException(Code)



clearWarningsX
public void clearWarningsX()(Code)



close
public void close() throws SQLException(Code)



closeX
public void closeX() throws SqlException(Code)
An untraced version of close. This method cleans up client-side resources and also sends commands to network server to perform clean up. This should not be called in the finalizer. Difference between finalize and close is that close method does these things additionally (Changes done as part of DERBY-210): 1) Sends commands to the server to close the result sets. 2) Sends commands to the server to close the result sets of the generated keys query. 3) Sends a commit if autocommit is on and it is appropriate. 4) Explicitly removes the statement from connection_.openStatements_ and CommitAndRollbackListeners_ by passing true to markClosed. We may need to do 1) in finalizer too. This is being tracked in DERBY-1021
throws:
  SqlException -



completeExecute
public void completeExecute(Sqlca sqlca)(Code)



completeExecuteCall
public void completeExecuteCall(Sqlca sqlca, Cursor singletonParams, ResultSet[] resultSets)(Code)



completeExecuteCall
public void completeExecuteCall(Sqlca sqlca, Cursor singletonParams)(Code)



completeExecuteCallOpenQuery
public void completeExecuteCallOpenQuery(Sqlca sqlca, ResultSet resultSet, ColumnMetaData resultSetMetaData, Section generatedSection)(Code)



completeExecuteImmediate
public void completeExecuteImmediate(Sqlca sqlca)(Code)



completeExecuteSetStatement
public void completeExecuteSetStatement(Sqlca sqlca)(Code)



completeLocalCommit
public void completeLocalCommit(java.util.Iterator listenerIterator)(Code)



completeLocalRollback
public void completeLocalRollback(java.util.Iterator listenerIterator)(Code)



completeOpenQuery
public void completeOpenQuery(Sqlca sqlca, ResultSet resultSet)(Code)



completePrepare
public void completePrepare(Sqlca sqlca)(Code)



completePrepareDescribeOutput
public void completePrepareDescribeOutput(ColumnMetaData resultSetMetaData, Sqlca sqlca)(Code)



completeSqlca
public int completeSqlca(Sqlca sqlca)(Code)



constructSelectFromInsertSQL
protected String constructSelectFromInsertSQL(String sql)(Code)



escape
String escape(String sql) throws SqlException(Code)



execute
public boolean execute(String sql) throws SQLException(Code)



execute
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException(Code)



execute
public boolean execute(String sql, int columnIndexes) throws SQLException(Code)



execute
public boolean execute(String sql, String columnNames) throws SQLException(Code)



executeBatch
public int[] executeBatch() throws SQLException, BatchUpdateException(Code)



executeQuery
public java.sql.ResultSet executeQuery(String sql) throws SQLException(Code)



executeUpdate
public int executeUpdate(String sql) throws SQLException(Code)



executeUpdate
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException(Code)



executeUpdate
public int executeUpdate(String sql, int columnIndexes) throws SQLException(Code)



executeUpdate
public int executeUpdate(String sql, String columnNames) throws SQLException(Code)



executeX
boolean executeX(String sql) throws SqlException(Code)



extractCursorNameFromWhereCurrentOf
String[] extractCursorNameFromWhereCurrentOf(String sql)(Code)



finalize
protected void finalize() throws java.lang.Throwable(Code)



flowExecuteBatch
void flowExecuteBatch(int[] updateCounts) throws SqlException, BatchUpdateException(Code)



getConnection
public java.sql.Connection getConnection() throws SQLException(Code)



getConnectionCallbackInterface
public ConnectionCallbackInterface getConnectionCallbackInterface()(Code)



getFetchDirection
public int getFetchDirection() throws SQLException(Code)



getFetchSize
public int getFetchSize() throws SQLException(Code)



getGeneratedKeys
public java.sql.ResultSet getGeneratedKeys() throws SQLException(Code)



getGuessedResultSetMetaData
public ColumnMetaData getGuessedResultSetMetaData()(Code)



getJdbcStatementInterfaceName
protected String getJdbcStatementInterfaceName()(Code)
Returns the name of the java.sql interface implemented by this class. name of java.sql interface



getMaxFieldSize
public int getMaxFieldSize() throws SQLException(Code)



getMaxRows
public int getMaxRows() throws SQLException(Code)



getMoreResults
public boolean getMoreResults() throws SQLException(Code)



getMoreResults
public boolean getMoreResults(int current) throws SQLException(Code)



getPreparedStatementForAutoGeneratedKeys
void getPreparedStatementForAutoGeneratedKeys() throws SqlException(Code)



getProcedureName
String getProcedureName(String sql) throws SqlException(Code)



getQueryTimeout
public int getQueryTimeout() throws SQLException(Code)



getResultSet
public java.sql.ResultSet getResultSet() throws SQLException(Code)



getResultSetConcurrency
public int getResultSetConcurrency() throws SQLException(Code)



getResultSetHoldability
public int getResultSetHoldability() throws SQLException(Code)



getResultSetType
public int getResultSetType() throws SQLException(Code)



getSqlWarnings
protected SqlWarning getSqlWarnings()(Code)



getUpdateCount
public int getUpdateCount() throws SQLException(Code)



getWarnings
public java.sql.SQLWarning getWarnings() throws SQLException(Code)



initResetPreparedStatement
protected void initResetPreparedStatement()(Code)



isClosed
public boolean isClosed() throws SQLException(Code)
Tell whether the statement has been closed or not. true if closed, false otherwise.
exception:
  SQLException - if a database access error occurs (according tospec). Never thrown by this implementation.



isPoolable
public boolean isPoolable() throws SQLException(Code)
Returns the value of the poolable hint, indicating whether pooling is requested. The value of the poolable hint.
throws:
  SQLException - if the Statement has been closed.



isQueryMode
public boolean isQueryMode()(Code)



isWrapperFor
public boolean isWrapperFor(Class iface) throws SQLException(Code)
Returns false unless iface is implemented
Parameters:
  iface - a Class defining an interface. true if this implements the interface or directly or indirectly wraps an object that does.
throws:
  java.sql.SQLException - if an error occurs while determining whether this is a wrapper for an object with the given interface.



jdbc3FeatureNotSupported
protected SQLException jdbc3FeatureNotSupported(boolean checkStatement) throws SQLException(Code)



jdbc3FeatureNotSupported
protected SQLException jdbc3FeatureNotSupported() throws SQLException(Code)



listenToUnitOfWork
public void listenToUnitOfWork()(Code)



mapCursorNameToResultSet
void mapCursorNameToResultSet()(Code)



markAutoCommitted
public void markAutoCommitted()(Code)
Mark all ResultSets associated with this statement as auto-committed.



markClosed
void markClosed()(Code)
This method cleans up client-side resources held by this Statement. The Statement will not be removed from the open statements list and PreparedStatement will also not be removed from the commit and rollback listeners list in org.apache.derby.client.am.Connection. This method is called from: 1. finalize() - For the finaizer to be called, the Statement should not have any references and so it should have been already removed from the lists. 2. org.apache.derby.client.am.Connection#markStatementsClosed This method explicitly removes the Statement from open statements list. 3. To close positioned update statements - These statements are not added to the list of open statements.



markClosed
void markClosed(boolean removeListener)(Code)
This method cleans up client-side resources held by this Statement. If removeListener is true, the Statement is removed from open statements list and PreparedStatement is also removed from commit and rollback listeners list. This is called from the close methods.
Parameters:
  removeListener - if true the Statement will be removedfrom the open statements list and PreparedStatement will also be removedfrom commit and rollback listeners list in org.apache.derby.client.am.Connection.



markClosedOnServer
void markClosedOnServer()(Code)



markPreparedStatementForAutoGeneratedKeysClosed
void markPreparedStatementForAutoGeneratedKeysClosed()(Code)



markResultSetsClosed
void markResultSetsClosed()(Code)
Mark all ResultSets associated with this statement as closed. The ResultSets will not be removed from the commit and rollback listeners list in org.apache.derby.client.am.Connection.



markResultSetsClosed
void markResultSetsClosed(boolean removeListener)(Code)
Mark all ResultSets associated with this statement as closed.
Parameters:
  removeListener - if true the ResultSets will be removedfrom the commit and rollback listeners list inorg.apache.derby.client.am.Connection.



parseSqlAndSetSqlModes
void parseSqlAndSetSqlModes(String sql) throws SqlException(Code)



parseStorProcReturnedScrollableRowset
void parseStorProcReturnedScrollableRowset() throws SqlException(Code)



prepareAutoGeneratedKeysStatement
void prepareAutoGeneratedKeysStatement() throws SqlException(Code)



readClose
final void readClose(boolean allowAutoCommits) throws SqlException(Code)



readCloseResultSets
void readCloseResultSets(boolean allowAutoCommits) throws SqlException(Code)



readCloseResultSets
void readCloseResultSets(int number, boolean allowAutoCommits) throws SqlException(Code)



readExecuteCall
public void readExecuteCall() throws SqlException(Code)



readExecuteImmediate
public void readExecuteImmediate() throws SqlException(Code)



readExecuteImmediateForBatch
public void readExecuteImmediateForBatch(String sql) throws SqlException(Code)



readOpenQuery
public void readOpenQuery() throws SqlException(Code)



readPrepare
public void readPrepare() throws SqlException(Code)



readPrepareAutoGeneratedKeysStatement
void readPrepareAutoGeneratedKeysStatement() throws SqlException(Code)



readPrepareDescribeOutput
public void readPrepareDescribeOutput() throws SqlException(Code)



readSetSpecialRegister
public void readSetSpecialRegister() throws SqlException(Code)



removeClientCursorNameFromCache
protected void removeClientCursorNameFromCache()(Code)



reset
public void reset(boolean fullReset) throws SqlException(Code)



resetCursorNameAndRemoveFromWhereCurrentOfMappings
void resetCursorNameAndRemoveFromWhereCurrentOfMappings()(Code)



resetStatement
public void resetStatement(Agent agent, Connection connection) throws SqlException(Code)



resetStatement
public void resetStatement(Agent agent, Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames) throws SqlException(Code)



resultSetCommitting
public void resultSetCommitting(ResultSet closingRS) throws SqlException(Code)
Convenience method for resultSetCommitting(ResultSet, boolean)
See Also:   Statement.resultSetCommitting(ResultSetboolean)
Parameters:
  closingRS - The ResultSet to be closed
throws:
  SqlException -



resultSetCommitting
public boolean resultSetCommitting(ResultSet closingRS, boolean writeChain) throws SqlException(Code)
Method that checks to see if any other ResultSets are open. If not proceeds with the autocommit.
Parameters:
  closingRS - The ResultSet to be closed
Parameters:
  writeChain - A Boolean indicating whether this methodis part of a chain of write from client to Server
throws:
  SqlException -



setCursorName
public void setCursorName(String name) throws SQLException(Code)



setEscapeProcessing
public void setEscapeProcessing(boolean enable) throws SQLException(Code)



setFetchDirection
public void setFetchDirection(int direction) throws SQLException(Code)



setFetchSize
public void setFetchSize(int rows) throws SQLException(Code)



setMaxFieldSize
public void setMaxFieldSize(int max) throws SQLException(Code)



setMaxRows
public void setMaxRows(int maxRows) throws SQLException(Code)



setPoolable
public void setPoolable(boolean poolable) throws SQLException(Code)
Requests that a Statement be pooled or not.
Parameters:
  poolable - requests that the Statement be pooled if true and not be pooled if false.
throws:
  SQLException - if the Statement has been closed.



setQueryTimeout
public void setQueryTimeout(int seconds) throws SQLException(Code)



setUpdateCount
public void setUpdateCount(int updateCount)(Code)



setupCursorNameCacheAndMappings
protected void setupCursorNameCacheAndMappings()(Code)



substituteClientCursorNameWithServerCursorName
protected String substituteClientCursorNameWithServerCursorName(String sql, Section section) throws SqlException(Code)



upperCaseProcedureName
public static String upperCaseProcedureName(String procedureName) throws SqlException(Code)



writeClose
final void writeClose(boolean allowAutoCommits) throws SqlException(Code)



writeCloseResultSets
boolean writeCloseResultSets(boolean allowAutoCommits) throws SqlException(Code)



writeCloseResultSets
boolean writeCloseResultSets(int number, boolean allowAutoCommits) throws SqlException(Code)



writeExecuteCall
public void writeExecuteCall(boolean outputExpected, String procedureName, Section section, int fetchSize, boolean suppressResultSets, int resultSetType, ColumnMetaData parameterMetaData, Object[] inputs) throws SqlException(Code)



writeExecuteImmediate
public void writeExecuteImmediate(String sql, Section section) throws SqlException(Code)



writeOpenQuery
public void writeOpenQuery(Section section, int fetchSize, int resultSetType) throws SqlException(Code)



writePrepare
public void writePrepare(String sql, Section section) throws SqlException(Code)



writePrepareDescribeOutput
public void writePrepareDescribeOutput(String sql, Section section) throws SqlException(Code)



writeSetSpecialRegister
public void writeSetSpecialRegister(java.util.ArrayList sqlsttList) throws SqlException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.