|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.orientechnologies.jdo.types.d_Collection
Base class for persistent collections. It breaks collections in persistent oCollBlock objects mantaining references and totals.
| Field Summary | |
short |
blocks
|
short |
blockSize
|
oCollBlock |
head
|
protected boolean |
relationship
|
oCollBlock |
tail
|
int |
total
|
| Constructor Summary | |
d_Collection()
Create a Collection. |
|
d_Collection(oPersistenceManager iManager,
boolean iRelationship)
Create a Collection. |
|
| Method Summary | |
void |
clear()
Clear the content of the collection. |
boolean |
contains(java.lang.Object iFind)
Check if an element exists in the collection |
int |
find(java.lang.Object iFind)
Find the position of an element in the collection |
void |
fromCollection(java.util.Collection iColl)
Copy all the content from another collection. |
java.lang.Object |
get(int iIndex)
Get an element by index |
void |
insert_element(java.lang.Object iElem)
Insert an element in the collection. |
boolean |
isEmpty()
Returns if the collection is empty. |
boolean |
isRelationship()
Returns if the collection contains relationships |
java.util.Iterator |
iterator()
Retrieve an iterator for the collection |
java.lang.Object |
remove(int iIndex)
Remove an element by index |
java.lang.Object |
remove(java.lang.Object iFind)
Remove an element from the collection |
void |
setRelationship(boolean iRelationship)
Change the behaviuor to handle relationships |
int |
size()
Returns the size of collection. |
void |
toCollection(java.util.Collection iColl)
Copy all the content to another collection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public short blockSize
public oCollBlock head
public oCollBlock tail
public short blocks
public int total
protected transient boolean relationship
| Constructor Detail |
public d_Collection()
public d_Collection(oPersistenceManager iManager,
boolean iRelationship)
iManager - PersistenceManager associatediRelationship - true if the collection contains relationships| Method Detail |
public void fromCollection(java.util.Collection iColl)
iColl - collection to copypublic void toCollection(java.util.Collection iColl)
iColl - collection where to copy.public boolean contains(java.lang.Object iFind)
iFind - Object to found
public int find(java.lang.Object iFind)
iFind - Object to found
public java.lang.Object remove(java.lang.Object iFind)
iFind - Object to found
public java.util.Iterator iterator()
public void clear()
public void insert_element(java.lang.Object iElem)
public java.lang.Object get(int iIndex)
iIndex - index of value to get
public java.lang.Object remove(int iIndex)
iIndex - index of value to remove
public int size()
public boolean isEmpty()
public boolean isRelationship()
public void setRelationship(boolean iRelationship)
iRelationship - true or false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||