Package com.storedobject.core
Interface Detail
- All Known Subinterfaces:
SingleInstanceDetail
- All Known Implementing Classes:
AbstractCheckListItem
,AccountDocument
,AlarmSwitch
,ApplicableDataLogic
,Attachment
,AuditTrailLinkConfiguration
,BusinessDocument
,CheckListItem
,CheckListTemplateItem
,ColumnDefinition
,ConsignmentItem
,ConsignmentPacket
,Contact
,Document
,Entry
,Error
,ExternalSystemUser
,FileCirculation
,FileData
,FileFolder
,FullConsumption
,IndexDefinition
,InventoryAPN
,InventoryGRNItem
,InventoryPOItem
,InventoryROItem
,InventorySaleItem
,InventoryTransferItem
,LandedCost
,LinkDefinition
,MaterialIssuedItem
,MaterialRequestItem
,MaterialReturnedItem
,MaterialTransferredItem
,MemoAttachment
,MessageEscalation
,ModuleLogic
,PersonalDocument
,PseudoTranApproval
,PseudoTranDetail
,ReportColumnDefinition
,ServerLink
,UIFieldMetadata
,UnpostedJournalEntry
,ValueDefinition
,ValueImagePosition
,ValueLimit
,VirtualFileData
public interface Detail
The interface to denote that a
StoredObject
class is keeping details of a "master"
StoredObject
class.- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
copyValuesFrom
(Detail detail) Copy the attribute values from another instance.getId()
Get theId
of the detail class instance.default Id
Get theId
of the class instance that makes this instance unique.default Object
Get the unique value that determines the uniqueness of the detail entries.boolean
isDetailOf
(Class<? extends StoredObject> masterClass) Check if the given class is a "master" for this class.
-
Method Details
-
getId
-
getUniqueId
-
getUniqueValue
Get the unique value that determines the uniqueness of the detail entries. By default,null
is returned so that no uniqueness can be checked using this. (In most cases,getUniqueId()
may be enough unless some other type of values need to be checked).- Returns:
- Return the value to determine the uniqueness of the detail entries.
-
copyValuesFrom
Copy the attribute values from another instance. (This method is no more in use and may be removed in the future).- Parameters:
detail
- Another instance from which values to be copied.
-
isDetailOf
Check if the given class is a "master" for this class. (Must return a consistent value).- Parameters:
masterClass
- Class to check.- Returns:
- True if it is a "master" to this detail class. Otherwise, false.
-