public class FilteringDBManBOChangeEvent extends DBManBOChangeEvent
Constructor and Description |
---|
FilteringDBManBOChangeEvent(DBManBOChangeEvent _event,
DBManEventFilter _filter) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getAdditionalInformation()
returns the additional information on the client which is already tailored for the current filter
this event is delivered for.
|
BO |
getBO(int i) |
java.lang.Class |
getBOClass(int i) |
short |
getBOFlag(int i) |
long |
getBOId(int i) |
java.util.List<java.lang.Long> |
getBOIdsForClass(java.lang.Class _clazz)
Returns the BO-Ids of this event matching the passed class.
|
java.util.List<java.lang.Long> |
getBOIdsForClass(java.lang.Class _clazz,
short bOFlag)
Returns the Ids of all BOs in this event matching the passed class and flag.
|
java.util.List<java.lang.Long> |
getBOIdsForClasses(java.lang.Class[] _clazzes)
Returns the BO-Ids of this event matching any of the passed classes.
|
java.util.List<java.lang.Long> |
getBOIdsForClasses(java.lang.Class[] _clazzes,
short bOFlag)
Returns the Ids of all BOs in this event matching any of the passed classes and flag.
|
java.util.List<BO> |
getBOs(BOLoaderI _bol)
Loads and returns the BOs of this event.
|
java.util.List<BO> |
getBOs(BOLoaderI _bol,
java.lang.Class _clazz) |
java.util.List |
getBOs(BOLoaderI _bol,
java.lang.Class _clazz,
boolean _onlyChanged)
Loads and returns the changed BOs of this event.
|
java.util.List |
getBOs(BOLoaderI _bol,
java.lang.Class _clazz,
short bOFlag)
Loads and returns the BOs of this event matching the passed flag.
|
LazyBOReference[] |
getBOsAsLazyBOReferences(BOLoaderI _bol)
Used for NotificationModule to avoid unnecessary object creation (and might
probably be useful elsewhere too, so placed this method here instead of in
NotificationModule).
|
LazyBOReference[] |
getBOsAsLazyBOReferences(BOLoaderI _bol,
java.lang.Class _clazz) |
LazyBOReference[] |
getBOsAsLazyBOReferences(BOLoaderI _bol,
java.lang.Class _clazz,
boolean _created) |
LazyBOReference[] |
getBOsAsLazyBOReferences(BOLoaderI _bol,
java.lang.Class _clazz,
boolean _created,
boolean _changed) |
LazyBOReference[] |
getBOsAsLazyBOReferences(BOLoaderI _bol,
java.lang.Class _clazz,
boolean _created,
boolean _changed,
boolean _deleted) |
BT |
getBT(int i) |
int |
getBTsSize() |
java.util.List<java.lang.Long> |
getChangedBOIds(java.lang.Class _clazz)
Returns the Ids of all changed BOs in this event matching the passed class.
|
java.util.List<java.lang.Long> |
getChangedBOIds(java.lang.Class[] _clazzes)
Returns the Ids of all changed BOs in this event matching any of the passed classes.
|
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol) |
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol,
java.lang.Class _clazz) |
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol,
java.lang.Class _clazz,
java.lang.String _attrName) |
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol,
java.lang.Class _clazz,
java.lang.String[] _attrNames)
Load all BOs that were changed by this event with the given loader and return them.
|
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol,
java.lang.Class _clazz,
java.lang.String[] _attrNames,
boolean _lazy) |
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol,
java.lang.Class _clazz,
java.lang.String[] _attrNames,
boolean _lazy,
boolean _warnSlow) |
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol,
java.lang.Class _clazz,
java.lang.String[] _attrNames,
boolean _lazy,
boolean _warnSlow,
boolean _includeDeletions) |
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol,
java.lang.Class _clazz,
java.lang.String _attrName,
boolean _lazy) |
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol,
java.lang.Class _clazz,
java.lang.String _attrName,
boolean _lazy,
boolean _warnSlow) |
java.util.Map<java.lang.Long,FlagStore> |
getChangedBOs(BOLoaderI _bol,
java.lang.Class _clazz,
java.lang.String _attrName,
boolean _lazy,
boolean _warnSlow,
boolean _includeDeletions) |
java.util.Map |
getCreatedBOs(BOLoaderI _bol)
Loads and returns the newly created BOs of this event.
|
java.util.Map |
getCreatedBOs(BOLoaderI _bol,
java.lang.Class _clazz) |
java.util.Map |
getCreatedBOs(BOLoaderI _bol,
java.lang.Class _clazz,
boolean _includeUndeletions) |
java.lang.String |
getDescription() |
DBManEvent |
getFilteringInstance(DBManEventFilter f)
Used on client- and server-side for getting an event which only returns the data actually requested in the passed filter,
possibly enriched with additional information calculated by an optional server-side information calculator.
|
long[] |
getNodeIds() |
int |
getSize() |
long[] |
getTxIds() |
int |
getType() |
java.util.Map<java.lang.Long,Benutzer> |
getUsers(BOLoaderI _bol)
Returns all users which are involved in Transactions included in this event
|
java.lang.Boolean |
isFromNode(long _nodeNumber)
Checks whether this Event contains a Transaction which originated on the node
with the given number.
|
boolean |
isOneOfClass(java.lang.Class _clazz)
Tells if this event concerns an object of the given class (including
subclasses).
|
boolean |
isOneOfClasses(java.lang.Class[] _clazzes)
Tells if this event concerns an object of one of the given classes
(including subclasses).
|
boolean |
isOnlyTriggeredBy(Benutzer user)
Delegates to the real event, including unfiltered TXs, because the accessed attributes are not used for filtered events
|
boolean |
isTriggeredBy(Benutzer _user)
Delegates to the real event, including unfiltered TXs, because the accessed attributes are not used for filtered events
|
void |
markForTrimming(DBManEventFilter f)
(possibly) builds and fills a boolean-array with markers at the indices at which actually requested,
i.e. fitting, objects are found in this event or sets noTrimming if no filter is passed
|
DBManEvent |
trim()
uses the information stored by markForTrimming in the passed event e
(either noTrimming or requestedInAnyFilter) to trim down the data in this event
|
boolean |
wasChanged(int i) |
boolean |
wasCreated(int i) |
boolean |
wasDeleted(int i) |
boolean |
wasUndeleted(int i) |
addServerSideCalculatedInformation, getBOs, getBPsByBOId, getBPsGroupedByBOId, getRelevantIndices, getServerSideCalculatedInformationForClass, getServerSideCalculatedInformationForClasses, isFromUs, of
isEmpty
clone, getServerNodeNumber, getServerSideCalculatedInformation, getTrimmedSize, setServerNodeNumber, setServerSideCalculatedInformation
public FilteringDBManBOChangeEvent(DBManBOChangeEvent _event, DBManEventFilter _filter)
public DBManEvent getFilteringInstance(DBManEventFilter f)
DBManEvent
getFilteringInstance
in class DBManBOChangeEvent
public java.lang.Object[] getAdditionalInformation()
DBManEvent
getAdditionalInformation
in class DBManEvent
public int getSize()
getSize
in interface DBManBOChangeEventI
getSize
in class DBManBOChangeEvent
public BO getBO(int i)
getBO
in class DBManBOEvent
DBManBOEvent.getSize()
-1public long getBOId(int i)
getBOId
in interface DBManBOChangeEventI
getBOId
in class DBManBOEvent
DBManBOEvent.getSize()
-1public java.lang.Class getBOClass(int i)
getBOClass
in interface DBManBOChangeEventI
getBOClass
in class DBManBOEvent
DBManBOEvent.getSize()
-1public short getBOFlag(int i)
getBOFlag
in class DBManBOChangeEvent
public int getType()
getType
in class DBManBOChangeEvent
public java.lang.String getDescription()
getDescription
in class DBManBOChangeEvent
public int getBTsSize()
getBTsSize
in class DBManBOChangeEvent
public BT getBT(int i)
getBT
in class DBManBOChangeEvent
public long[] getTxIds()
getTxIds
in interface DBManBOChangeEventI
getTxIds
in class DBManBOChangeEvent
public long[] getNodeIds()
getNodeIds
in class DBManBOChangeEvent
public boolean isOneOfClass(java.lang.Class _clazz)
DBManBOEvent
isOneOfClass
in class DBManBOEvent
_clazz
- The class of which we want objects of.public boolean isOneOfClasses(java.lang.Class[] _clazzes)
DBManBOEvent
isOneOfClasses
in class DBManBOEvent
_clazzes
- The classes of which we want objects of.public boolean isTriggeredBy(Benutzer _user)
isTriggeredBy
in interface DBManBOChangeEventI
isTriggeredBy
in class DBManBOChangeEvent
_user
- The user to check against this Eventpublic boolean isOnlyTriggeredBy(Benutzer user)
isOnlyTriggeredBy
in interface DBManBOChangeEventI
isOnlyTriggeredBy
in class DBManBOChangeEvent
user
- the user to check against this Eventpublic java.lang.Boolean isFromNode(long _nodeNumber)
DBManBOChangeEvent
isFromNode
in class DBManBOChangeEvent
_nodeNumber
- The number of the node to check against this Eventpublic java.util.Map<java.lang.Long,Benutzer> getUsers(BOLoaderI _bol)
DBManBOChangeEvent
getUsers
in class DBManBOChangeEvent
_bol
- A BOLoader to load the userspublic java.util.List<java.lang.Long> getBOIdsForClass(java.lang.Class _clazz)
DBManBOEvent
getBOIdsForClass
in class DBManBOEvent
_clazz
- return only BO-Ids of this class (including subclasses)public java.util.List<java.lang.Long> getBOIdsForClasses(java.lang.Class[] _clazzes)
DBManBOEvent
getBOIdsForClasses
in class DBManBOEvent
_clazzes
- return only BO-Ids of these classes (including subclasses)public java.util.List<BO> getBOs(BOLoaderI _bol)
DBManBOEvent
getBOs
in class DBManBOEvent
_bol
- the BOLoaderI which should be used for loading the BOs.public java.util.List<BO> getBOs(BOLoaderI _bol, java.lang.Class _clazz)
getBOs
in class DBManBOEvent
public void markForTrimming(DBManEventFilter f)
DBManBOChangeEvent
markForTrimming
in class DBManBOChangeEvent
public DBManEvent trim()
DBManBOChangeEvent
trim
in class DBManBOChangeEvent
public java.util.Map getCreatedBOs(BOLoaderI _bol)
DBManBOChangeEvent
FlagStore
object that additionally provides an overview on the type of recorded changes by
this event.getCreatedBOs
in interface DBManBOChangeEventI
getCreatedBOs
in class DBManBOChangeEvent
_bol
- a BOLoaderI which will (only) be used to getBOs() and as a
"cache" for the BOs that are loaded this way.public java.util.Map getCreatedBOs(BOLoaderI _bol, java.lang.Class _clazz)
getCreatedBOs
in interface DBManBOChangeEventI
getCreatedBOs
in class DBManBOChangeEvent
public java.util.Map getCreatedBOs(BOLoaderI _bol, java.lang.Class _clazz, boolean _includeUndeletions)
getCreatedBOs
in class DBManBOChangeEvent
public LazyBOReference[] getBOsAsLazyBOReferences(BOLoaderI _bol)
DBManBOChangeEvent
getBOsAsLazyBOReferences
in class DBManBOChangeEvent
public LazyBOReference[] getBOsAsLazyBOReferences(BOLoaderI _bol, java.lang.Class _clazz)
getBOsAsLazyBOReferences
in class DBManBOChangeEvent
public LazyBOReference[] getBOsAsLazyBOReferences(BOLoaderI _bol, java.lang.Class _clazz, boolean _created)
getBOsAsLazyBOReferences
in class DBManBOChangeEvent
public LazyBOReference[] getBOsAsLazyBOReferences(BOLoaderI _bol, java.lang.Class _clazz, boolean _created, boolean _changed)
getBOsAsLazyBOReferences
in class DBManBOChangeEvent
public LazyBOReference[] getBOsAsLazyBOReferences(BOLoaderI _bol, java.lang.Class _clazz, boolean _created, boolean _changed, boolean _deleted)
getBOsAsLazyBOReferences
in class DBManBOChangeEvent
public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol)
getChangedBOs
in interface DBManBOChangeEventI
getChangedBOs
in class DBManBOChangeEvent
#getChangedBOs(BOLOaderI, Class, String[], boolean, boolean, boolean)
public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol, java.lang.Class _clazz)
getChangedBOs
in interface DBManBOChangeEventI
getChangedBOs
in class DBManBOChangeEvent
public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol, java.lang.Class _clazz, java.lang.String _attrName)
getChangedBOs
in interface DBManBOChangeEventI
getChangedBOs
in class DBManBOChangeEvent
public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol, java.lang.Class _clazz, java.lang.String _attrName, boolean _lazy)
getChangedBOs
in class DBManBOChangeEvent
public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol, java.lang.Class _clazz, java.lang.String _attrName, boolean _lazy, boolean _warnSlow)
getChangedBOs
in class DBManBOChangeEvent
public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol, java.lang.Class _clazz, java.lang.String _attrName, boolean _lazy, boolean _warnSlow, boolean _includeDeletions)
getChangedBOs
in class DBManBOChangeEvent
public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol, java.lang.Class _clazz, java.lang.String[] _attrNames)
DBManBOChangeEvent
getChangedBOs
in class DBManBOChangeEvent
_bol
- the nonnull BOLoader to load matching BOs with._clazz
- only instances of the given class are returned, null to disable this allowlist-filter._attrNames
- only include BOs if one of the given attribute names were changed.
Names are only checked against changes and do not have to exist on all applicable BOs.FlagStore
for and with this loaded BO as value.public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol, java.lang.Class _clazz, java.lang.String[] _attrNames, boolean _lazy)
getChangedBOs
in class DBManBOChangeEvent
public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol, java.lang.Class _clazz, java.lang.String[] _attrNames, boolean _lazy, boolean _warnSlow)
getChangedBOs
in class DBManBOChangeEvent
public java.util.Map<java.lang.Long,FlagStore> getChangedBOs(BOLoaderI _bol, java.lang.Class _clazz, java.lang.String[] _attrNames, boolean _lazy, boolean _warnSlow, boolean _includeDeletions)
getChangedBOs
in class DBManBOChangeEvent
public java.util.List<java.lang.Long> getChangedBOIds(java.lang.Class _clazz)
DBManBOChangeEvent
getChangedBOIds
in class DBManBOChangeEvent
_clazz
- return only BO-Ids of this class (including subclasses)public java.util.List<java.lang.Long> getChangedBOIds(java.lang.Class[] _clazzes)
DBManBOChangeEvent
getChangedBOIds
in class DBManBOChangeEvent
_clazzes
- return only BO-Ids of these classes (including subclasses)public java.util.List<java.lang.Long> getBOIdsForClass(java.lang.Class _clazz, short bOFlag)
DBManBOChangeEvent
getBOIdsForClass
in class DBManBOChangeEvent
_clazz
- return only BO-Ids of this class (including subclasses)bOFlag
- return only BO-Ids of BOs which have any of these or-ed FlagStore.FLAG_*public java.util.List<java.lang.Long> getBOIdsForClasses(java.lang.Class[] _clazzes, short bOFlag)
DBManBOChangeEvent
getBOIdsForClasses
in class DBManBOChangeEvent
_clazzes
- return only BO-Ids of these classes (including subclasses)bOFlag
- return only BO-Ids of BOs which have any of these or-ed FlagStore.FLAG_*public java.util.List getBOs(BOLoaderI _bol, java.lang.Class _clazz, boolean _onlyChanged)
DBManBOChangeEvent
getBOs
in class DBManBOChangeEvent
_bol
- the BOLoaderI which should be used for loading the BOs._clazz
- if given/not null tells that only BOs of this class
(including subclasses) should be loaded and returned; if
not given/null all BOs will be loaded.public java.util.List getBOs(BOLoaderI _bol, java.lang.Class _clazz, short bOFlag)
DBManBOChangeEvent
getBOs
in class DBManBOChangeEvent
_bol
- the BOLoaderI which should be used for loading the BOs._clazz
- if given/not null tells that only BOs of this class
(including subclasses) should be loaded and returned; if
not given/null all BOs will be loaded.bOFlag
- return only BO-Ids of BOs which have any of these or-ed FlagStore.FLAG_*public boolean wasChanged(int i)
wasChanged
in class DBManBOChangeEvent
public boolean wasCreated(int i)
wasCreated
in class DBManBOChangeEvent
public boolean wasDeleted(int i)
wasDeleted
in class DBManBOChangeEvent
public boolean wasUndeleted(int i)
wasUndeleted
in class DBManBOChangeEvent
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.