public class BankAccount extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
Bank account details
|
static java.lang.String |
DBCLASS_NAME
Bank account details
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
BankAccount(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static BankAccount |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
Additional business logic when a field is updated.
|
protected void |
extFixUp()
Check for default value
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Calculate the derived value for this field.
|
protected boolean |
extIsMandatory(DBField field)
Conditional mandatory field.
|
protected void |
extPreSaveRecord()
OVERRIDE this method to add functionality to stSoftware BEFORE saving the record to the database.
|
protected void |
extPreValidate()
Update the in-memory universe BEFORE validating
|
protected void |
extValidateDelete(ValidationList list)
Extend this method to add validation to a record then deleted.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
protected void |
extValidateRecord(ValidationList list)
Performs additional validations on this record.
|
BankAccountType |
findAccountType(java.lang.String... args)
Bank account type.
|
java.lang.Object |
findAuthToDebit(java.lang.String... args)
Authorization to debit.
|
CreditCardType |
findBankCardType(java.lang.String... args)
Bank card Type-eg Visa.
|
Bsb |
findBsb(java.lang.String... args)
BSB Bank-Account.
|
Contact |
findContact(java.lang.String... args)
Contact that owns this BankAccount.
|
DirectDebitSystem |
findDirectCreditSystem(java.lang.String... args)
Specifies the system that should be used to credit this account for
credit card payments.
|
static BankAccount |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
java.lang.String |
getAccountName(java.lang.String... args) |
java.lang.String |
getAccountNumber(java.lang.String... args) |
BankAccountType |
getAccountType(java.lang.String... args) |
java.util.Date |
getAuthGivenDate(java.lang.String... args) |
java.lang.Object |
getAuthToDebit(java.lang.String... args) |
java.lang.String |
getBank(java.lang.String... args) |
java.lang.String |
getBankCardDisplayNumber(java.lang.String... args) |
java.util.Date |
getBankCardExpiryDate(java.lang.String... args) |
java.lang.String |
getBankCardName(java.lang.String... args) |
java.lang.String |
getBankCardNewNumber(java.lang.String... args) |
java.lang.String |
getBankCardNumber(java.lang.String... args) |
CreditCardType |
getBankCardType(java.lang.String... args) |
java.lang.String |
getBankCardVerificationNumber(java.lang.String... args) |
Bsb |
getBsb(java.lang.String... args) |
java.util.Date |
getCalculatedBankCardExpiryDate(java.lang.String... args) |
Contact |
getContact(java.lang.String... args) |
static DBObject |
getDefaultAccount(DataSource dataSource,
Contact contact) |
java.lang.String |
getDirectCreditCertificateFile(java.lang.String... args) |
java.lang.String |
getDirectCreditMerchant(java.lang.String... args) |
java.lang.String |
getDirectCreditPassword(java.lang.String... args) |
DirectDebitSystem |
getDirectCreditSystem(java.lang.String... args) |
java.lang.String |
getDirectCreditUserName(java.lang.String... args) |
java.lang.String |
getDisplayName(java.lang.String... args) |
java.lang.String |
getEwayCardName(java.lang.String... args) |
java.lang.String |
getEwayCardNumber(java.lang.String... args) |
java.util.Date |
getEwayExpiryDate(java.lang.String... args) |
long |
getEwayToken(java.lang.String... args) |
int |
getID(java.lang.String... args) |
java.lang.String |
getName(java.lang.String... args) |
java.lang.String |
getPaypalAPIPassword(java.lang.String... args) |
java.lang.String |
getPaypalAPISignature(java.lang.String... args) |
java.lang.String |
getPaypalAPIUsername(java.lang.String... args) |
int |
getValidationVersion(java.lang.String... args) |
boolean |
hasExpired(java.lang.String... args) |
boolean |
isDefaultFg(java.lang.String... args) |
boolean |
isDirectDebitAuthorised(java.lang.String... args) |
boolean |
isInactive(java.lang.String... args) |
static DBQuery<BankAccount> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
BankAccount |
setAccountName(java.lang.String value,
java.lang.String... args) |
BankAccount |
setAccountNumber(java.lang.String value,
java.lang.String... args) |
BankAccount |
setAccountType(com.aspc.dal.layers.aspc_app.misc.BankAccountType value,
java.lang.String... args) |
BankAccount |
setAuthGivenDate(java.util.Date value,
java.lang.String... args) |
BankAccount |
setAuthToDebit(java.lang.Object value,
java.lang.String... args) |
BankAccount |
setBank(java.lang.String value,
java.lang.String... args) |
BankAccount |
setBankCardExpiryDate(java.util.Date value,
java.lang.String... args) |
BankAccount |
setBankCardName(java.lang.String value,
java.lang.String... args) |
BankAccount |
setBankCardNewNumber(java.lang.String value,
java.lang.String... args) |
BankAccount |
setBankCardNumber(java.lang.String value,
java.lang.String... args) |
BankAccount |
setBankCardType(com.aspc.dal.layers.aspc_app.misc.CreditCardType value,
java.lang.String... args) |
BankAccount |
setBankCardVerificationNumber(java.lang.String value,
java.lang.String... args) |
BankAccount |
setBsb(com.aspc.dal.layers.aspc_app.bsb.Bsb value,
java.lang.String... args) |
BankAccount |
setContact(com.aspc.dal.dbobj.contact.Contact value,
java.lang.String... args) |
BankAccount |
setDefaultFg(boolean value,
java.lang.String... args) |
BankAccount |
setDirectCreditCertificateFile(java.lang.String value,
java.lang.String... args) |
BankAccount |
setDirectCreditMerchant(java.lang.String value,
java.lang.String... args) |
BankAccount |
setDirectCreditPassword(java.lang.String value,
java.lang.String... args) |
BankAccount |
setDirectCreditSystem(com.aspc.dal.layers.aspc_app.directdebit.DirectDebitSystem value,
java.lang.String... args) |
BankAccount |
setDirectCreditUserName(java.lang.String value,
java.lang.String... args) |
BankAccount |
setDirectDebitAuthorised(boolean value,
java.lang.String... args) |
BankAccount |
setEwayToken(long value,
java.lang.String... args) |
BankAccount |
setID(int value,
java.lang.String... args) |
BankAccount |
setInactive(boolean value,
java.lang.String... args) |
BankAccount |
setMandatory(boolean value,
java.lang.String... args) |
BankAccount |
setName(java.lang.String value,
java.lang.String... args) |
BankAccount |
setPaypalAPIPassword(java.lang.String value,
java.lang.String... args) |
BankAccount |
setPaypalAPISignature(java.lang.String value,
java.lang.String... args) |
BankAccount |
setPaypalAPIUsername(java.lang.String value,
java.lang.String... args) |
BankAccount |
setValidationVersion(int value,
java.lang.String... args) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetValue, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public BankAccount(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The class of this objectdataSource
- The datasource for this objectjava.lang.Exception
- A serious problem occurred@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public BankAccount setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getAccountName(java.lang.String... args)
@Nonnull public BankAccount setAccountName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getAccountNumber(java.lang.String... args)
@Nonnull public BankAccount setAccountNumber(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public BankAccountType getAccountType(java.lang.String... args)
@CheckReturnValue @Nonnull public final BankAccountType findAccountType(java.lang.String... args) throws NotFoundException
BankAccountType
(String, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- BankAccountType was not found@Nonnull public BankAccount setAccountType(com.aspc.dal.layers.aspc_app.misc.BankAccountType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.util.Date getAuthGivenDate(java.lang.String... args)
@Nonnull public BankAccount setAuthGivenDate(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.lang.Object getAuthToDebit(java.lang.String... args)
@CheckReturnValue @Nonnull public final java.lang.Object findAuthToDebit(java.lang.String... args) throws NotFoundException
YesNo
(String, Searchable)args
- the optional argumentsNotFoundException
- YesNo was not found@Nonnull public BankAccount setAuthToDebit(java.lang.Object value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getBank(java.lang.String... args)
@Nonnull public BankAccount setBank(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getBankCardDisplayNumber(java.lang.String... args)
@CheckReturnValue @Nullable public java.util.Date getBankCardExpiryDate(java.lang.String... args)
@Nonnull public BankAccount setBankCardExpiryDate(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getBankCardName(java.lang.String... args)
@Nonnull public BankAccount setBankCardName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getBankCardNewNumber(java.lang.String... args)
@Nonnull public BankAccount setBankCardNewNumber(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getBankCardNumber(java.lang.String... args)
@Nonnull public BankAccount setBankCardNumber(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public CreditCardType getBankCardType(java.lang.String... args)
@CheckReturnValue @Nonnull public final CreditCardType findBankCardType(java.lang.String... args) throws NotFoundException
CreditCardType
(String, Searchable)args
- the optional argumentsNotFoundException
- CreditCardType was not found@Nonnull public BankAccount setBankCardType(com.aspc.dal.layers.aspc_app.misc.CreditCardType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getBankCardVerificationNumber(java.lang.String... args)
@Nonnull public BankAccount setBankCardVerificationNumber(@MatchesPattern(value="[0-9]{3,4}") java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Bsb getBsb(java.lang.String... args)
@CheckReturnValue @Nonnull public final Bsb findBsb(java.lang.String... args) throws NotFoundException
Bsb
(String,
Searchable)args
- the optional argumentsNotFoundException
- Bsb was not found@Nonnull public BankAccount setBsb(com.aspc.dal.layers.aspc_app.bsb.Bsb value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.util.Date getCalculatedBankCardExpiryDate(java.lang.String... args)
@CheckReturnValue @Nullable public Contact getContact(java.lang.String... args)
@CheckReturnValue @Nonnull public final Contact findContact(java.lang.String... args) throws NotFoundException
Contact
(Integer,
Searchable)args
- the optional argumentsNotFoundException
- Contact was not found@Nonnull public BankAccount setContact(com.aspc.dal.dbobj.contact.Contact value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isDefaultFg(java.lang.String... args)
@Nonnull public BankAccount setDefaultFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDirectCreditCertificateFile(java.lang.String... args)
@Nonnull public BankAccount setDirectCreditCertificateFile(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDirectCreditMerchant(java.lang.String... args)
@Nonnull public BankAccount setDirectCreditMerchant(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDirectCreditPassword(java.lang.String... args)
@Nonnull public BankAccount setDirectCreditPassword(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DirectDebitSystem getDirectCreditSystem(java.lang.String... args)
@CheckReturnValue @Nonnull public final DirectDebitSystem findDirectCreditSystem(java.lang.String... args) throws NotFoundException
DirectDebitSystem
(String, Searchable)args
- the optional argumentsNotFoundException
- DirectDebitSystem was not found@Nonnull public BankAccount setDirectCreditSystem(com.aspc.dal.layers.aspc_app.directdebit.DirectDebitSystem value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDirectCreditUserName(java.lang.String... args)
@Nonnull public BankAccount setDirectCreditUserName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isDirectDebitAuthorised(java.lang.String... args)
@Nonnull public BankAccount setDirectDebitAuthorised(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDisplayName(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getEwayCardName(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getEwayCardNumber(java.lang.String... args)
@CheckReturnValue @Nullable public java.util.Date getEwayExpiryDate(java.lang.String... args)
@CheckReturnValue public long getEwayToken(java.lang.String... args)
@Nonnull public BankAccount setEwayToken(long value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean hasExpired(java.lang.String... args)
@CheckReturnValue public boolean isInactive(java.lang.String... args)
@Nonnull public BankAccount setInactive(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public BankAccount setMandatory(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getName(java.lang.String... args)
@Nonnull public BankAccount setName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getPaypalAPIPassword(java.lang.String... args)
@Nonnull public BankAccount setPaypalAPIPassword(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getPaypalAPISignature(java.lang.String... args)
@Nonnull public BankAccount setPaypalAPISignature(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getPaypalAPIUsername(java.lang.String... args)
@Nonnull public BankAccount setPaypalAPIUsername(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getValidationVersion(java.lang.String... args)
@Nonnull public BankAccount setValidationVersion(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static BankAccount create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds
- the datasourcejava.lang.Exception
- an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<BankAccount> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static BankAccount findKey(@Nonnull DataSource ds, int key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problempublic static DBObject getDefaultAccount(DataSource dataSource, Contact contact) throws java.lang.Exception
dataSource
- the data sourcecontact
- java.lang.Exception
- a serious problem@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField
in class DBObject
list
- The validation listfield
- The field to be validatedjava.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extValidateRecord(@Nonnull ValidationList list) throws java.lang.Exception
extValidateRecord
in class DBObject
list
- The validation list.java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extValidateDelete(@Nonnull ValidationList list) throws java.lang.Exception
DBObject
extValidateDelete
in class DBObject
list
- The validation listjava.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extFixUp() throws java.lang.Exception
@OverridingMethodsMustInvokeSuper protected void eventFieldUpdated(@Nonnull DBField field, @Nullable java.lang.Object previous, @Nullable GlobalKey previousKey, @Nullable FldParams params) throws java.lang.Exception
eventFieldUpdated
in class DBObject
field
- The field updated.previous
- The previous value for this field.previousKey
- The previous keyparams
- The parameters usedjava.lang.Exception
- A serious problemDBObject.eventFieldUpdated( DBField, Object, GlobalKey, FldParams)
@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedValue
in class DBObject
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extPreValidate() throws java.lang.Exception
extPreValidate
in class DBObject
java.lang.Exception
- A serious problem@CheckReturnValue protected boolean extIsMandatory(DBField field)
extIsMandatory
in class DBObject
field
- The field to getDBObject.extIsMandatory( DBField)
@OverridingMethodsMustInvokeSuper protected void extPreSaveRecord() throws java.lang.Exception
DBObject
extPreSaveRecord
in class DBObject
java.lang.Exception
- A Serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.