Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions

:
#)CompareRefundHandler. Copyright © 2012 tourapp.com. All rights reserved. GPL3 Open Source Software License.
 
 package com.tourapp.tour.acctrec.screen.refund;
 
 import java.util.*;
 
CompareRefundHandler - Compare the ArTrx type to make sure this is a refund type.
public class CompareRefundHandler extends FileListener
    protected BaseField m_fldTarget = null;
    protected int m_iHeld;
    protected int m_iPay;
    protected int m_iSubmitted;
    
Default constructor.
    public CompareRefundHandler()
    {
        super();
    }
    
CompareRefundHandler Method.
    public CompareRefundHandler(BaseField fldTargetint iSubmittedint iHeldint iPay)
    {
        this();
        this.init(fldTargetiSubmittediHeldiPay);
    }
    
Initialize class fields.
    public void init(BaseField fldTargetint iSubmittedint iHeldint iPay)
    {
         = null;
         = 0;
         = 0;
         = 0;
         = fldTarget;
         = iSubmitted;
         = iHeld;
         = iPay;
        super.init(null);
    }
    
Set up/do the local criteria.

Parameters:
strbFilter The SQL query string to add to.
bIncludeFileName Include the file name with this query?
vParamList The param list to add the raw data to (for prepared statements).
Returns:
True if you should not skip this record (does a check on the local data).
    public boolean doLocalCriteria(StringBuffer strbFilterboolean bIncludeFileNameVector vParamList)
    {
        boolean bDontSkip = false;
        
        if (.getValue() == )
            bDontSkip = true;
        if (.getValue() == )
            bDontSkip = true;
        if (.getValue() == )
            bDontSkip = true;
        
        if (bDontSkip)
            return super.doLocalCriteria(strbFilterbIncludeFileNamevParamList);    // Dont skip this record
        else
            return false;   // Skip this one
    }
New to GrepCode? Check out our FAQ X