public class GrooqlBOMaske extends GrooqlBOMaskeBase implements BOFilterI
BOMaske
subclass that additionally uses a GrooqlFilter
to
check if given objects match. This allows for (more) efficient querying of
the set of fitting objects.ATT_GrooqlScript, ENT_GrooqlBOMaske
ATT_Attribut, ATT_AttributBX, ATT_BOAssociatedAlarms, ATT_Entitaet, ATT_Script, ATT_Tid, ATT_VerfuegbareAttribute, ATT_Zuweisungen, ENT_BOMaske
ATT_Beschreibung, ATT_KinderRefs, ATT_L10nBeschreibung, ATT_L10nName, ATT_Name, ENT_Benannt
ATT_AlsAntwortAnBeiAuftraegen, ATT_AlsEmpfaengerBCCBeiAuftraegen, ATT_AlsEmpfaengerBeiAuftraegen, ATT_AlsKontextBOBeiAuftraegen, ATT_WirdAlsAntwortAnVerwendetBeiAlarmen, ATT_WirdBenachrichtigtBCCBeiAlarm, ATT_WirdBenachrichtigtBeiAlarm, ENT_CoreBO
BLOB_KEY, CANCEL_RECALC_CALLED, D_0, D_1, D_10, D_100, D_1000, D_10000, D_5, D_MINUS_1, D_MINUS_ONE, D_ONE, D_ZERO, doExWriteLRMFunction, EMPTY_ARRAY, F_0, F_1, L_0, L10N_KEY_BO_INSTANTIATION, L10N_KEY_BO_WITH_PROTECTED_CONSTRUCTOR, NULL_AGGREGATE, NULL_ITERATOR
ATT_Badge, ATT_Badge2, ATT_Badge3, ATT_Badge4, ATT_BLOBCreatedBy, ATT_BLOBCreatedOn, ATT_BLOBDeletedBy, ATT_BLOBDeletedOn, ATT_BLOBLastModifiedBy, ATT_BLOBLastModifiedOn, ATT_Bot, ATT_Crea, ATT_CreatedBy, ATT_CreatedModifiedText, ATT_Id, ATT_InvolvedInProcs, ATT_LastModifiedBy, ATT_Ldel, ATT_Lmod, ATT_Procs, EMPTY_ARRAY, ENT_BO
Constructor and Description |
---|
GrooqlBOMaske() |
Modifier and Type | Method and Description |
---|---|
static GrooqlBOMaske |
adjustOrCreateInstance(Transaction tx,
java.lang.Class<? extends BO> clazz,
java.lang.String name,
java.lang.String descr)
Factory method that creates a new Grooql-Mask with the passed parameters or
returns an existing one, if a mask with the passed name already exists.
|
static GrooqlBOMaske |
adjustOrCreateInstance(Transaction tx,
java.lang.Class<? extends BO> clazz,
java.lang.String name,
java.lang.String descr,
java.lang.String grooqlScript) |
static GrooqlBOMaske |
adjustOrCreateInstance(Transaction tx,
java.lang.Class<? extends BO> clazz,
java.lang.String name,
java.lang.String descr,
java.lang.String grooqlScript,
java.lang.String script) |
boolean |
changeMayAffectBOSet(BOProcI bpi)
Tells if the given
BOProcI represents a change that may alter the set of BO s that this
BOMaske represents. |
long |
count()
Gets the number of
BOs in the DB that match this mask. |
long |
count(BOLoaderI bol) |
boolean |
fits(BOI _bo) |
boolean |
fits(BOI _bo,
java.lang.String _att) |
boolean |
fits(BOI _bo,
java.lang.String _att,
boolean _errorValue) |
void |
init(SchemaI _schema,
Benutzer _user) |
QueryResultsI |
query()
Gets all
BOs that match this mask. |
QueryResultsI |
query(BOLoaderI bol) |
QueryResultsI |
query(BOLoaderI bol,
java.lang.String additionalClauses) |
java.util.Collection |
queryBO()
Gets all
BOs that match this mask. |
java.util.Collection |
queryBO(BOLoaderI bol) |
java.util.Collection |
queryBO(BOLoaderI bol,
java.lang.String additionalClauses) |
long |
upperCount()
Gets the maximum number of
BOs in the DB that may
match this mask. |
long |
upperCount(BOLoaderI bol) |
copyFrom, copyFrom, equalPayload, getGrooqlScript, getGrooqlScriptNE, getGrooqlScriptNN, getGrooqlScriptNN, needGrooqlScript, readExternal, setBOLoader, setGrooqlScript, slim, slim, writeExternal
afterVerifyOnServer, byName, byTid, changeAltersBOClass, createScript, createScript, fits, fits, fits, fits, fits, fits, getAttributBX, getBOClass, getEntityFromEntitaet, getLeastEffortComparator, getLeastEffortRZComparator, getVerfuegbareAttribute, initEnvironment, initEnvironment, isInitialized, mightNeedFitsWithBO, parseAttributeString, parseAttributeString, query, setAttribut, setAttributBX, toString, verifyOnClient, verifyOnServer
addBOAssociatedAlarm, addZuweisung, getAttribut, getAttributNE, getAttributNN, getAttributNN, getBOAssociatedAlarms, getBOAssociatedAlarmsIterator, getEntitaet, getScript, getScriptNE, getScriptNN, getScriptNN, getTid, getTidNE, getTidNN, getTidNN, getVerfuegbareAttributeIterator, getZuweisungen, getZuweisungenIterator, needAttribut, needAttributBX, needEntitaet, needPopulatedBOAssociatedAlarms, needPopulatedVerfuegbareAttribute, needPopulatedZuweisungen, needScript, needTid, pgetBOAssociatedAlarmsLazy, pgetZuweisungenLazy, removeBOAssociatedAlarm, removeZuweisung, setBOAssociatedAlarms, setEntitaet, setScript, setTid, setZuweisungen
compareTo, createTID, createTID, getL10nBeschreibung, getL10nName, getPairStorage, inputAsBenanntRelation, inputAsBenanntRelation, inputAsBenanntRelation, inputAsBenanntRelation, inputAsMultiBenanntRelation, inputAsMultiBenanntRelation, inputAsMultiBenanntRelation, inputAsMultiRelation, inputAsMultiRelation, inputAsMultiRelation, inputAsRelation, inputAsRelation, inputAsRelation, inputAsRelation, outputAsBenanntRelation, outputAsBenanntRelation, outputAsMultiBenanntRelation, outputAsMultiBenanntRelation, outputAsMultiRelation, outputAsMultiRelation, outputAsRelation, outputAsRelation, outputAsRelation, outputBOTName, outputIntoElement, outputIntoElement, storePreparedRelationQueryResult
addKinderRef, getBeschreibung, getBeschreibungNE, getBeschreibungNN, getBeschreibungNN, getKinderRefs, getKinderRefsIterator, getL10nBeschreibungNE, getL10nBeschreibungNN, getL10nBeschreibungNN, getL10nNameNE, getL10nNameNN, getL10nNameNN, getName, getNameNE, getNameNN, getNameNN, needBeschreibung, needL10nBeschreibung, needL10nName, needName, needPopulatedKinderRefs, pgetKinderRefsLazy, removeKinderRef, setBeschreibung, setKinderRefs, setName
addAlsAntwortAnBeiAuftrag, addAlsEmpfaengerBCCBeiAuftrag, addAlsEmpfaengerBeiAuftrag, addAlsKontextBOBeiAuftrag, addWirdAlsAntwortAnVerwendetBeiAlarm, addWirdBenachrichtigtBCCBeiAlarm, addWirdBenachrichtigtBeiAlarm, getAlsAntwortAnBeiAuftraegen, getAlsAntwortAnBeiAuftraegenIterator, getAlsEmpfaengerBCCBeiAuftraegen, getAlsEmpfaengerBCCBeiAuftraegenIterator, getAlsEmpfaengerBeiAuftraegen, getAlsEmpfaengerBeiAuftraegenIterator, getAlsKontextBOBeiAuftraegen, getAlsKontextBOBeiAuftraegenIterator, getWirdAlsAntwortAnVerwendetBeiAlarmen, getWirdAlsAntwortAnVerwendetBeiAlarmenIterator, getWirdBenachrichtigtBCCBeiAlarm, getWirdBenachrichtigtBCCBeiAlarmIterator, getWirdBenachrichtigtBeiAlarm, getWirdBenachrichtigtBeiAlarmIterator, needPopulatedAlsAntwortAnBeiAuftraegen, needPopulatedAlsEmpfaengerBCCBeiAuftraegen, needPopulatedAlsEmpfaengerBeiAuftraegen, needPopulatedAlsKontextBOBeiAuftraegen, needPopulatedWirdAlsAntwortAnVerwendetBeiAlarmen, needPopulatedWirdBenachrichtigtBCCBeiAlarm, needPopulatedWirdBenachrichtigtBeiAlarm, pgetAlsAntwortAnBeiAuftraegenLazy, pgetAlsEmpfaengerBCCBeiAuftraegenLazy, pgetAlsEmpfaengerBeiAuftraegenLazy, pgetAlsKontextBOBeiAuftraegenLazy, pgetWirdAlsAntwortAnVerwendetBeiAlarmenLazy, pgetWirdBenachrichtigtBCCBeiAlarmLazy, pgetWirdBenachrichtigtBeiAlarmLazy, removeAlsAntwortAnBeiAuftrag, removeAlsEmpfaengerBCCBeiAuftrag, removeAlsEmpfaengerBeiAuftrag, removeAlsKontextBOBeiAuftrag, removeWirdAlsAntwortAnVerwendetBeiAlarm, removeWirdBenachrichtigtBCCBeiAlarm, removeWirdBenachrichtigtBeiAlarm, setAlsAntwortAnBeiAuftraegen, setAlsEmpfaengerBCCBeiAuftraegen, setAlsEmpfaengerBeiAuftraegen, setAlsKontextBOBeiAuftraegen, setWirdAlsAntwortAnVerwendetBeiAlarmen, setWirdBenachrichtigtBCCBeiAlarm, setWirdBenachrichtigtBeiAlarm
_set, $, $, $, $$, $$bo, $$o, $$r, $$ri, $$ri, acquireTxWriteLock, add, afterSaveOnClient, afterSaveOnServer, afterVerifyOnClient, aggregate, aggregate, aggregate, badge, badge, beforeVerifyOnClient, beforeVerifyOnServer, bumpVersion, cacheLocally, cacheLocally, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cancelCheckConstraints, cancelRecalc, cancelRecalcViaLoadingTransaction, clone, commitTransaction, computeTransientPropertyIfAbsent, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, consumeAndAssureTransientPropertyExists, copyBLOBFrom, createCopy, createCopy, deepClone, deepClone, delete, describe, describe, describe, describe, describe, describe, describe, describe, describe, describe, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeNE, describeNE, describeNE, describeNE, describeNE, destub, equalPayload, equalPayload, equalPayload, equalPayload, equals, equalsBO, equalsBO, equalsRegardingAttrs, exportBLOB, exReadString, exWriteString, filterDeleted, filterDeleted, filterDeleted, forgetTransientBLOBHandle, frap, getAsBOInIssueReports, getAsBOInIssueReportsIterator, getAsString, getBackendBOLoaderWithPersistenceHandler, getBadge, getBadge, getBadge2, getBadge3, getBadge4, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOBAsDataInput, getBLOBAsInputStream, getBLOBCreatedBy, getBLOBCreatedOn, getBLOBDeletedBy, getBLOBDeletedOn, getBLOBInfo, getBLOBLastModifiedBy, getBLOBLastModifiedOn, getBOLoader, getBot, getBOVersion, getBytes, getCache, getCache, getCacheNT, getCacheNT, getCacheProvider, getCacheProvider, getClazz, getCreatedBy, getCreatedModifiedText, getDefaultScriptImportsList, getDefaultScriptImportsList, getDefaultScriptImportsList, getDescribingBOWrapper, getDescribingBOWrapper, getEventProvider, getEventProvider, getId, getInvolvedInProcs, getInvolvedInProcsIterator, getLastModifiedBy, getLazyData, getLoadingTransaction, getNullIterator, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getPermissionHandler, getProcs, getProcsIterator, getRootLoaderSchema, getSchema, getSizeFast, getTransaction, getTransientProperty, getTransientProperty, getWrappedTransientProperty, hasActiveTransaction, hasBLOB, hasBLOBOnServerSide, hasBOAssignedTempId, hashCode, hasRelationObjects, hasRelationObjects, hasSessionAssignedTempId, hasTempId, hasTempIdForNewBOs, hasTransientProperty, hasTransientPropertyUnfiltered, includeAllowed, includeInTransaction, invalidateBLOBCache, isBOAssignedTempId, isCompoundChangeInProgress, isCurrentTransactionUnderAdminControl, isIgnoreModificationConstraints, isMandatory, isNew, isReadOnly, isServerSideAndLoadedReadOnly, isSessionAssignedTempId, isStub, isTempId, isTempIdForNewInstance, isTemporary, isVisible, isWriteable, markCompoundChangeInProgress, markDelete, markUndelete, needLoadingTransaction, needsReload, needTransactionInclusion, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, nextTempId, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBusOfAdd, notifyMessageBusOfRemove, nullSafeCompareTo, nullSafeCompareTo, nullSafeContainsBO, nullSafeContainsBO, nullSafeEquals, nullSafeEqualsBO, nullSafeEqualsBO, ofStub, propertyMissing, propertyMissing, releaseCompoundChangeInProgress, releaseTxWriteLock, remove, removeBLOB, requireNonEmptyRelation, requireNonNullAttribute, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, setAsString, setBadge, setBadge, setBadge2, setBadge3, setBadge4, setBOLoaderNoCascade, setBOLoaderNoCascade, setBot, setId, setId, setIgnoreModificationConstraints, setLazyData, setTempId, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, slim, slim, storeBLOB, storeBLOB, storeBLOB, storeBLOB, stub, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, undelete, wrapIfGroovy
getCrea, getLdel, getLmod, isDeleted, isLdel, setCrea, setLdel, setLdel, setLmod
getInstanceSpecificLocale, getInstanceSpecificPaths, l10n, l10n, l10n, l10n, l10n, l10n, l10n
bumpVersion, cancelCheckConstraints, consumeAndAssureTransientPropertyExists, contains, equalsBO, equalsBO, getAttribute, getAttribute, getBLOB, getBLOB, getBOVersion, getClazz, getCrea, getEntity, getEntity, getRootLoaderSchema, getSchema, getTransientProperty, hasBLOB, hasTransientProperty, hasTransientPropertyUnfiltered, isDeleted, isMandatory, isNew, isReadOnly, isSubEntityOf, isSubEntityOf, isTemporary, isVisible, setTransientProperty, toRelationMapRO, toRelationMapRO
collectIds, collectIds, getCommaSeparatedIdList, getId, toMap, toMap
collectDescribe, collectDescribe, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, describe, describe, describe, describe, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeNE, describeNE, join, join, join, notEmptyDescription
public boolean fits(BOI _bo)
public boolean fits(BOI _bo, java.lang.String _att, boolean _errorValue)
public static GrooqlBOMaske adjustOrCreateInstance(Transaction tx, java.lang.Class<? extends BO> clazz, java.lang.String name, java.lang.String descr)
tx
- the Transactionclazz
- the Class of BOs to be surveyed / for the Grooql-maskname
- the name of the maskdescr
- the description of the maskscript
- an optional scriptgrooqlScript
- an optional grooql script
// FIXME the mask's attribute could also be passed here!public static GrooqlBOMaske adjustOrCreateInstance(Transaction tx, java.lang.Class<? extends BO> clazz, java.lang.String name, java.lang.String descr, java.lang.String grooqlScript)
public static GrooqlBOMaske adjustOrCreateInstance(Transaction tx, java.lang.Class<? extends BO> clazz, java.lang.String name, java.lang.String descr, java.lang.String grooqlScript, java.lang.String script)
public boolean changeMayAffectBOSet(BOProcI bpi)
BOMaske
BOProcI
represents a change that may alter the set of BO
s that this
BOMaske
represents.changeMayAffectBOSet
in class BOMaske
BOProcI
represents a change that may alter the set of BO
s this
BOMaske
represents; false otherwisepublic QueryResultsI query()
BOMaske
BOs
that match this mask.public QueryResultsI query(BOLoaderI bol)
public QueryResultsI query(BOLoaderI bol, java.lang.String additionalClauses)
public java.util.Collection queryBO()
BOMaske
BOs
that match this mask.public java.util.Collection queryBO(BOLoaderI bol, java.lang.String additionalClauses)
public long count()
BOMaske
BOs
in the DB that match this mask.
FIXME! Currently this method needs to actually query all the objects
that match the mask which can make it very costly, so only call it if
you really need it. If you need the objects anyway rather use
queryBO()
and get the size of the returned list (this is what
this method does internally basically).
public long upperCount()
BOMaske
BOs
in the DB that may
match this mask. Currently this only queries the total number of objects
of this mask's entity, so it is accurate (same as count
) if
no script is defined and may be vastly too high if this mask has a
script.upperCount
in class BOMaske
BOs
in the DB that may
match this maskpublic long upperCount(BOLoaderI bol)
upperCount
in class BOMaske
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.