public class Purchase extends Purchase
DBObject.DenormalizeActionDBCLASS_GID, DBCLASS_NAMEATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
Purchase(DBClass def,
DataSource dataSource)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfAlreadyCreated(ProductItem productItem) |
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
update dependent fields.
|
protected void |
extAutoEnterCreate()
Additional functionality when an object is created.
|
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 ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
protected void |
extValidateRecord(ValidationList list)
Performs additional validations on this record.
|
BuildingSize |
findBuildingSize(java.lang.String... args)
Building Size.
|
Product |
findProduct(java.lang.String... args)
Product.
|
Provider |
findProvider(java.lang.String... args)
Provider.
|
ProviderPriceMatrix |
findProviderMatrix(java.lang.String... args)
Provider Matrix.
|
BuildingSize |
getBuildingSize(java.lang.String... args) |
java.util.Date |
getDnsPurchaseDate(java.lang.String... args) |
java.util.Date |
getInspectionTime(java.lang.String... args) |
java.lang.String |
getPreviousSuburb(java.lang.String... args) |
java.util.Date |
getPrevSuburbInspTime(java.lang.String... args) |
Product |
getProduct(java.lang.String... args) |
double |
getProfit(java.lang.String... args) |
java.lang.String |
getProfitPercentage(java.lang.String... args) |
Provider |
getProvider(java.lang.String... args) |
ProviderPriceMatrix |
getProviderMatrix(java.lang.String... args) |
boolean |
isSplitBuildPestReport(java.lang.String... args) |
Purchase |
setBuildingSize(com.dns.dal.BuildingSize value,
java.lang.String... args) |
Purchase |
setDnsPurchaseDate(java.util.Date value,
java.lang.String... args) |
Purchase |
setInspectionTime(java.util.Date value,
java.lang.String... args) |
Purchase |
setProduct(com.dns.dal.Product value,
java.lang.String... args) |
Purchase |
setProvider(com.dns.dal.Provider value,
java.lang.String... args) |
Purchase |
setProviderMatrix(com.dns.dal.ProviderPriceMatrix value,
java.lang.String... args) |
Purchase |
setSplitBuildPestReport(boolean value,
java.lang.String... args) |
adjust, calBalance, create, extCheckCreateAccess, extCheckModifyAccess, extFixUp, extPreValidate, findDeliverTo, findDeliveryCountry, findDeliveryMethod, findDeliveryState, findEnteredBy, findExportFg, findInvoiceId, findJob, findKey, findOwnerBusUnit, findPaymentTerms, findReOrderProduct, findSalesPerson, findStatus, findSupplierId, getAmount, getBalance, getDateCompleted, getDefaultStatus, getDeliverTo, getDeliverToName, getDeliveryAddress, getDeliveryCountry, getDeliveryMethod, getDeliveryPostCode, getDeliveryState, getDeliverySuburbCity, getDescription, getEnteredBy, getEnteredTime, getExportedTime, getExportFg, getFromJob, getGrossAmount, getID, getInvoiceId, getItems, getJob, getMemo, getMyobJobNumber, getNotes, getOwnerBusUnit, getPaymentTerms, getPromisedDate, getPurchaseDate, getPurchaseNumber, getReOrderProduct, getSalesPerson, getStatus, getSupplierId, getTaxAmount, getTotalCredits, getTotalDebits, getTotalDiscount, getTotalDue, getTotalPaid, getVendorInvoiceNumber, getXeroPurchaseId, hasMultiPayments, isAddedFromJob, isCancelled, isLocked, isModifiableWhenLocked, makeQuery, setAddedFromJob, setBalance, setDateCompleted, setDeliverTo, setDeliverToName, setDeliveryAddress, setDeliveryCountry, setDeliveryMethod, setDeliveryPostCode, setDeliveryState, setDeliverySuburbCity, setDescription, setEnteredBy, setEnteredTime, setExportedTime, setExportFg, setFromJob, setID, setInvoiceId, setJob, setMemo, setMyobJobNumber, setNotes, setOwnerBusUnit, setPaymentTerms, setPromisedDate, setPurchaseDate, setPurchaseNumber, setReOrderProduct, setSalesPerson, setStatus, setSupplierId, setVendorInvoiceNumber, setXeroPurchaseId, updateBalance, updatePurchaseNumberaddReloadEventListener, 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, extCanDeleteDependantObject, extCheckDeleteAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetValue, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, 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, validateSubTypepublic Purchase(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 @Nullable public BuildingSize getBuildingSize(java.lang.String... args)
@CheckReturnValue @Nonnull public final BuildingSize findBuildingSize(java.lang.String... args) throws NotFoundException
BuildingSize (String, Searchable)args - the optional argumentsNotFoundException - BuildingSize was not found@Nonnull public Purchase setBuildingSize(com.dns.dal.BuildingSize value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public java.util.Date getDnsPurchaseDate(java.lang.String... args)
@Nonnull public Purchase setDnsPurchaseDate(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public java.util.Date getInspectionTime(java.lang.String... args)
@Nonnull public Purchase setInspectionTime(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public java.util.Date getPrevSuburbInspTime(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getPreviousSuburb(java.lang.String... args)
@CheckReturnValue @Nullable public Product getProduct(java.lang.String... args)
@CheckReturnValue @Nonnull public final Product findProduct(java.lang.String... args) throws NotFoundException
Product (String, Searchable)args - the optional argumentsNotFoundException - Product was not found@Nonnull public Purchase setProduct(com.dns.dal.Product value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue public double getProfit(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getProfitPercentage(java.lang.String... args)
@CheckReturnValue @Nullable public Provider getProvider(java.lang.String... args)
@CheckReturnValue @Nonnull public final Provider findProvider(java.lang.String... args) throws NotFoundException
Provider (Integer, Searchable)args - the optional argumentsNotFoundException - Provider was not found@Nonnull public Purchase setProvider(com.dns.dal.Provider value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public ProviderPriceMatrix getProviderMatrix(java.lang.String... args)
@CheckReturnValue @Nonnull public final ProviderPriceMatrix findProviderMatrix(java.lang.String... args) throws NotFoundException
ProviderPriceMatrix
(Integer, Searchable)args - the optional argumentsNotFoundException - ProviderPriceMatrix was not found@Nonnull public Purchase setProviderMatrix(com.dns.dal.ProviderPriceMatrix value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue public boolean isSplitBuildPestReport(java.lang.String... args)
@Nonnull public Purchase setSplitBuildPestReport(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@OverridingMethodsMustInvokeSuper
protected void extAutoEnterCreate()
throws java.lang.Exception
extAutoEnterCreate in class Purchasejava.lang.Exception - A serious problemcom.aspc.DBObj.DBObject#autoEnterCreate()@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 Purchasefield - The field updated.previous - The previous value for this field.previousKey - The previous keyparams - The parameters usedjava.lang.Exception - a serious problempublic boolean checkIfAlreadyCreated(ProductItem productItem) throws java.lang.Exception
java.lang.Exception@OverridingMethodsMustInvokeSuper @CheckReturnValue @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField in class Purchaselist - The validation listfield - The field to be validatedjava.lang.Exception - A serious problem@CheckReturnValue
@Nullable
protected java.lang.Object extGetDerivedValue(@Nonnull
DBField field,
@Nullable
FldParams params)
throws java.lang.Exception
extGetDerivedValue in class Purchasefield - The field to getparams - The parameters for this field eg. language= or default=java.lang.Exception - A serious problem@OverridingMethodsMustInvokeSuper
protected void extPreSaveRecord()
throws java.lang.Exception
DBObjectextPreSaveRecord in class Purchasejava.lang.Exception - a serious problem@CheckReturnValue
protected boolean extIsMandatory(@Nonnull
DBField field)
extIsMandatory in class Purchasefield - The field to getDBObject.extIsMandatory( DBField)@OverridingMethodsMustInvokeSuper
protected void extValidateRecord(@Nonnull
ValidationList list)
throws java.lang.Exception
extValidateRecord in class DBObjectlist - The validation list.java.lang.Exception - A serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.