public class BOMaske extends BOMaskeBase implements BOFilterI
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 |
---|
BOMaske() |
Modifier and Type | Method and Description |
---|---|
static BOMaske |
adjustOrCreateInstance(Transaction tx,
java.lang.Class<? extends BO> clazz,
java.lang.String name,
java.lang.String descr)
Factory method that creates a new BOMaske with the passed parameters or
returns an existing one, if a mask with the passed name already exists.
|
static BOMaske |
adjustOrCreateInstance(Transaction tx,
java.lang.Class<? extends BO> clazz,
java.lang.String name,
java.lang.String descr,
java.lang.String script) |
void |
afterVerifyOnServer(java.lang.Long nodeNumber,
Benutzer _user,
Transaction tx) |
static BOMaske |
byName(BOQueryLoaderI boql,
java.lang.String name)
Returns the BOMaske instance for the passed name, using the passed BOQueryLoaderI.
|
static BOMaske |
byTid(BOQueryLoaderI boql,
java.lang.String tid)
Returns the BOMaske instance for the passed tid, using the passed BOQueryLoaderI.
|
boolean |
changeAltersBOClass(BOProcI bpi) |
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) |
java.lang.Object[] |
createScript() |
static java.lang.Object[] |
createScript(SchemaI _schema,
java.lang.String _source,
java.lang.Long _id,
java.lang.String _postfix) |
boolean |
fits(BO _bo) |
boolean |
fits(BOI _bo) |
boolean |
fits(BOI _bo,
java.lang.String _att) |
boolean |
fits(BOI _bo,
java.lang.String _att,
boolean _errorValue) |
boolean |
fits(BO _bo,
java.lang.String _att) |
boolean |
fits(BO _bo,
java.lang.String _att,
boolean _errorValue) |
boolean |
fits(java.lang.Class _clazz) |
boolean |
fits(java.lang.Class _clazz,
java.lang.String _att) |
boolean |
fits(java.lang.Class _clazz,
java.lang.String _att,
boolean _errorValue) |
BX |
getAttributBX() |
java.lang.Class |
getBOClass() |
EntityI |
getEntityFromEntitaet()
Gets the
EntityI this mask represents, as defined by the
Entitaet attribute. |
static java.util.Comparator |
getLeastEffortComparator() |
static java.util.Comparator |
getLeastEffortRZComparator() |
java.util.Map<java.lang.Long,BX> |
getVerfuegbareAttribute() |
void |
init(SchemaI _schema,
Benutzer _user) |
static void |
initEnvironment(Transaction _tx)
Used internally to check and if necessary initialize required "system data"
in the database.
|
static void |
initEnvironment(Transaction _tx,
boolean authoritative) |
boolean |
isInitialized() |
boolean |
mightNeedFitsWithBO() |
static java.util.TreeSet |
parseAttributeString(java.lang.String _str,
EntityI _entity) |
static java.util.TreeSet |
parseAttributeString(java.lang.String _str,
EntityI _entity,
java.lang.String _origin) |
QueryResultsI |
query()
Gets all
BOs that match this mask. |
QueryResultsI |
query(BOLoaderI bol) |
QueryResultsI |
query(BOLoaderI bol,
java.lang.String additionalClauses) |
QueryResultsI |
query(BOLoaderI bol,
java.lang.String additionalClauses,
boolean _logProgress) |
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) |
void |
setAttribut(java.lang.String _attr) |
void |
setAttributBX(BX _bxAttr) |
java.lang.String |
toString() |
long |
upperCount()
Gets the maximum number of
BOs in the DB that may
match this mask. |
long |
upperCount(BOLoaderI bol) |
void |
verifyOnClient(BasicClientContextI _ctx) |
void |
verifyOnServer(java.lang.Long nodeNumber,
Benutzer _user,
Transaction tx) |
addBOAssociatedAlarm, addZuweisung, copyFrom, copyFrom, equalPayload, 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, readExternal, removeBOAssociatedAlarm, removeZuweisung, setBOAssociatedAlarms, setBOLoader, setEntitaet, setScript, setTid, setZuweisungen, slim, slim, writeExternal
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 static void initEnvironment(Transaction _tx)
public static void initEnvironment(Transaction _tx, boolean authoritative)
public static BOMaske byName(BOQueryLoaderI boql, java.lang.String name)
public static BOMaske byTid(BOQueryLoaderI boql, java.lang.String tid)
public void verifyOnClient(BasicClientContextI _ctx)
verifyOnClient
in interface SaveVetoI
verifyOnClient
in class BO
public void verifyOnServer(java.lang.Long nodeNumber, Benutzer _user, Transaction tx) throws SaveVetoException
verifyOnServer
in interface SaveVetoI
verifyOnServer
in class BO
SaveVetoException
public void afterVerifyOnServer(java.lang.Long nodeNumber, Benutzer _user, Transaction tx) throws SaveVetoException
afterVerifyOnServer
in interface SaveAwareI
afterVerifyOnServer
in class BO
SaveVetoException
public java.lang.Class getBOClass()
public static BOMaske 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 script
// FIXME the mask's attribute could also be passed here!public static BOMaske adjustOrCreateInstance(Transaction tx, java.lang.Class<? extends BO> clazz, java.lang.String name, java.lang.String descr, java.lang.String script)
public boolean mightNeedFitsWithBO()
public boolean fits(BO _bo)
public boolean fits(BO _bo, java.lang.String _att)
public boolean fits(BO _bo, java.lang.String _att, boolean _errorValue)
public boolean fits(BOI _bo, java.lang.String _att)
public boolean fits(BOI _bo, java.lang.String _att, boolean _errorValue)
public boolean fits(java.lang.Class _clazz)
public boolean fits(java.lang.Class _clazz, java.lang.String _att)
public boolean fits(java.lang.Class _clazz, java.lang.String _att, boolean _errorValue)
public EntityI getEntityFromEntitaet()
EntityI
this mask represents, as defined by the
Entitaet
attribute.EntityI
this mask representspublic static java.util.TreeSet parseAttributeString(java.lang.String _str, EntityI _entity)
public static java.util.TreeSet parseAttributeString(java.lang.String _str, EntityI _entity, java.lang.String _origin)
public boolean isInitialized()
public java.lang.Object[] createScript()
public static java.lang.Object[] createScript(SchemaI _schema, java.lang.String _source, java.lang.Long _id, java.lang.String _postfix)
public boolean changeMayAffectBOSet(BOProcI bpi)
BOProcI
represents a change that may alter the set of BO
s that this
BOMaske
represents.BOProcI
represents a change that may alter the set of BO
s this
BOMaske
represents; false otherwisepublic boolean changeAltersBOClass(BOProcI bpi)
public static java.util.Comparator getLeastEffortComparator()
public static java.util.Comparator getLeastEffortRZComparator()
public QueryResultsI query()
BOs
that match this mask.bol
- a BOLoaderI
used to query the
BOs
from the DBadditionalClauses
- (Optional) additional WHERE clauses in case a
further filtering of the set of objects returned is required,
additionally to the actual criteria of this BOMaske
QueryResultsI
that can be used to retrieve the
queried and matching BOs
public QueryResultsI query(BOLoaderI bol)
public QueryResultsI query(BOLoaderI bol, java.lang.String additionalClauses)
public QueryResultsI query(BOLoaderI bol, java.lang.String additionalClauses, boolean _logProgress)
public java.util.Collection queryBO()
BOs
that match this mask.bol
- a BOLoaderI
used to query the
BOs
from the DBadditionalClauses
- (Optional) additional WHERE clauses in case a
further filtering of the set of objects returned is required,
additionally to the actual criteria of this BOMaske
Collection
of all BOs
that match this
maskpublic java.util.Collection queryBO(BOLoaderI bol)
public java.util.Collection queryBO(BOLoaderI bol, java.lang.String additionalClauses)
public long count()
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).
_bol
- a BOLoaderI
used to query the
BOs
from the DBBOs
in the DB that match this maskpublic long count(BOLoaderI bol)
public long upperCount()
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._bol
- a BOLoaderI
used to query the
BOs
from the DBBOs
in the DB that may
match this maskpublic long upperCount(BOLoaderI bol)
public void setAttribut(java.lang.String _attr)
setAttribut
in class BOMaskeBase
public BX getAttributBX()
getAttributBX
in class BOMaskeBase
public void setAttributBX(BX _bxAttr)
setAttributBX
in class BOMaskeBase
public java.util.Map<java.lang.Long,BX> getVerfuegbareAttribute()
getVerfuegbareAttribute
in class BOMaskeBase
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.