/*
* $Log$
*
* DO NOT CHANGE THIS FILE or CHANGE IT WITH CARE!!!
* FILE GENERATED BY Gaud ( version 1.4 - build (build 376)
*
* on Wed Apr 14 18:19:19 WEST 2010
*
*
*
*/
package com.m16e.mpbiz.tables;
import java.io.*;
import java.math.*;
import java.sql.*;
import java.text.*;
import java.util.*;
import com.m16e.tools.*;
import com.m16e.tools.db.*;
import com.m16e.tools.xgm.*;
import com.m16e.tools.xml.*;
import java.math.BigDecimal;
import org.apache.log4j.Logger;
////////////////////////////////////////////////////////////
public class DbDistributionListDocs
extends DbTab
implements DbTableInterface
{
static Logger logger = Logger.getLogger( DbDistributionListDocs.class );
public final static String XGM_FORM_DISTRIBUTION_LIST_DOCS =
"xgm-form-distribution-list-docs.xml";
public final static String XGM_FORM_DISTRIBUTION_LIST_DOCS_FRAME =
"form-distribution-list-docs-frame";
public final static String XGM_LIST_DISTRIBUTION_LIST_DOCS =
"xgm-list-distribution-list-docs.xml";
public final static String XGM_LIST_DISTRIBUTION_LIST_DOCS_FRAME =
"list-distribution-list-docs-frame";
public final static String T_NAME = "distribution_list_docs";
public final static String[] FIELDS =
{ "patient_invoice_tent_id",
"patient_invoice_tdoc_id",
"patient_invoice_id",
"patient_invoice_lin_id",
"dld_id",
"dl_ent_doc_type_id",
"other_tipo_ent_id",
"other_tipo_doc_id",
"other_doc_id",
"amount",
"pending" };
public final static int PATIENT_INVOICE_TENT_ID = 0;
public final static int PATIENT_INVOICE_TDOC_ID = 1;
public final static int PATIENT_INVOICE_ID = 2;
public final static int PATIENT_INVOICE_LIN_ID = 3;
public final static int DLD_ID = 4;
public final static int DL_ENT_DOC_TYPE_ID = 5;
public final static int OTHER_TIPO_ENT_ID = 6;
public final static int OTHER_TIPO_DOC_ID = 7;
public final static int OTHER_DOC_ID = 8;
public final static int AMOUNT = 9;
public final static int PENDING = 10;
public final static String FN_PATIENT_INVOICE_TENT_ID = "patient_invoice_tent_id";
public final static String FN_PATIENT_INVOICE_TDOC_ID = "patient_invoice_tdoc_id";
public final static String FN_PATIENT_INVOICE_ID = "patient_invoice_id";
public final static String FN_PATIENT_INVOICE_LIN_ID = "patient_invoice_lin_id";
public final static String FN_DLD_ID = "dld_id";
public final static String FN_DL_ENT_DOC_TYPE_ID = "dl_ent_doc_type_id";
public final static String FN_OTHER_TIPO_ENT_ID = "other_tipo_ent_id";
public final static String FN_OTHER_TIPO_DOC_ID = "other_tipo_doc_id";
public final static String FN_OTHER_DOC_ID = "other_doc_id";
public final static String FN_AMOUNT = "amount";
public final static String FN_PENDING = "pending";
XmlTreeNode xtnTabLayout = null;
XmlTreeNode xtnFormLayout = null;
////////////////////////////////////////////////////////////
public DbDistributionListDocs()
throws SQLException
{
super( T_NAME );
setDataModel( getDataModel() );
}
////////////////////////////////////////////////////////////
public DbDistributionListDocs( ResultSet rs )
throws SQLException
{
this();
setTuple( rs );
}
////////////////////////////////////////////////////////////
public DbDistributionListDocs( Tuple t )
throws SQLException
{
this();
setTuple( t );
}
////////////////////////////////////////////////////////////
public static DbDistributionListDocs getTable( Object... pkey )
throws SQLException, MpToolsException
{
DbDistributionListDocs table = new DbDistributionListDocs();
java.util.List<Integer> lstPK = table.getPrimaryKey();
int i = 0;
for( Object o : pkey )
{
table.setValue( lstPK.get( i++ ), o );
}
if( !table.getById() )
{
table = null;
}
return table;
}
////////////////////////////////////////////////////////////
public static DbDistributionListDocs getSingleRecord(
String where, Object... args )
throws SQLException, DatabaseException
{
DbDistributionListDocs obj = new DbDistributionListDocs();
StringBuffer select = new StringBuffer();
select.append( "select * from " + DbDistributionListDocs.T_NAME );
if( where != null && where.trim().length() > 0 )
{
select.append( " where " + where );
}
int i = 1;
PreparedStatement ps =
MpAppContext.getInstance().getDatabase().getPreparedStatement( select.toString() );
for( Object arg : args )
{
ps.setObject( i++, arg );
}
if( logger.isTraceEnabled() )
{
logger.trace( "query: \n" + ps.toString() );
}
ResultSet rs = ps.executeQuery();
if( rs.next() )
obj = new DbDistributionListDocs( rs );
else
obj = null;
rs.close();
ps.close();
return obj;
}
////////////////////////////////////////////////////////////
public static java.util.List<DbDistributionListDocs> getList(
String where, String order, Object... args )
throws SQLException, DatabaseException
{
DbDistributionListDocs obj = new DbDistributionListDocs();
java.util.List<Tuple> lst =
obj.selectWithArgs( false, where, order, args );
java.util.List<DbDistributionListDocs> lstObj = new Vector<DbDistributionListDocs>( DbWorkingTable.ARR_INIT_CAP, DbWorkingTable.ARR_CAP_INCR );
for( Tuple t : lst )
{
obj = new DbDistributionListDocs();
obj.setTuple( t );
lstObj.add( obj );
}
return lstObj;
}
////////////////////////////////////////////////////////////
public static java.util.List<DbDistributionListDocs> getList(
boolean validateMaxRows, String where, String order, Object... args )
throws SQLException, DatabaseException
{
DbDistributionListDocs obj = new DbDistributionListDocs();
java.util.List<Tuple> lst =
obj.selectWithArgs( validateMaxRows, where, order, args );
java.util.List<DbDistributionListDocs> lstObj = new Vector<DbDistributionListDocs>( DbWorkingTable.ARR_INIT_CAP, DbWorkingTable.ARR_CAP_INCR );
for( Tuple t : lst )
{
obj = new DbDistributionListDocs();
obj.setTuple( t );
lstObj.add( obj );
}
return lstObj;
}
////////////////////////////////////////////////////////////
public TupleDataModel getDataModel()
{
java.util.List<TupleColDataModel> tcdm = new Vector<TupleColDataModel>( 10, 10 );
for( int f = 0; f < FIELDS.length; f++ )
{
DbField dbField = super.getField( f );
int len = dbField.getTotalLen();
switch( dbField.getDbFieldType() )
{
case INT:
len = 8;
break;
case DOUBLE:
len = 15;
break;
default:
if( len > 40 )
len = 40;
break;
}
tcdm.add( new TupleColDataModel( dbField ) );
}
TupleDataModel tdm =
new TupleDataModel( getDbTable(), "DbDistributionListDocs.class", tcdm );
return tdm;
}
////////////////////////////////////////////////////////////
public DbTableInterface createTab( String tableName, ResultSet rs)
throws SQLException
{
DbDistributionListDocs dbDistributionListDocs = new DbDistributionListDocs( rs );
return dbDistributionListDocs;
}
////////////////////////////////////////////////////////////
public XmlTreeNode getTabLayout()
throws XgmException
{
if( xtnTabLayout == null )
{
try
{
String s = XgmFactory.getInstance().readLayout( XGM_FORM_DISTRIBUTION_LIST_DOCS );
xtnFormLayout = new XmlTreeNode();
xtnFormLayout.fromXml( s );
s = XgmFactory.getInstance().readLayout( XGM_LIST_DISTRIBUTION_LIST_DOCS );
xtnTabLayout = new XmlTreeNode();
xtnTabLayout.fromXml( s );
}
catch( Exception e )
{
String msg = e.getLocalizedMessage();
logger.error( e.getMessage(), e );
throw new XgmException( XgmException.IO_ERROR, e.getMessage() );
}
}
return xtnTabLayout;
}
////////////////////////////////////////////////////////////
public XmlTreeNode getFormLayout()
throws XgmException
{
if( xtnFormLayout == null )
{
try
{
String s = XgmFactory.getInstance().readLayout( XGM_FORM_DISTRIBUTION_LIST_DOCS );
xtnFormLayout = new XmlTreeNode();
xtnFormLayout.fromXml( s );
s = XgmFactory.getInstance().readLayout( XGM_FORM_DISTRIBUTION_LIST_DOCS );
xtnFormLayout = new XmlTreeNode();
xtnFormLayout.fromXml( s );
}
catch( Exception e )
{
String msg = e.getLocalizedMessage();
logger.error( e.getMessage(), e );
throw new XgmException( XgmException.IO_ERROR, e.getMessage() );
}
}
return xtnFormLayout;
}
////////////////////////////////////////////////////////////
public String getTabLayoutFilename()
{
return XGM_LIST_DISTRIBUTION_LIST_DOCS;
}
////////////////////////////////////////////////////////////
public String getFormLayoutFilename()
{
return XGM_FORM_DISTRIBUTION_LIST_DOCS;
}
////////////////////////////////////////////////////////////
public boolean getById()
throws SQLException
{
Database db = MpAppContext.getInstance().getDatabase();
Tuple tuple = getTuple();
java.util.List<Integer> kFields = getPrimaryKey();
int nCols = getFieldCount();
PreparedStatement ps =
db.getPreparedStatement(
"select * from distribution_list_docs where patient_invoice_tent_id = ? and patient_invoice_tdoc_id = ? and patient_invoice_id = ? and patient_invoice_lin_id = ? and dld_id = ?" );
ps.setObject( 1, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 2, tuple.get( kFields.get( 1 ) ) );
ps.setObject( 3, tuple.get( kFields.get( 2 ) ) );
ps.setObject( 4, tuple.get( kFields.get( 3 ) ) );
ps.setObject( 5, tuple.get( kFields.get( 4 ) ) );
if( logger.isTraceEnabled() )
{
logger.trace( "query: \n" + ps.toString() );
}
boolean found = false;
ResultSet rs = ps.executeQuery();
if ( rs.next() )
{
found = true;
for( int f = 0; f < nCols; f++ )
{
Object o = rs.getObject( f + 1 );
if( o instanceof String )
o = ((String) o).trim();
tuple.setAll( f, o );
}
}
rs.close();
ps.close();
return found;
}
////////////////////////////////////////////////////////////
public static DbDistributionListDocs getById(
Integer patientInvoiceTentId,
Integer patientInvoiceTdocId,
Integer patientInvoiceId,
Integer patientInvoiceLinId,
Integer dldId )
throws SQLException, DatabaseException
{
return
DbDistributionListDocs.getSingleRecord(
DbDistributionListDocs.FN_PATIENT_INVOICE_TENT_ID + " = ? and " +
DbDistributionListDocs.FN_PATIENT_INVOICE_TDOC_ID + " = ? and " +
DbDistributionListDocs.FN_PATIENT_INVOICE_ID + " = ? and " +
DbDistributionListDocs.FN_PATIENT_INVOICE_LIN_ID + " = ? and " +
DbDistributionListDocs.FN_DLD_ID + " = ?",
patientInvoiceTentId,
patientInvoiceTdocId,
patientInvoiceId,
patientInvoiceLinId,
dldId );
}
////////////////////////////////////////////////////////////
public boolean fetchNext()
throws SQLException
{
Database db = MpAppContext.getInstance().getDatabase();
Tuple tuple = getTuple();
java.util.List<Integer> kFields = getPrimaryKey();
int nCols = getFieldCount();
PreparedStatement ps =
db.getPreparedStatement(
"select * from distribution_list_docs where (patient_invoice_tent_id > ?) or (patient_invoice_tent_id = ? and patient_invoice_tdoc_id > ?) or (patient_invoice_tent_id = ? and patient_invoice_tdoc_id = ? and patient_invoice_id > ?) or (patient_invoice_tent_id = ? and patient_invoice_tdoc_id = ? and patient_invoice_id = ? and patient_invoice_lin_id > ?) or (patient_invoice_tent_id = ? and patient_invoice_tdoc_id = ? and patient_invoice_id = ? and patient_invoice_lin_id = ? and dld_id > ?) order by patient_invoice_tent_id, patient_invoice_tdoc_id, patient_invoice_id, patient_invoice_lin_id, dld_id limit 1" );
ps.setObject( 1, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 2, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 3, tuple.get( kFields.get( 1 ) ) );
ps.setObject( 4, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 5, tuple.get( kFields.get( 1 ) ) );
ps.setObject( 6, tuple.get( kFields.get( 2 ) ) );
ps.setObject( 7, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 8, tuple.get( kFields.get( 1 ) ) );
ps.setObject( 9, tuple.get( kFields.get( 2 ) ) );
ps.setObject( 10, tuple.get( kFields.get( 3 ) ) );
ps.setObject( 11, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 12, tuple.get( kFields.get( 1 ) ) );
ps.setObject( 13, tuple.get( kFields.get( 2 ) ) );
ps.setObject( 14, tuple.get( kFields.get( 3 ) ) );
ps.setObject( 15, tuple.get( kFields.get( 4 ) ) );
if( logger.isTraceEnabled() )
{
logger.trace( "query: \n" + ps.toString() );
}
boolean fetched = false;
ResultSet rs = ps.executeQuery();
if ( rs.next() )
{
fetched = true;
setTuple( rs );
}
rs.close();
ps.close();
return fetched;
}
////////////////////////////////////////////////////////////
public boolean fetchPrev()
throws SQLException
{
Database database = MpAppContext.getInstance().getDatabase();
Tuple tuple = getTuple();
java.util.List<Integer> kFields = getPrimaryKey();
int nCols = getFieldCount();
PreparedStatement ps =
database.getPreparedStatement(
"select * from distribution_list_docs where (patient_invoice_tent_id < ?) or (patient_invoice_tent_id = ? and patient_invoice_tdoc_id < ?) or (patient_invoice_tent_id = ? and patient_invoice_tdoc_id = ? and patient_invoice_id < ?) or (patient_invoice_tent_id = ? and patient_invoice_tdoc_id = ? and patient_invoice_id = ? and patient_invoice_lin_id < ?) or (patient_invoice_tent_id = ? and patient_invoice_tdoc_id = ? and patient_invoice_id = ? and patient_invoice_lin_id = ? and dld_id < ?) order by patient_invoice_tent_id desc, patient_invoice_tdoc_id desc, patient_invoice_id desc, patient_invoice_lin_id desc, dld_id desc limit 1" );
ps.setObject( 1, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 2, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 3, tuple.get( kFields.get( 1 ) ) );
ps.setObject( 4, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 5, tuple.get( kFields.get( 1 ) ) );
ps.setObject( 6, tuple.get( kFields.get( 2 ) ) );
ps.setObject( 7, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 8, tuple.get( kFields.get( 1 ) ) );
ps.setObject( 9, tuple.get( kFields.get( 2 ) ) );
ps.setObject( 10, tuple.get( kFields.get( 3 ) ) );
ps.setObject( 11, tuple.get( kFields.get( 0 ) ) );
ps.setObject( 12, tuple.get( kFields.get( 1 ) ) );
ps.setObject( 13, tuple.get( kFields.get( 2 ) ) );
ps.setObject( 14, tuple.get( kFields.get( 3 ) ) );
ps.setObject( 15, tuple.get( kFields.get( 4 ) ) );
if( logger.isTraceEnabled() )
{
logger.trace( "query: \n" + ps.toString() );
}
boolean fetched = false;
ResultSet rs = ps.executeQuery();
if ( rs.next() )
{
fetched = true;
setTuple( rs );
}
rs.close();
ps.close();
return fetched;
}
////////////////////////////////////////////////////////////
// Get/Set methods: BEGIN
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
public Integer getPatientInvoiceTentId()
{
return getPatientInvoiceTentId( getTuple() );
}
////////////////////////////////////////////////////////////
public static Integer getPatientInvoiceTentId( Tuple tuple )
{
Integer value = (Integer) tuple.get( PATIENT_INVOICE_TENT_ID );
return value;
}
////////////////////////////////////////////////////////////
public void setPatientInvoiceTentId( Integer value )
{
setPatientInvoiceTentId( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setPatientInvoiceTentId( Integer value, boolean changed )
{
setPatientInvoiceTentId( getTuple(), value );
setChangedField( PATIENT_INVOICE_TENT_ID, changed );
}
////////////////////////////////////////////////////////////
public static void setPatientInvoiceTentId( Tuple tuple, Integer value )
{
setValue( tuple, PATIENT_INVOICE_TENT_ID, value );
}
////////////////////////////////////////////////////////////
public Integer getPatientInvoiceTdocId()
{
return getPatientInvoiceTdocId( getTuple() );
}
////////////////////////////////////////////////////////////
public static Integer getPatientInvoiceTdocId( Tuple tuple )
{
Integer value = (Integer) tuple.get( PATIENT_INVOICE_TDOC_ID );
return value;
}
////////////////////////////////////////////////////////////
public void setPatientInvoiceTdocId( Integer value )
{
setPatientInvoiceTdocId( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setPatientInvoiceTdocId( Integer value, boolean changed )
{
setPatientInvoiceTdocId( getTuple(), value );
setChangedField( PATIENT_INVOICE_TDOC_ID, changed );
}
////////////////////////////////////////////////////////////
public static void setPatientInvoiceTdocId( Tuple tuple, Integer value )
{
setValue( tuple, PATIENT_INVOICE_TDOC_ID, value );
}
////////////////////////////////////////////////////////////
public Integer getPatientInvoiceId()
{
return getPatientInvoiceId( getTuple() );
}
////////////////////////////////////////////////////////////
public static Integer getPatientInvoiceId( Tuple tuple )
{
Integer value = (Integer) tuple.get( PATIENT_INVOICE_ID );
return value;
}
////////////////////////////////////////////////////////////
public void setPatientInvoiceId( Integer value )
{
setPatientInvoiceId( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setPatientInvoiceId( Integer value, boolean changed )
{
setPatientInvoiceId( getTuple(), value );
setChangedField( PATIENT_INVOICE_ID, changed );
}
////////////////////////////////////////////////////////////
public static void setPatientInvoiceId( Tuple tuple, Integer value )
{
setValue( tuple, PATIENT_INVOICE_ID, value );
}
////////////////////////////////////////////////////////////
public Integer getPatientInvoiceLinId()
{
return getPatientInvoiceLinId( getTuple() );
}
////////////////////////////////////////////////////////////
public static Integer getPatientInvoiceLinId( Tuple tuple )
{
Integer value = (Integer) tuple.get( PATIENT_INVOICE_LIN_ID );
return value;
}
////////////////////////////////////////////////////////////
public void setPatientInvoiceLinId( Integer value )
{
setPatientInvoiceLinId( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setPatientInvoiceLinId( Integer value, boolean changed )
{
setPatientInvoiceLinId( getTuple(), value );
setChangedField( PATIENT_INVOICE_LIN_ID, changed );
}
////////////////////////////////////////////////////////////
public static void setPatientInvoiceLinId( Tuple tuple, Integer value )
{
setValue( tuple, PATIENT_INVOICE_LIN_ID, value );
}
////////////////////////////////////////////////////////////
public Integer getDldId()
{
return getDldId( getTuple() );
}
////////////////////////////////////////////////////////////
public static Integer getDldId( Tuple tuple )
{
Integer value = (Integer) tuple.get( DLD_ID );
return value;
}
////////////////////////////////////////////////////////////
public void setDldId( Integer value )
{
setDldId( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setDldId( Integer value, boolean changed )
{
setDldId( getTuple(), value );
setChangedField( DLD_ID, changed );
}
////////////////////////////////////////////////////////////
public static void setDldId( Tuple tuple, Integer value )
{
setValue( tuple, DLD_ID, value );
}
////////////////////////////////////////////////////////////
public Integer getDlEntDocTypeId()
{
return getDlEntDocTypeId( getTuple() );
}
////////////////////////////////////////////////////////////
public static Integer getDlEntDocTypeId( Tuple tuple )
{
Integer value = (Integer) tuple.get( DL_ENT_DOC_TYPE_ID );
return value;
}
////////////////////////////////////////////////////////////
public void setDlEntDocTypeId( Integer value )
{
setDlEntDocTypeId( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setDlEntDocTypeId( Integer value, boolean changed )
{
setDlEntDocTypeId( getTuple(), value );
setChangedField( DL_ENT_DOC_TYPE_ID, changed );
}
////////////////////////////////////////////////////////////
public static void setDlEntDocTypeId( Tuple tuple, Integer value )
{
setValue( tuple, DL_ENT_DOC_TYPE_ID, value );
}
////////////////////////////////////////////////////////////
public Integer getOtherTipoEntId()
{
return getOtherTipoEntId( getTuple() );
}
////////////////////////////////////////////////////////////
public static Integer getOtherTipoEntId( Tuple tuple )
{
Integer value = (Integer) tuple.get( OTHER_TIPO_ENT_ID );
return value;
}
////////////////////////////////////////////////////////////
public void setOtherTipoEntId( Integer value )
{
setOtherTipoEntId( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setOtherTipoEntId( Integer value, boolean changed )
{
setOtherTipoEntId( getTuple(), value );
setChangedField( OTHER_TIPO_ENT_ID, changed );
}
////////////////////////////////////////////////////////////
public static void setOtherTipoEntId( Tuple tuple, Integer value )
{
setValue( tuple, OTHER_TIPO_ENT_ID, value );
}
////////////////////////////////////////////////////////////
public Integer getOtherTipoDocId()
{
return getOtherTipoDocId( getTuple() );
}
////////////////////////////////////////////////////////////
public static Integer getOtherTipoDocId( Tuple tuple )
{
Integer value = (Integer) tuple.get( OTHER_TIPO_DOC_ID );
return value;
}
////////////////////////////////////////////////////////////
public void setOtherTipoDocId( Integer value )
{
setOtherTipoDocId( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setOtherTipoDocId( Integer value, boolean changed )
{
setOtherTipoDocId( getTuple(), value );
setChangedField( OTHER_TIPO_DOC_ID, changed );
}
////////////////////////////////////////////////////////////
public static void setOtherTipoDocId( Tuple tuple, Integer value )
{
setValue( tuple, OTHER_TIPO_DOC_ID, value );
}
////////////////////////////////////////////////////////////
public Integer getOtherDocId()
{
return getOtherDocId( getTuple() );
}
////////////////////////////////////////////////////////////
public static Integer getOtherDocId( Tuple tuple )
{
Integer value = (Integer) tuple.get( OTHER_DOC_ID );
return value;
}
////////////////////////////////////////////////////////////
public void setOtherDocId( Integer value )
{
setOtherDocId( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setOtherDocId( Integer value, boolean changed )
{
setOtherDocId( getTuple(), value );
setChangedField( OTHER_DOC_ID, changed );
}
////////////////////////////////////////////////////////////
public static void setOtherDocId( Tuple tuple, Integer value )
{
setValue( tuple, OTHER_DOC_ID, value );
}
////////////////////////////////////////////////////////////
public BigDecimal getAmount()
{
return getAmount( getTuple() );
}
////////////////////////////////////////////////////////////
public static BigDecimal getAmount( Tuple tuple )
{
BigDecimal value = (BigDecimal) tuple.get( AMOUNT );
return value;
}
////////////////////////////////////////////////////////////
public void setAmount( BigDecimal value )
{
setAmount( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setAmount( BigDecimal value, boolean changed )
{
setAmount( getTuple(), value );
setChangedField( AMOUNT, changed );
}
////////////////////////////////////////////////////////////
public static void setAmount( Tuple tuple, BigDecimal value )
{
setValue( tuple, AMOUNT, value );
}
////////////////////////////////////////////////////////////
public Boolean getPending()
{
return getPending( getTuple() );
}
////////////////////////////////////////////////////////////
public static Boolean getPending( Tuple tuple )
{
Boolean value = (Boolean) tuple.get( PENDING );
return value;
}
////////////////////////////////////////////////////////////
public void setPending( Boolean value )
{
setPending( getTuple(), value );
}
////////////////////////////////////////////////////////////
public void setPending( Boolean value, boolean changed )
{
setPending( getTuple(), value );
setChangedField( PENDING, changed );
}
////////////////////////////////////////////////////////////
public static void setPending( Tuple tuple, Boolean value )
{
setValue( tuple, PENDING, value );
}
////////////////////////////////////////////////////////////
// Get/Set methods: END
////////////////////////////////////////////////////////////
}
|