public class ChildrenSet extends FauxMboSet implements FauxMboSetRemote, MboSetListener, MboSetListenable
| Modifier and Type | Field and Description |
|---|---|
protected int |
addPosition
Records where to add the last Mbo.
|
protected boolean |
compareOrderBy
Before reading the first record from the real set, we compare the order by clauses.
|
protected int |
cur
Where in the real set are we?
|
protected int |
DEFAULT_ADD_POSITION
Determines the default position where new Mbos are added.
|
protected OrderBy |
orderby
Special data structure to hold the order by clause
|
protected WOSet[] |
realSet
Link to the real MboSet which this set show some of the Mbos of.
|
appName, closed, currIndex, currMbo, dmDeploySet, dmDeploySkipFieldValidation, mbosetinfo, mboVec, ownerMbo, relationName, relationshipWhere, user, whereClauseINSERTONLY, INSERTORUPDATE, UPDATEONLYALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
ChildrenSet(MboRemote owner)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MboRemote |
add(long accessModifier,
int woClass)
Adds a new Mbo at the beginning of the set.
|
MboRemote |
addAtEnd(int woClass)
Adds a new Mbo at the end of the set.
|
MboRemote |
addAtIndex(int index,
int woClass)
Access defaulted to NONE
|
MboRemote |
addAtIndex(long accessModifier,
int index,
int woClass)
Adds a new Mbo to the set.
|
void |
addedMbo(MboRemote newMbo,
int position)
A mbo has been added to the WO's CHILDREN set.
|
void |
addListener(MboSetListener l)
Add a listener to this MboSet.
|
void |
canAdd(int woClass)
Can we add more work orders to this set?
|
void |
fetchMbos(int toPosition)
This method needs to be overridden to produce the Mbos which are members of this "MboSet".
|
void |
fetchMbosOriginal(int toPosition)
Mbo supplier method.
|
java.lang.String |
getName()
Define to give the MboSet a name.
|
java.lang.String |
getOrderBy()
Returns the current order by of the set.
|
MboRemote |
getZombie()
This method should be overridden so that in returns a Zombie Mbo
of the type of Mbo that makes up this set.
|
protected void |
insertMbo(MboRemote mbo)
Insert the mbo where it belongs in the set.
|
double |
max(java.lang.String attribute)
Undefined in the faux set.
|
void |
modifiedMbo(MboRemote modifiedMbo)
Received a report that a Mbo has been modified, in a significant way.
|
void |
removedMbo(MboRemote newMbo,
int position)
Reports that a Mbo has been removed from the MboSet.
|
void |
removeListener(MboSetListener l)
Remove a listener
|
void |
reportModifiedMbo(MboRemote modifiedMbo)
Assumes that the modified Mbo is a member of the set.
|
void |
reset()
Reset method overridden to reset internal variables.
|
void |
setOrderBy(java.lang.String orderByClause)
Setting the order by for this set sets the order by in the realset.
|
void |
setOwner(MboRemote mbo)
Given the owner of this MboSet, now can set self as a listener
to the owner's children set.
|
abortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addForFauxSet, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addWarning, addWarnings, checkMethodAccess, cleanup, clear, clearLongOpPipe, clearWarnings, close, commit, commitTransaction, copy, copy, copyForDM, count, count, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, earliestDate, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, getAllAppAlwaysFieldFlags, getApp, getAppAlwaysFieldFlags, getAppWhere, getBoolean, getByte, getBytes, getClientLocale, getClientTimeZone, getCompleteWhere, getCurrentPosition, getDate, getDBFetchMaxRows, getDefaultValue, getDefaultValueHash, getDouble, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFetchAttributes, getFetchAttributes, getFilter, getFlags, getFloat, getInt, getJspDefaultValueHash, getKeyAttributes, getList, getList, getLong, getMaxMessage, getMbo, getMbo, getMboForUniqueId, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMXTransaction, getOwner, getParentApp, getProfile, getQbe, getQbe, getQbe, getQbeWhere, getQueryTimeout, getRelationName, getRelationship, getSelection, getSelectionWhere, getSetOrderByForUI, getSize, getSQLOptions, getString, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserWhere, getUserWhere, getWarnings, getWhere, hasFetchAttributes, hasMLQbe, hasQbe, hasWarnings, ignoreQbeExactMatchSet, incrementDeletedCount, init, isBasedOn, isClosed, isDMDeploySet, isDMSkipFieldValidation, isDownloadSet, isEmpty, isESigNeeded, isFlagSet, isFromGetList, isIgnoreQbeExactMatchSet, isNull, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, latestDate, locateMbo, logESigVerification, min, moveFirst, moveLast, moveNext, movePrev, moveTo, newMboIndex, notExist, positionState, processML, remove, remove, remove, removeFromVector, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, rollbackTransaction, save, save, saveTransaction, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setDownloadSet, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFetchAttributes, setFlag, setFlag, setFlags, setFromGetList, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboSetInfo, setMXTransaction, setNoNeedtoFetchFromDB, setOverrideOptimisticLock, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRelationship, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setUserWhere, setUserWhereAfterParse, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, setWhere, setWhereQbe, smartFill, smartFill, smartFind, smartFind, smartFind, smartFind, startCheckpoint, startCheckpoint, sum, toBeSaved, undeleteAll, undoTransaction, unselect, unselect, unselect, unselectAll, useStoredQuery, validate, validateTransaction, verifyESigclone, exportObject, exportObject, exportObject, unexportObjectequals, getRef, hashCode, toString, toStubfinalize, getClass, notify, notifyAll, wait, wait, waitabortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addWarning, addWarnings, checkMethodAccess, cleanup, clear, clearLongOpPipe, close, commit, copy, copy, copyForDM, count, count, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, earliestDate, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, getApp, getAppAlwaysFieldFlags, getAppWhere, getCompleteWhere, getCurrentPosition, getDBFetchMaxRows, getDefaultValue, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getKeyAttributes, getList, getList, getMaxMessage, getMbo, getMbo, getMboForUniqueId, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMXTransaction, getOwner, getParentApp, getProfile, getQbe, getQbe, getQbe, getQbeWhere, getQueryTimeout, getRelationName, getRelationship, getSelection, getSelectionWhere, getSetOrderByForUI, getSize, getSQLOptions, getTxnPropertyMap, getUserAndQbeWhere, getUserInfo, getUserName, getUserWhere, getWarnings, getWhere, hasMLQbe, hasQbe, hasWarnings, ignoreQbeExactMatchSet, incrementDeletedCount, init, isBasedOn, isDMDeploySet, isDMSkipFieldValidation, isDownloadSet, isEmpty, isESigNeeded, isFlagSet, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, latestDate, locateMbo, logESigVerification, min, moveFirst, moveLast, moveNext, movePrev, moveTo, newMboIndex, notExist, positionState, processML, remove, remove, remove, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, save, save, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setDownloadSet, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboSetInfo, setMXTransaction, setNoNeedtoFetchFromDB, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRelationship, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setUserWhere, setUserWhereAfterParse, setWhere, setWhereQbe, smartFill, smartFill, smartFind, smartFind, startCheckpoint, startCheckpoint, sum, toBeSaved, undeleteAll, unselect, unselect, unselect, unselectAll, useStoredQuery, validate, verifyESiggetBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getString, isNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNullcommitTransaction, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransactionprotected WOSet[] realSet
protected int cur
protected boolean compareOrderBy
protected OrderBy orderby
protected final int DEFAULT_ADD_POSITION
ChildrenSet.addPosition,
Constant Field Valuesprotected int addPosition
public ChildrenSet(MboRemote owner) throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void fetchMbos(int toPosition)
throws MXException,
java.rmi.RemoteException
FauxMboSetfetchMbos in class FauxMboSetMXExceptionjava.rmi.RemoteExceptionpublic void reset()
throws MXException,
java.rmi.RemoteException
reset in interface MboSetRemotereset in class FauxMboSetMXExceptionjava.rmi.RemoteExceptionMboSet.reset()public void fetchMbosOriginal(int toPosition)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getName()
throws java.rmi.RemoteException
FauxMboSetgetName in interface MboSetRemotegetName in class FauxMboSetjava.rmi.RemoteExceptionpublic final void setOwner(MboRemote mbo) throws MXException, java.rmi.RemoteException
setOwner in interface MboSetRemotesetOwner in class FauxMboSetMXExceptionjava.rmi.RemoteExceptionFauxMboSet.getOwner()public void canAdd(int woClass)
throws MXException
MXExceptionDelegated to the real set.public MboRemote add(long accessModifier, int woClass) throws MXException, java.rmi.RemoteException
accessModifier - FlagMXExceptionjava.rmi.RemoteExceptioncalls this method with the index parameter set to 0.public MboRemote addAtIndex(int index, int woClass) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic MboRemote addAtIndex(long accessModifier, int index, int woClass) throws java.rmi.RemoteException, MXException
accessModifier - Access override flagindex - Where to put the new record. 0 means the beginning, -1 the end of the set.woClass - What type of record to add.java.rmi.RemoteExceptionMXExceptionpublic MboRemote addAtEnd(int woClass) throws MXException, java.rmi.RemoteException
accessModifier - FlagMXExceptionjava.rmi.RemoteExceptionpublic MboRemote getZombie() throws java.rmi.RemoteException
getZombie in interface MboSetRemotegetZombie in class FauxMboSetjava.rmi.RemoteExceptionpublic void setOrderBy(java.lang.String orderByClause)
throws MXException,
java.rmi.RemoteException
setOrderBy in interface MboSetRemotesetOrderBy in class FauxMboSetorderByClause - The persistent columns to order by.MXExceptionjava.rmi.RemoteExceptionMboSet.setOrderBy(String orderByClause)public java.lang.String getOrderBy()
throws java.rmi.RemoteException
getOrderBy in interface MboSetRemotegetOrderBy in class FauxMboSetjava.rmi.RemoteExceptionpublic void addedMbo(MboRemote newMbo, int position) throws MXException, java.rmi.RemoteException
addedMbo in interface MboSetListenernewMbo - The newly created Mbo.position - The postion of the new Mbo.MXExceptionjava.rmi.RemoteExceptionprotected void insertMbo(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionChildrenSet.addPositionpublic void removedMbo(MboRemote newMbo, int position) throws MXException, java.rmi.RemoteException
removedMbo in interface MboSetListenernewMbo - The recently removed Mbo.position - The postion of the Mbo before it was removed.MXExceptionjava.rmi.RemoteExceptionpublic void modifiedMbo(MboRemote modifiedMbo) throws MXException, java.rmi.RemoteException
modifiedMbo in interface MboSetListenermodifiedMbo - The recently modified Mbo.MXExceptionjava.rmi.RemoteExceptionpublic void addListener(MboSetListener l)
addListener in interface MboSetListenableaddListener in class FauxMboSetl - The listener to add.public void removeListener(MboSetListener l)
removeListener in interface MboSetListenableremoveListener in class FauxMboSetl - The listener to remove.public void reportModifiedMbo(MboRemote modifiedMbo) throws MXException, java.rmi.RemoteException
reportModifiedMbo in interface MboSetListenablereportModifiedMbo in class FauxMboSetMXExceptionjava.rmi.RemoteExceptionListeners are informed of the modified Mbo.public double max(java.lang.String attribute)
throws MXException,
java.rmi.RemoteException
FauxMboSetmax in interface MboSetRemotemax in class FauxMboSetMXExceptionjava.rmi.RemoteExceptionMboSet.max(String attribute)