Package org.compiere.util
Class CStatementVO
java.lang.Object
org.compiere.util.CStatementVO
- All Implemented Interfaces:
Serializable
Statement Value Object for statement proxy.
- Version:
- $Id: CStatementVO.java,v 1.2 2006/07/30 00:54:35 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
Constructor Summary
ConstructorDescriptionCStatementVO
(int resultSetType, int resultSetConcurrency) VO ConstructorCStatementVO
(int resultSetType, int resultSetConcurrency, String sql) VO Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
Get ResultSet Concurrencyint
Get ResultSet TypegetSql()
Get SQLvoid
setResultSetConcurrency
(int resultSetConcurrency) Set ResultSet Concurrencyvoid
setResultSetType
(int resultSetType) Set ResultSet Typevoid
Set SQL.void
setTrxName
(String trxName) Set transaction nametoString()
String representation
-
Constructor Details
-
CStatementVO
public CStatementVO(int resultSetType, int resultSetConcurrency) VO Constructor- Parameters:
resultSetType
- - ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.TYPE_SCROLL_SENSITIVEresultSetConcurrency
- - ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE
-
CStatementVO
VO Constructor- Parameters:
resultSetType
- - ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.TYPE_SCROLL_SENSITIVEresultSetConcurrency
- - ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLEsql
- sql
-
-
Method Details
-
toString
String representation -
getSql
Get SQL- Returns:
- sql
-
setSql
Set SQL. Replace ROWID with TRIM(ROWID) for remote SQL to convert into String as ROWID is not serialized- Parameters:
sql
- sql
-
getResultSetConcurrency
public int getResultSetConcurrency()Get ResultSet Concurrency- Returns:
- rs concurrency
-
getResultSetType
public int getResultSetType()Get ResultSet Type- Returns:
- rs type
-
setResultSetType
public void setResultSetType(int resultSetType) Set ResultSet Type- Parameters:
resultSetType
- type
-
setResultSetConcurrency
public void setResultSetConcurrency(int resultSetConcurrency) Set ResultSet Concurrency- Parameters:
resultSetConcurrency
- concurrency
-
getTrxName
- Returns:
- transaction name
-
setTrxName
Set transaction name- Parameters:
trxName
-
-