|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.bacchus.AbstractRecord
net.sf.bacchus.CompanyBatchHeader
public class CompanyBatchHeader
A company/batch header record.
| Field Summary | |
|---|---|
static char |
ADV
Originator status code for an ADV file prepared by an ACH Operator. |
static char |
DFI
Originator status code for a depository financial institution which has agreed to be bound by these rules. |
static char |
GOV
Originator status code for a federal government entity or agency not subject to these rules. |
| Fields inherited from interface net.sf.bacchus.Header |
|---|
BATCH_HEADER_RECORD, FILE_HEADER_RECORD |
| Fields inherited from interface net.sf.bacchus.Record |
|---|
ACH_RECORD_SIZE, BASE_TEN, FILLER |
| Constructor Summary | |
|---|---|
CompanyBatchHeader()
Creates a company/batch header record. |
|
| Method Summary | |
|---|---|
protected StringBuilder |
build()
Adds the service class, company name, discretionary data, identification, standard entry class code, company entry description, descriptive date, effective entry date, settlement date, originator status code, originating DFI and batch number. |
int |
getBatch()
Gets the batch number. |
String |
getCompanyName()
Gets the company name. |
String |
getDescription()
Gets the company entry description. |
String |
getDescriptiveDate()
Gets the company descriptive date. |
String |
getDiscretionary()
Gets the company discretionary data. |
Date |
getEffectiveDate()
Gets the effective entry date. |
protected int |
getExpectedRecordType()
Gets the expected type code. |
String |
getIdentification()
Gets the company identification. |
int |
getOrigin()
Gets the 8 digit routing transit number of the origin DFI, with no check digit. |
int |
getOriginCheck()
Gets the check digit for the RTN of the origin DFI. |
int |
getServiceClass()
Gets the service class code. |
Date |
getSettlementDate()
Gets the settlement date. |
Code |
getStandardEntryClass()
Gets the standard entry class. |
char |
getStatus()
Gets the originator status code. |
void |
load(String record)
Loads the properties from a raw ACH record. |
void |
normalize()
Performs the following normalizations: The superclass normalization
Normalizes the origin RTN
Clears the company name,
discretionary data,
identification, description and descriptive date, if they
are empty.
Clears the status if it is the default
DFI.
Clears the batch if it is zero
Classes that override this method should always call this superclass
method. |
void |
setBatch(int batch)
Sets the batch number. |
void |
setCompanyName(String companyName)
Sets the company name. |
void |
setDescription(String description)
Sets the company entry description. |
void |
setDescriptiveDate(String descriptiveDate)
Sets the company descriptive date. |
void |
setDiscretionary(String discretionary)
Sets the company discretionary data. |
void |
setEffectiveDate(Date effectiveDate)
Sets the effective entry date. |
void |
setIdentification(String identification)
Sets the company identification. |
void |
setOrigin(int rtn)
Sets the 8 digit routing transit number of the originating DFI, with no check digit. |
void |
setServiceClass(int serviceClass)
Sets the service class code. |
void |
setSettlementDate(Date settlementDate)
Sets the settlement date. |
void |
setStandardEntryClass(Code standardEntryClass)
Sets the standard entry class. |
void |
setStatus(char status)
Sets the originator status code. |
void |
validate()
Validates the record. |
| Methods inherited from class net.sf.bacchus.AbstractRecord |
|---|
field, format, getRecordType, setRecordType, validate, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.bacchus.Record |
|---|
format, getRecordType |
| Field Detail |
|---|
public static final char ADV
public static final char DFI
public static final char GOV
| Constructor Detail |
|---|
public CompanyBatchHeader()
| Method Detail |
|---|
protected final int getExpectedRecordType()
getExpectedRecordType in class AbstractRecordHeader.BATCH_HEADER_RECORD.public int getServiceClass()
CompanyBatch.MIXED_DEBITS_CREDITS.
public void setServiceClass(int serviceClass)
serviceClass - the service class code.public String getCompanyName()
public void setCompanyName(String companyName)
companyName - the company name.public String getDiscretionary()
public void setDiscretionary(String discretionary)
discretionary - the company discretionary data.public String getIdentification()
public void setIdentification(String identification)
identification - the company identification.public Code getStandardEntryClass()
public void setStandardEntryClass(Code standardEntryClass)
standardEntryClass - the standard entry class.public String getDescription()
public void setDescription(String description)
description - the company entry description.public String getDescriptiveDate()
public void setDescriptiveDate(String descriptiveDate)
descriptiveDate - the company descriptive date.public Date getEffectiveDate()
public void setEffectiveDate(Date effectiveDate)
effectiveDate - the effective entry date.public Date getSettlementDate()
getEffectiveDate()public void setSettlementDate(Date settlementDate)
settlementDate - the settlement date.public char getStatus()
DFI.
public void setStatus(char status)
status - the status to setpublic int getOrigin()
getOrigin in interface HeaderHeader.getOriginCheck()public void setOrigin(int rtn)
rtn - the RTN of the originating DFI.public int getOriginCheck()
getOriginCheck in interface HeaderHeader.getOrigin()public int getBatch()
public void setBatch(int batch)
batch - the batch number.public void load(String record)
super.load(String), then parsing the
properties of the subclass record type. The effect of this method is the
opposite of AbstractRecord.format().
load in interface Recordload in class AbstractRecordrecord - the ACH record to load.
public void validate()
throws InvalidRecordException
validate in interface Recordvalidate in class AbstractRecord{@inheritDoc}
InvalidRecordException - if the record is not valid.public void normalize()
superclass normalizationNormalizes the origin RTNthe company name,
discretionary data,
identification, description and descriptive date, if they
are empty.status if it is the default
DFI.batch if it is zero
normalize in interface Recordnormalize in class AbstractRecordAbstractRecord.normalize()protected StringBuilder build()
build in class AbstractRecord
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||