Package org.compiere.util
Class CStatementVO
- java.lang.Object
-
- org.compiere.util.CStatementVO
-
- All Implemented Interfaces:
Serializable
public class CStatementVO extends Object implements Serializable
Adempiere Statement Value Object- Version:
- $Id: CStatementVO.java,v 1.2 2006/07/30 00:54:35 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CStatementVO(int resultSetType, int resultSetConcurrency)
VO ConstructorCStatementVO(int resultSetType, int resultSetConcurrency, String sql)
VO Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getResultSetConcurrency()
Get ResultSet Concurrencyint
getResultSetType()
Get ResultSet TypeString
getSql()
Get SQLString
getTrxName()
void
setResultSetConcurrency(int resultSetConcurrency)
Set ResultSet Concurrencyvoid
setResultSetType(int resultSetType)
Set ResultSet Typevoid
setSql(String sql)
Set SQL.void
setTrxName(String trxName)
Set transaction nameString
toString()
String representation
-
-
-
Constructor Detail
-
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
public CStatementVO(int resultSetType, int resultSetConcurrency, String sql)
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 Detail
-
toString
public String toString()
String representation
-
getSql
public String getSql()
Get SQL- Returns:
- sql
-
setSql
public void setSql(String sql)
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
public String getTrxName()
- Returns:
- transaction name
-
setTrxName
public void setTrxName(String trxName)
Set transaction name- Parameters:
trxName
-
-
-