Package com.storedobject.core
Interface ObjectLoader<T extends StoredObject>
- Type Parameters:
T- Type ofStoredObject.
- All Superinterfaces:
FilterMethods<T>
- All Known Subinterfaces:
ObjectGridData<T,,ROOT> ObjectList<T>,ObjectLoader<T>
- All Known Implementing Classes:
AbstractCheckListForestBrowser,AbstractInvoiceBrowser,AbstractLinkGrid,AbstractObjectForest,AbstractReceiveMaterialReturned,AbstractReceiveMaterialTransferred,AbstractRequestMaterial,AbstractReturnMaterial,AbstractSale,AbstractSendAndReceiveMaterial,ApproveTransaction,BaseCustomerInvoiceBrowser,BaseObjectForest,BaseProcessMaterialRequest,BaseReceiveMaterialRequested,BaseRequestMaterial,BaseSupplierInvoiceBrowser,BlockComboField,CheckListForestBrowser,CrossServerManager,CustomerInvoiceBrowser,DataView,DetailLinkGrid,EditableObjectGrid,EditableObjectListProvider,FileManager,FileViewer,FileViewerGrid,GRN,InquiryBrowser,ItemComboField,ItemsSentForRepair,JournalVoucherBrowser,LoanOutItems,LocationField,LocationMonitoring,ManageBiometric,MemoSystem,ObjectBrowser,ObjectBrowserEditor,ObjectBrowserViewer,ObjectCache,ObjectCacheList,ObjectComboField,ObjectForest,ObjectForest,ObjectForestBrowser,ObjectForestEditor,ObjectForestProvider,ObjectForestViewer,ObjectGrid,ObjectListEditor,ObjectListField,ObjectListGrid,ObjectListProvider,ObjectMemoryGrid,ObjectMemoryList,ObjectSearchBrowser,ObjectTable,ObjectTree,ObjectTree,ObjectTreeBrowser,ObjectTreeEditor,ObjectTreeProvider,ObjectTreeViewer,PackingUnitBrowser,POBrowser,ProcessMaterialRequest,ReceiveMaterialRequested,ReceiveMaterialReturned,ReceiveMaterialTransferred,ReferenceLinkGrid,ReferenceLinkListProvider,RequestMaterial,RequestTool,RestrictedSystemUserBrowser,ReturnMaterial,Sale,SendItemsForRepair,SendItemsOut,SupplierInvoiceBrowser,SupportSystem,SystemUserGroupBrowser,TemplateBrowser,TextContentBrowser,TicketingSystem,ToolMonitoring,TransferMaterial,UnitDefinitionBrowser
Methods for loading instances of
StoredObject.- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidThis method is called whenever a filter condition is changed.default booleancanContain(T object) Check whether the given object could be there in the objects loaded by this loader.default voidclear()Clear - remove all entries.default booleanRetrieve sub-classes?default intGet the current link type.default StoredObjectGet the current master instance if available.The class of the instances.default StringGet the current "ORDER BY" clause.default booleanRetrieve sub-classes?default voidload()Load the instances.default voidload(boolean any) Load the instances.default voidload(int linkType, StoredObject master) Load the links of the given "master" instance.default voidload(int linkType, StoredObject master, boolean any) Load the links of the given "master" instance.default voidload(int linkType, StoredObject master, String condition) Load the links of the given "master" instance.default voidload(int linkType, StoredObject master, String condition, boolean any) Load the links of the given "master" instance.default voidload(int linkType, StoredObject master, String condition, String orderedBy) Load the links of the given "master" instance.default voidload(int linkType, StoredObject master, String condition, String orderedBy, boolean any) Load the links of the given "master" instance.voidload(ObjectIterator<T> objects) Load the given instances.default voidLoad the instances created from the query.default voidLoad the instances created from the query.default voidload(StoredObject master, String condition) Load the links of the given "master" instance.default voidload(StoredObject master, String condition, boolean any) Load the links of the given "master" instance.default voidload(StoredObject master, String condition, String orderedBy) Load the links of the given "master" instance.default voidload(StoredObject master, String condition, String orderedBy, boolean any) Load the links of the given "master" instance.default voidLoad the instances created from the list ofIds.default voidLoad the instances.default voidLoad the instances.default voidLoad the instances.default voidLoad the instances.default voidload(Collection<T> objects) Load the given instances.default voidLoad the given instances.default voidLoad the given instances.default voidreload()Reload all entries.default voidsetLinkType(int linkType) Set the link type.default voidsetLinkType(int linkType, boolean load) Set the link type.default voidsetMaster(StoredObject master) Set the master instance.default voidsetMaster(StoredObject master, boolean load) Set the master instance.default voidsetOrderBy(String orderBy) Set the "ORDER BY" clause.default voidsetOrderBy(String orderBy, boolean load) Set the "ORDER BY" clause.intsize()Get the instances count.Methods inherited from interface com.storedobject.core.FilterMethods
applyFilterPredicate, getEffectiveCondition, getFilterCondition, getLoadFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setLoadFilter, setLoadFilter, setViewFilter, setViewFilter
-
Method Details
-
isAllowAny
default boolean isAllowAny()Retrieve sub-classes?- Returns:
- Whether instanced of the subclasses to be retrieved or not.
-
getAllowAny
default boolean getAllowAny()Retrieve sub-classes?- Returns:
- Whether instanced of the subclasses to be retrieved or not. (Same as
isAllowAny()).
-
getOrderBy
-
setOrderBy
Set the "ORDER BY" clause.- Parameters:
orderBy- "ORDER BY" clause to set.
-
setOrderBy
Set the "ORDER BY" clause.- Parameters:
orderBy- "ORDER BY" clause to set.load- Whether to immediately reload with this "ORDER BY" clause or not.
-
getMaster
Get the current master instance if available.- Returns:
- Current master instance if available.
-
setMaster
Set the master instance.- Parameters:
master- Master instance.
-
setMaster
Set the master instance.- Parameters:
master- Master instance.load- Whether to immediately reload with this master or not.
-
getLinkType
default int getLinkType()Get the current link type.- Returns:
- Link type.
-
setLinkType
default void setLinkType(int linkType) Set the link type.- Parameters:
linkType- Link type to set.
-
setLinkType
default void setLinkType(int linkType, boolean load) Set the link type.- Parameters:
linkType- Link type to set.load- Whether to immediately reload with this link type or not. (Applicable only if master is available).
-
reload
default void reload()Reload all entries. -
applyFilter
default void applyFilter()Description copied from interface:FilterMethodsThis method is called whenever a filter condition is changed. Methods with default implementation already invoke this method. If any of those methods are overridden, make sure that it invokes this method so that logic to handle filter changes can be coded here.- Specified by:
applyFilterin interfaceFilterMethods<T extends StoredObject>
-
clear
default void clear()Clear - remove all entries. -
load
default void load()Load the instances. Current filtering conditions (return value ofFilterMethods.getFilterCondition()) including "load filter" if set will be applied. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be retrieved or not. The order will be determined by the return value ofgetOrderBy(). If "master" is already set, "links" of the "master" will be loaded. -
load
default void load(boolean any) Load the instances. Current filtering conditions (return value ofFilterMethods.getFilterCondition()) including "load filter" if set will be applied. The order will be determined by the return value ofgetOrderBy(). If "master" is already set, "links" of the "master" will be loaded.- Parameters:
any- Whether instanced of the subclasses to be retrieved or not.
-
load
Load the instances. Current "load filter" if set will be applied. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be retrieved or not. The order will be determined by the return value ofgetOrderBy(). If "master" is already set, "links" of the "master" will be loaded.- Parameters:
condition- Filtering condition to be applied.
-
load
Load the instances. Current "load filter" if set will be applied. The order will be determined by the return value ofgetOrderBy(). If "master" is already set, "links" of the "master" will be loaded.- Parameters:
condition- Filtering condition to be applied.any- Whether instanced of the subclasses to be retrieved or not.
-
load
Load the instances. Current "load filter" if set will be applied. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be retrieved or not. If "master" is already set, "links" of the "master" will be loaded.- Parameters:
condition- Filtering condition to be applied.orderedBy- "ORDER BY" clause to use while loading.
-
load
Load the instances. Current "load filter" if set will be applied. If "master" is already set, "links" of the "master" will be loaded.- Parameters:
condition- Filtering condition to be applied.orderedBy- "ORDER BY" clause to use while loading.any- Whether instanced of the subclasses to be retrieved or not.
-
load
Load the links of the given "master" instance. Current "load filter" if set will be applied. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be retrieved or not. The order will be determined by the return value ofgetOrderBy().- Parameters:
master- Master instance.condition- Filtering condition to be applied.
-
load
Load the links of the given "master" instance. Current "load filter" if set will be applied. The order will be determined by the return value ofgetOrderBy().- Parameters:
master- Master instance.condition- Filtering condition to be applied.any- Whether instanced of the subclasses to be retrieved or not.
-
load
Load the links of the given "master" instance. Current "load filter" if set will be applied. The order will be determined by the return value ofgetOrderBy().- Parameters:
master- Master instance.condition- Filtering condition to be applied.orderedBy- "ORDER BY" clause to use while loading.
-
load
Load the links of the given "master" instance. Current "load filter" if set will be applied.- Parameters:
master- Master instance.condition- Filtering condition to be applied.orderedBy- "ORDER BY" clause to use while loading.any- Whether instanced of the subclasses to be retrieved or not.
-
load
Load the links of the given "master" instance. Current filtering conditions (return value ofFilterMethods.getFilterCondition()) including "load filter" if set will be applied. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be retrieved or not. The order will be determined by the return value ofgetOrderBy().- Parameters:
linkType- Link type.master- Master instance.
-
load
Load the links of the given "master" instance. Current filtering conditions (return value ofFilterMethods.getFilterCondition()) including "load filter" if set will be applied. The order will be determined by the return value ofgetOrderBy().- Parameters:
linkType- Link type.master- Master instance.any- Whether instanced of the subclasses to be retrieved or not.
-
load
Load the links of the given "master" instance. Current "load filter" if set will be applied. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be retrieved or not. The order will be determined by the return value ofgetOrderBy().- Parameters:
linkType- Link type.master- Master instance.condition- Filtering condition to be applied.
-
load
Load the links of the given "master" instance. Current "load filter" if set will be applied. The order will be determined by the return value ofgetOrderBy().- Parameters:
linkType- Link type.master- Master instance.condition- Filtering condition to be applied.any- Whether instanced of the subclasses to be retrieved or not.
-
load
Load the links of the given "master" instance. Current "load filter" if set will be applied. The order will be determined by the return value ofgetOrderBy().- Parameters:
linkType- Link type.master- Master instance.condition- Filtering condition to be applied.orderedBy- "ORDER BY" clause to use while loading.
-
load
default void load(int linkType, StoredObject master, String condition, String orderedBy, boolean any) Load the links of the given "master" instance. Current "load filter" if set will be applied.- Parameters:
linkType- Link type.master- Master instance.condition- Filtering condition to be applied.orderedBy- "ORDER BY" clause to use while loading.any- Whether instanced of the subclasses to be retrieved or not.
-
load
Load the given instances. Current "load filter" if set will be applied. However,getOrderBy()result will be ignored. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be restricted or not.- Parameters:
objects- Objects to be loaded.
-
load
Load the given instances. Current "load filter" if set will be applied. However,getOrderBy()result will be ignored. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be restricted or not.- Parameters:
objects- Objects to be loaded.
-
load
Load the instances created from the query. Current "load filter" if set will be applied. However,getOrderBy()result will be ignored. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be restricted or not.- Parameters:
query- Query from which objects to be loaded.
-
load
Load the instances created from the query. Current "load filter" if set will be applied. However,getOrderBy()result will be ignored.- Parameters:
query- Query from which objects to be loaded.any- Whether instanced of the subclasses to be retrieved or not.
-
load
Load the instances created from the list ofIds. Current "load filter" if set will be applied. However,getOrderBy()result will be ignored. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be restricted or not.- Parameters:
idList- List ofIds from which objects to be loaded.
-
load
Load the given instances. Current "load filter" if set will be applied. However,getOrderBy()result will be ignored. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be restricted or not.- Parameters:
objects- Objects to be loaded.
-
load
Load the given instances. Current "load filter" if set will be applied. However,getOrderBy()result will be ignored. Also, the value returned bygetAllowAny()will determine whether instanced of the subclasses to be restricted or not.- Parameters:
objects- Objects to be loaded.
-
getObjectClass
-
size
int size()Get the instances count.- Returns:
- Count.
-
canContain
Check whether the given object could be there in the objects loaded by this loader.Note: For customized loaders, this may not check the custom conditions.
- Parameters:
object- Object to check.- Returns:
- True/false.
-