|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.util.CStatement
public class CStatement
Adempiere Statement
| Field Summary | |
|---|---|
protected ExecuteResult |
executeResult
Object to hold remote execute result |
protected CLogger |
log
Logger |
protected Connection |
m_conn
|
protected int |
p_remoteErrors
Remote Errors |
protected Statement |
p_stmt
Used if local |
protected CStatementVO |
p_vo
Value Object |
| 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 |
| Constructor Summary | |
|---|---|
protected |
CStatement()
Minimum Constructor for sub classes |
|
CStatement(CStatementVO vo)
Remote Constructor |
|
CStatement(int resultSetType,
int resultSetConcurrency,
String trxName)
Prepared Statement Constructor |
| Method Summary | ||
|---|---|---|
void |
addBatch(String sql)
Add Batch |
|
void |
cancel()
Method cancel |
|
void |
clearBatch()
Method clearBatch |
|
void |
clearWarnings()
Method clearWarnings |
|
void |
close()
Close |
|
void |
commit()
Commit (if local) |
|
boolean |
execute(String sql0)
Method execute |
|
boolean |
execute(String sql0,
int autoGeneratedKeys)
Method execute |
|
boolean |
execute(String sql0,
int[] columnIndexes)
Method execute |
|
boolean |
execute(String sql0,
String[] columnNames)
Method execute |
|
int[] |
executeBatch()
Method executeBatch |
|
ResultSet |
executeQuery(String sql0)
Execute Query |
|
int |
executeUpdate(String sql0)
Execute Update |
|
int |
executeUpdate(String sql0,
int autoGeneratedKeys)
Method executeUpdate |
|
int |
executeUpdate(String sql0,
int[] columnIndexes)
Method executeUpdate |
|
int |
executeUpdate(String sql0,
String[] columnNames)
Method executeUpdate |
|
protected void |
finalize()
|
|
Connection |
getConnection()
Get Connection |
|
int |
getFetchDirection()
Method getFetchDirection |
|
int |
getFetchSize()
Method getFetchSize |
|
ResultSet |
getGeneratedKeys()
Method getGeneratedKeys |
|
int |
getMaxFieldSize()
Get Max Field Size |
|
int |
getMaxRows()
Method getMaxRows |
|
boolean |
getMoreResults()
Method getMoreResults |
|
boolean |
getMoreResults(int current)
Method getMoreResults |
|
int |
getQueryTimeout()
Method getQueryTimeout |
|
ResultSet |
getResultSet()
Method getResultSet |
|
int |
getResultSetConcurrency()
Method getResultSetConcurrency |
|
int |
getResultSetHoldability()
Method getResultSetHoldability |
|
int |
getResultSetType()
Method getResultSetType |
|
RowSet |
getRowSet()
Execute Query |
|
String |
getSql()
Get Sql |
|
int |
getUpdateCount()
Method getUpdateCount |
|
SQLWarning |
getWarnings()
Method getWarnings |
|
protected void |
init()
Initialise the statement wrapper object |
|
boolean |
isClosed()
|
|
boolean |
isPoolable()
|
|
boolean |
isWrapperFor(Class c)
|
|
protected RowSet |
local_getRowSet()
Get Result as RowSet for Remote. |
|
protected boolean |
remote_execute()
|
|
void |
setCursorName(String name)
Method setCursorName |
|
void |
setEscapeProcessing(boolean enable)
Method setEscapeProcessing |
|
void |
setFetchDirection(int direction)
Method setFetchDirection |
|
void |
setFetchSize(int rows)
Method setFetchSize |
|
void |
setMaxFieldSize(int max)
Method setMaxFieldSize |
|
void |
setMaxRows(int max)
Method setMaxRows |
|
void |
setPoolable(boolean a)
|
|
void |
setQueryTimeout(int seconds)
Method setQueryTimeout |
|
|
unwrap(Class<T> iface)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Connection m_conn
protected transient CLogger log
protected transient Statement p_stmt
protected CStatementVO p_vo
protected int p_remoteErrors
protected ExecuteResult executeResult
| Constructor Detail |
|---|
public CStatement(int resultSetType,
int resultSetConcurrency,
String trxName)
resultSetType - - ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.TYPE_SCROLL_SENSITIVEresultSetConcurrency - - ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLEtrxName - transaction name or nullprotected CStatement()
public CStatement(CStatementVO vo)
vo - value object| Method Detail |
|---|
protected void init()
public ResultSet executeQuery(String sql0)
throws SQLException
executeQuery in interface Statementsql0 - unconverted SQL to execute
SQLExceptionStatement.executeQuery(String)
public int executeUpdate(String sql0)
throws SQLException
executeUpdate in interface Statementsql0 - unconverted sql
SQLExceptionStatement.executeUpdate(String)public String getSql()
public Connection getConnection()
throws SQLException
getConnection in interface StatementSQLExceptionStatement.getConnection()
public void commit()
throws SQLException
SQLException
public int executeUpdate(String sql0,
int autoGeneratedKeys)
throws SQLException
executeUpdate in interface Statementsql0 - StringautoGeneratedKeys - int
SQLExceptionStatement.executeUpdate(String, int)
public int executeUpdate(String sql0,
int[] columnIndexes)
throws SQLException
executeUpdate in interface Statementsql0 - StringcolumnIndexes - int[]
SQLExceptionStatement.executeUpdate(String, int[])
public int executeUpdate(String sql0,
String[] columnNames)
throws SQLException
executeUpdate in interface Statementsql0 - StringcolumnNames - String[]
SQLExceptionStatement.executeUpdate(String, String[])
public boolean execute(String sql0)
throws SQLException
execute in interface Statementsql0 - String
SQLExceptionStatement.execute(String)
public boolean execute(String sql0,
int autoGeneratedKeys)
throws SQLException
execute in interface Statementsql0 - StringautoGeneratedKeys - int
SQLExceptionStatement.execute(String, int)
public boolean execute(String sql0,
int[] columnIndexes)
throws SQLException
execute in interface Statementsql0 - StringcolumnIndexes - int[]
SQLExceptionStatement.execute(String, int[])
public boolean execute(String sql0,
String[] columnNames)
throws SQLException
execute in interface Statementsql0 - StringcolumnNames - String[]
SQLExceptionStatement.execute(String, String[])
public int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLExceptionStatement.getMaxFieldSize()
public void setMaxFieldSize(int max)
throws SQLException
setMaxFieldSize in interface Statementmax - int
SQLExceptionStatement.setMaxFieldSize(int)
public int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLExceptionStatement.getMaxRows()
public void setMaxRows(int max)
throws SQLException
setMaxRows in interface Statementmax - int
SQLExceptionStatement.setMaxRows(int)
public void addBatch(String sql)
throws SQLException
addBatch in interface Statementsql - sql
SQLExceptionStatement.addBatch(String)
public void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionStatement.clearBatch()
public int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionStatement.executeBatch()
public boolean getMoreResults(int current)
throws SQLException
getMoreResults in interface Statementcurrent - int
SQLExceptionStatement.getMoreResults(int)
public ResultSet getGeneratedKeys()
throws SQLException
getGeneratedKeys in interface StatementSQLExceptionStatement.getGeneratedKeys()
public int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLExceptionStatement.getResultSetHoldability()
public void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing in interface Statementenable - boolean
SQLExceptionStatement.setEscapeProcessing(boolean)
public int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLExceptionStatement.getQueryTimeout()
public void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface Statementseconds - int
SQLExceptionStatement.setQueryTimeout(int)
public void cancel()
throws SQLException
cancel in interface StatementSQLExceptionStatement.cancel()
public SQLWarning getWarnings()
throws SQLException
getWarnings in interface StatementSQLExceptionStatement.getWarnings()
public void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLExceptionStatement.clearWarnings()
public void setCursorName(String name)
throws SQLException
setCursorName in interface Statementname - String
SQLExceptionStatement.setCursorName(String)
public ResultSet getResultSet()
throws SQLException
getResultSet in interface StatementSQLExceptionStatement.getResultSet()
public int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionStatement.getUpdateCount()
public boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptionStatement.getMoreResults()
public void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface Statementdirection - int
SQLExceptionStatement.setFetchDirection(int)
public int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLExceptionStatement.getFetchDirection()
public void setFetchSize(int rows)
throws SQLException
setFetchSize in interface Statementrows - int
SQLExceptionStatement.setFetchSize(int)
public int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLExceptionStatement.getFetchSize()
public int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLExceptionStatement.getResultSetConcurrency()
public int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLExceptionStatement.getResultSetType()
public void close()
throws SQLException
close in interface StatementSQLExceptionStatement.close()
protected boolean remote_execute()
throws SQLException
SQLExceptionpublic RowSet getRowSet()
SQLExceptionPreparedStatement.executeQuery()protected RowSet local_getRowSet()
public boolean isPoolable()
throws SQLException
isPoolable in interface StatementSQLException
public void setPoolable(boolean a)
throws SQLException
setPoolable in interface StatementSQLException
public boolean isClosed()
throws SQLException
isClosed in interface StatementSQLException
public boolean isWrapperFor(Class c)
throws SQLException
isWrapperFor in interface WrapperSQLException
public <T> T unwrap(Class<T> iface)
throws SQLException
unwrap in interface WrapperSQLException
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||