|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractSet
java.util.HashSet
com.triactive.jdo.sco.HashSet
| Field Summary |
| Fields inherited from class java.util.HashSet |
|
| Constructor Summary | |
|
HashSet(StateManager ownerSM,
java.lang.String fieldName)
|
(package private) |
HashSet(StateManager ownerSM,
java.lang.String fieldName,
boolean allowNulls,
SetStore setStore)
|
|
HashSet(StateManager ownerSM,
java.lang.String fieldName,
java.lang.Class elementType,
boolean allowNulls)
|
| Method Summary | |
boolean |
add(java.lang.Object element)
|
void |
applyUpdates()
Applies any pending updates for this object to the data store. |
void |
clear()
|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.String |
getFieldName()
Returns the field name. |
java.lang.Object |
getOwner()
Returns the owner object of the SCO instance. |
void |
makeDirty()
Marks object dirty. |
QueryStatement |
newQueryStatement()
Returns a prototypical query statement over the underlying collection. |
QueryStatement |
newQueryStatement(java.lang.Class candidateClass)
Returns a prototypical query statement over the underlying collection, pre-filtered to include only objects of the specified class. |
Query.ResultObjectFactory |
newResultObjectFactory(QueryStatement stmt)
Returns a suitable query result factory for results produced by the specified query. |
boolean |
remove(java.lang.Object element)
|
void |
setValueFrom(java.lang.Object o)
Assigns the value of this second-class object from an existing object of the same or compatible type. |
void |
unsetOwner()
Nullifies references to the owner Object and Field. |
| Methods inherited from class java.util.HashSet |
contains, isEmpty, iterator, size |
| Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
public HashSet(StateManager ownerSM,
java.lang.String fieldName)
public HashSet(StateManager ownerSM,
java.lang.String fieldName,
java.lang.Class elementType,
boolean allowNulls)
HashSet(StateManager ownerSM,
java.lang.String fieldName,
boolean allowNulls,
SetStore setStore)
| Method Detail |
public void setValueFrom(java.lang.Object o)
SCO
setValueFrom in interface SCOo - the object from which to copy the value.public java.lang.String getFieldName()
SCO
getFieldName in interface SCOpublic java.lang.Object getOwner()
SCO
getOwner in interface SCOpublic void unsetOwner()
SCO
unsetOwner in interface SCOpublic void applyUpdates()
SCO
applyUpdates in interface SCOpublic void makeDirty()
SCO
makeDirty in interface SCOpublic QueryStatement newQueryStatement()
QueryableThe returned query statement selects all applicable rows from the relevant base table(s) and the column that represents the element or element ID. The statement can then be modified to join additional tables, select more columns, add WHERE conditions, etc.
newQueryStatement in interface Queryablepublic QueryStatement newQueryStatement(java.lang.Class candidateClass)
Queryable
newQueryStatement in interface QueryableQueryable.newQueryStatement()public Query.ResultObjectFactory newResultObjectFactory(QueryStatement stmt)
QueryableThe stmt argument must have been obtained by a previous call to newQueryStatement() on the same Queryable.
newResultObjectFactory in interface Queryablepublic java.lang.Object clone()
Mutable second-class Objects are required to provide a public clone method in order to allow for copying PersistenceCapable objects. In contrast to Object.clone(), this method must not throw a CloneNotSupportedException.
public boolean add(java.lang.Object element)
add in interface java.util.Setpublic boolean remove(java.lang.Object element)
remove in interface java.util.Setpublic void clear()
clear in interface java.util.Set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||