|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
com.triactive.jdo.sco.HashSet
public class HashSet
Constructor Summary | |
---|---|
HashSet(StateManager ownerSM,
java.lang.String fieldName)
|
|
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 SCO
o
- the object from which to copy the value.public java.lang.String getFieldName()
SCO
getFieldName
in interface SCO
public java.lang.Object getOwner()
SCO
getOwner
in interface SCO
public void unsetOwner()
SCO
unsetOwner
in interface SCO
public void applyUpdates()
SCO
applyUpdates
in interface SCO
public void makeDirty()
SCO
makeDirty
in interface SCO
public QueryStatement newQueryStatement()
Queryable
The 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 Queryable
public QueryStatement newQueryStatement(java.lang.Class candidateClass)
Queryable
newQueryStatement
in interface Queryable
Queryable.newQueryStatement()
public Query.ResultObjectFactory newResultObjectFactory(QueryStatement stmt)
Queryable
The stmt argument must have been obtained by a previous call to newQueryStatement() on the same Queryable.
newResultObjectFactory
in interface Queryable
public 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.
clone
in class java.util.HashSet
public boolean add(java.lang.Object element)
add
in interface java.util.Collection
add
in interface java.util.Set
add
in class java.util.HashSet
public boolean remove(java.lang.Object element)
remove
in interface java.util.Collection
remove
in interface java.util.Set
remove
in class java.util.HashSet
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.Set
clear
in class java.util.HashSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |