com.jadeworld.jade.rootschema
Class DynaDictionary<M>
java.lang.Object
com.jadeworld.jade.rootschema.Object
com.jadeworld.jade.rootschema.Collection<M>
com.jadeworld.jade.rootschema.Dictionary<M>
com.jadeworld.jade.rootschema.DynaDictionary<M>
- All Implemented Interfaces:
- java.lang.Iterable<M>, java.util.Collection<M>
public class DynaDictionary<M>
- extends Dictionary<M>
The transient DynaDictionary class encapsulates the behavior required to access entries in member
key dictionary subclasses; that is, in dictionaries in which the keys are properties in the member
objects. In addition, the DynaDictionary class enables you to defer the specification of the
membership and keys until run time.
Note Dynamic dictionaries do not allow persistence, nor do they offer a facility to sort objects not
entirely based on a comparison of embedded attribute values; for example, the ability for you to
provide your own sort compare routine is not supported
| Fields inherited from class com.jadeworld.jade.rootschema.Object |
oid |
|
Constructor Summary |
DynaDictionary()
Creates a new instance of DynaDictionary |
|
Method Summary |
boolean |
add(M element)
Adds the object specified in the element parameter to the collection. |
boolean |
addExternalKey(java.lang.String keyTypeName,
int keyLength,
boolean descending,
boolean caseInsensitive)
|
void |
addMemberKey(java.lang.String propertyName,
boolean descending,
boolean caseInsensitive)
|
void |
clearKeys()
|
void |
endKeys(boolean duplicatesAllowed)
|
boolean |
setMembership(java.lang.String typeName)
|
| Methods inherited from class com.jadeworld.jade.rootschema.Dictionary |
getAtKey, getAtKeyGeq, getAtKeyGtr, getAtKeyLeq, getAtKeyLss, getIteratorKeys, includes, includesKey, putAtKey, remove, removeKeyEntry, startKeyGeq, startKeyGtr, startKeyLeq, startKeyLss |
| Methods inherited from class com.jadeworld.jade.rootschema.Collection |
addAll, clear, contains, containsAll, copy, countOf, createIterator, deleteIfEmpty, first, getOwner, getStatistics, indexOf, instantiate, isEmpty, iterator, last, maxSize, purge, remove, removeAll, retainAll, setBlockSize, size, toArray, toArray, toString |
| Methods inherited from class com.jadeworld.jade.rootschema.Object |
changeObjectVolatility, creationTime, edition, equals, exclusiveLock, getClassNumberForObject, getInstanceIdForObject, getLockStatus, getName, getObjectStringForObject, getObjectVolatility, getOidString, getOidStringForObject, getPropertyValue, hashCode, hasMembers, isImportedObject, isKindOf, isLockedByMe, isObjectFrozen, isObjectNonSharedTransient, isObjectPersistent, isObjectSharedTransient, isObjectStable, isObjectTransient, isObjectVolatile, isSharedTransient, isSystemObject, isTransient, latestEdition, lock, makeObjectFrozen, makeObjectStable, makeObjectVolatile, reserveLock, sdeCauseEvent, sdsCauseEvent, setPropertyValue, sharedLock, tryLock, unlock, updateObjectEdition |
| Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
equals, hashCode |
DynaDictionary
public DynaDictionary()
- Creates a new instance of DynaDictionary
add
public boolean add(M element)
- Adds the object specified in the element parameter to the collection.
- Specified by:
add in interface java.util.Collection<M>- Overrides:
add in class Collection<M>
- Parameters:
element - the object to add to the collection
- Returns:
- true if the object was added successfully
addExternalKey
public boolean addExternalKey(java.lang.String keyTypeName,
int keyLength,
boolean descending,
boolean caseInsensitive)
addMemberKey
public void addMemberKey(java.lang.String propertyName,
boolean descending,
boolean caseInsensitive)
clearKeys
public void clearKeys()
endKeys
public void endKeys(boolean duplicatesAllowed)
setMembership
public boolean setMembership(java.lang.String typeName)
Copyright © 2007 Jade Software Corporation