Package com.storedobject.core
Class SubscriptionItem
java.lang.Object
com.storedobject.core.StoredObject
com.storedobject.core.InventoryItem
com.storedobject.core.SubscriptionItem
- All Implemented Interfaces:
Displayable,StringFiller,HasId,HasInventoryItem,HasInventoryItemType
-
Field Summary
Fields inherited from class com.storedobject.core.StoredObject
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic SubscriptionItemget(String serial, SubscriptionItemType itemType) static ObjectIterator<? extends SubscriptionItem> list(String serial, SubscriptionItemType itemType) voidsetDateFrom(Date dateFrom) voidvoidsetSubscriptionNumber(String subscriptionNumber) toString()String representation of the instance.voidThe system will invoke this whenever the object is saved to the DB.Methods inherited from class com.storedobject.core.InventoryItem
attachPO, attachRO, browseColumns, cameAsAssemblyPart, canBin, canStore, changePartNumber, checkUnit, checkUnit, createGRN, createGRN, get, get, get, getAssemblyLevel, getBatchTag, getByPartNumber, getByPartNumberId, getByPartNumberId, getCost, getCost, getGrandParentItem, getGRN, getGRNId, getInTransit, getItem, getItemType, getLocation, getLocationDisplay, getLocationId, getOwner, getOwnerId, getParentItem, getParentItem, getPartNumberId, getPartNumberName, getPartNumberShortName, getPartNumberType, getPN, getPO, getPreviousLocation, getPreviousLocation, getPurchaseDate, getQuantity, getRealLocation, getRO, getSerialNumber, getSerialNumberDisplay, getSerialNumberDisplay, getSerialNumberName, getSerialNumberShortName, getShelfLife, getStatusDescription, getStore, getStoreId, getUnitCost, getUnitCost, getUnitCost, indices, isAssemblyIncomplete, isAvailableAt, isBlocked, isConsumable, isExpendable, isObsolete, isRepairable, isRepairAllowed, isSerialized, isServiceable, isShelfLifeApplicable, isTool, list, listAssemblies, listAssemblies, listAssemblies, listAssemblies, listFitmentPositions, listImmediateFitmentPositions, listItems, listItems, listItems, listItems, listMissingAssemblies, listStock, listStock, listStock, listStock, listStock, listStock, listStock, listStock, listStock, listStock, listStock, migrate, migrate, moved, protectedColumns, reloaded, resurrect, searchColumns, setBatchTag, setCost, setCost, setGRN, setGRN, setGRN, setInTransit, setLocation, setLocation, setLocation, setOwner, setOwner, setOwner, setPartNumber, setPartNumber, setPartNumber, setPurchaseDate, setQuantity, setQuantity, setSerialNumber, setStore, setStore, setStore, toDisplay, updateCost, validate, validateDelete, validateUpdate, wasDataPicked, wasDataPickedMethods inherited from class com.storedobject.core.StoredObject
addLink, addLink, addLink, addLink, addLink, addLink, addLink, addLink, checkCurrency, checkCurrency, checkForDuplicate, checkForDuplicate, checkTimeZone, checkTransaction, clearObjectLinks, contemporary, copy, copy, count, count, count, count, count, count, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, create, created, delete, delete, delete, deleted, directUpdate, equals, exists, exists, exists, exists, exists, existsFileData, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsMaster, existsMaster, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, family, family, family, family, fill, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getActor, getAttachment, getAttachmentId, getChildren, getContemporaryOf, getDeleted, getDeleted, getExistsCondition, getExistsCondition, getFileData, getFileData, getHistorical, getId, getKeyIndex, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getNotExistsCondition, getNotExistsCondition, getParent, getParent, getParent, getParentId, getParentId, getParentId, getRelated, getRelated, getTransaction, getTransactionId, getTransactionIP, getUnique, getUniqueCondition, hashCode, inserted, isModified, isVirtual, list, list, list, list, list, list, list, list, list, list, list, list, list, listDeletedIds, listFileData, listFileData, listHistory, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listTree, listTree, listTree, listTree, listViaQuery, listViaQuery, load, load, load, load, loadAttributesFrom, loaded, loading, makeNew, makeVirtual, moduleName, nextVersion, objectLink, objectLink, objectLink, objectLinks, objectLinks, old, person, previousVersion, previousVersion, query, query, query, query, query, query, query, query, query, query, query, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, reload, reload, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeReverseLinks, removeReverseLinks, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, saved, saving, setMaster, setRawValue, setTransaction, stringify, tableName, timestamp, toCode, transacting, undelete, undelete, undeleted, updated, user, userId, validateChildAttach, validateChildDetach, validateChildUpdate, validateInsert, validateParentAttach, validateParentDetach, validateParentUpdate, validateUndelete, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.storedobject.core.HasInventoryItem
getInventoryItem, getInventoryItemType, getItemFromHistory
-
Constructor Details
-
SubscriptionItem
public SubscriptionItem()
-
-
Method Details
-
columns
-
setDateFrom
-
getDateFrom
-
setDateTo
-
getDateTo
-
validateData
Description copied from class:StoredObjectThe system will invoke this whenever the object is saved to the DB. It will be invoked in all cases while creating new objects and updating/deleting/undeleting existing objects. If any exception is raised by this method, the process of saving to the DB will be abandoned.
Note: This method is mainly used to validate the data of all attributes of the object, and it may be used by others for validating the object. For example, front-end data-entry systems can use this method for validating the object.
- Overrides:
validateDatain classInventoryItem- Parameters:
tm- Current transaction manager.- Throws:
Exception- If data is invalid.
-
setSubscriptionNumber
-
getSubscriptionNumber
-
getPartNumber
- Overrides:
getPartNumberin classInventoryItem
-
get
-
list
public static ObjectIterator<? extends SubscriptionItem> list(String serial, SubscriptionItemType itemType) -
toString
Description copied from class:StoredObjectString representation of the instance. Mostly used for logging purposes.- Overrides:
toStringin classInventoryItem- Returns:
- String representation of the instance.
-
customizeMetadata
-