Package org.compiere.util
Interface CStatement
-
- All Superinterfaces:
AutoCloseable,Statement,Wrapper
- All Known Subinterfaces:
CCallableStatement,CPreparedStatement
public interface CStatement extends Statement
Interface to wrap and extend Statement- Author:
- Low Heng Sin
-
-
Field Summary
-
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcommit()voidfinalize()don't call this directly, invoke by finalizer threadRowSetgetRowSet()Execute QueryStringgetSql()Get SqlbooleanisClosed()-
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
-
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
Method Detail
-
getSql
String getSql()
Get Sql- Returns:
- sql
-
getRowSet
RowSet getRowSet()
Execute Query- Returns:
- ResultSet or RowSet
- Throws:
SQLException- See Also:
PreparedStatement.executeQuery()
-
isClosed
boolean isClosed() throws SQLException- Specified by:
isClosedin interfaceStatement- Returns:
- boolean
- Throws:
SQLException
-
commit
void commit() throws SQLException- Throws:
SQLException
-
-