Inheritance diagram for org.objectweb.jonas_ejb.container.jorm.GenClassImpl:
Public Member Functions | |
GenClassImpl (PClassMapping gcm) | |
GenClassImpl () | |
void | setPClassMapping (PClassMapping gcm) |
void | reset () |
void | setPBinding (PBinding pb) |
PBinding | gcGetPBinding () |
void | read (PName pn, Object connection) throws PException |
void | write (PName pn, Object connection) throws PException |
Object | getMemoryInstance () |
void | paAdd (PIndexedElem elem, Object conn) throws PException |
PIndexedElem | createPIndexedElem () |
boolean | paDeltaSupported () |
int | paGetNbElem () |
Iterator | paIterator () |
void | paSetNbElem (int nbelem) |
void | gcClear (boolean delete) |
Protected Member Functions | |
int | gcGetRealIndex (int idx) |
void | gcAdd (PObject element, boolean callListener) |
Object | gcRemove (Object element, boolean callListener) throws PException |
Iterator | gcIterator (Object connection) throws PException |
PObject | gcGetElement (GenClassElement gce, Object connection) throws PException |
PName | gcObject2ref (PObject value) throws PException |
Protected Attributes | |
ArrayList | pIndexedElems = null |
int[] | deletedLength = null |
int | size |
boolean | isModified = false |
PClassMapping | gcm = null |
PBinding | pb = null |
GenClassListener | listener = null |
Definition at line 56 of file GenClassImpl.java.
|
UNUSED ??? Definition at line 115 of file GenClassImpl.java. |
|
A GenClassImpl object is created for each Multi-Valued CMR field See JEntityCmp2.vm It starts with an empty list. Definition at line 125 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.deletedLength, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.isModified, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pIndexedElems, and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.size. |
|
The default implementation of the PIndexedElem is GenClassElement. This method may be redefined for different GenClass implementations. Reimplemented in org.objectweb.jonas_ejb.container.jorm.Collection. Definition at line 323 of file GenClassImpl.java. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcAdd(). |
|
Here is the call graph for this function:
|
Clear the GenClass.
Definition at line 631 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.deletedLength, org.objectweb.jonas_ejb.container.jorm.GenClassListener.gcRemove(), org.objectweb.jonas_ejb.container.jorm.GenClassElement.hasBeenCreated, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.isModified, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.listener, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pIndexedElems, org.objectweb.jonas_ejb.container.jorm.GenClassElement.pname, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.size, org.objectweb.jonas_ejb.container.jorm.GenClassElement.status, and org.objectweb.jonas_ejb.container.jorm.GenClassElement.value. Referenced by org.objectweb.jonas_ejb.container.jorm.Set.clear(), and org.objectweb.jonas_ejb.container.jorm.Collection.clear(). |
Here is the call graph for this function:
|
It dereferences an element if needed
Definition at line 596 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcm. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.ElementIterator.next(). |
|
Get the PBinding used for this GenClass Used by JEntityCmp2.vm
Definition at line 166 of file GenClassImpl.java. |
|
This method calculates the real index of an element.
Definition at line 378 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.deletedLength. |
|
Definition at line 584 of file GenClassImpl.java. Referenced by org.objectweb.jonas_ejb.container.jorm.Set.toArray(), and org.objectweb.jonas_ejb.container.jorm.Collection.toArray(). |
|
This method permits to find the PName of an object. Definition at line 685 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcm. |
|
It removes the first occurence of an element from the relation.
Definition at line 468 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.deletedLength, org.objectweb.jonas_ejb.container.jorm.GenClassListener.gcRemove(), org.objectweb.jonas_ejb.container.jorm.GenClassElement.hasBeenCreated, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.isModified, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.listener, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pIndexedElems, org.objectweb.jonas_ejb.container.jorm.GenClassElement.pname, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.size, org.objectweb.jonas_ejb.container.jorm.GenClassElement.status, and org.objectweb.jonas_ejb.container.jorm.GenClassElement.value. Referenced by org.objectweb.jonas_ejb.container.jorm.Set.removeAll(), org.objectweb.jonas_ejb.container.jorm.Collection.removeAll(), org.objectweb.jonas_ejb.container.jorm.Set.retainAll(), and org.objectweb.jonas_ejb.container.jorm.Collection.retainAll(). |
Here is the call graph for this function:
|
In most of cases this class is extented to personalize to a collection type. Then an instance of this class is often the real collection. Definition at line 299 of file GenClassImpl.java. |
|
It adds the elements in the list. This method is used by the PBinding to load the data. The elements is added at the end of the 'pIndexedElems' then 'deletedLength' is not impacted. Definition at line 313 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pIndexedElems, and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.size. |
|
This implementation is able to isolate the modification by element of the gen class. Definition at line 331 of file GenClassImpl.java. |
|
This method is used by the PBinding to allocated data structure during a write operation. The returned size must then contains also the deleted elements. Definition at line 340 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pIndexedElems. |
|
This method is used by the PBinding to fetch all PIndexedElem. Definition at line 347 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pIndexedElems. |
|
This method is call in first during a read operation in order to indicate the size of the gen class. if the value is equals to -1 then that means the data support is unable to known the size of the relation in advance. Then the previous size is kept. Otherwise the list is initialized to the specified size. Definition at line 358 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.deletedLength, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pIndexedElems, and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.size. |
|
It loads the data of the gen class.
Definition at line 191 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcm, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.isModified, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pb, and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.reset(). |
Here is the call graph for this function:
|
reset the GenClass to its initial state. Definition at line 145 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.deletedLength, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.isModified, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pIndexedElems, and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.size. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.read(). |
|
Set the PBinding that will be used for this GenClass Used by JEntityCmp2.vm
Definition at line 157 of file GenClassImpl.java. |
|
Set the PClassMapping for this GenClass. It's needed to get Connections for read and write operations. Used by JEntityCmp2.vm
Definition at line 138 of file GenClassImpl.java. |
|
It writes the data of the gen class if it was modified (see the field isModified).
Definition at line 223 of file GenClassImpl.java. References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.deletedLength, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcm, org.objectweb.jonas_ejb.container.jorm.GenClassElement.hasBeenCreated, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.isModified, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pb, org.objectweb.jonas_ejb.container.jorm.GenClassImpl.pIndexedElems, and org.objectweb.jonas_ejb.container.jorm.GenClassElement.status. |
|
This array represents the distance between two deleted elements in the pIndexedElems arraylist. O means there is no element in the middle. The first element is in fact the quantity of existing element before the first deleted element. The size of this array is also the quantity of deleted elements. Then if the array is empty there is no deleted elements. for example: if this fields is equals to [3, 2] then the elements whith the index 3 and 6 are marked as deleted: [a, b, c, D, d, e, D, ....] This array is useless to convert an index valid inside the user/virtual collection to an index valid inside the 'pIndexedElems' ArrayList. Definition at line 78 of file GenClassImpl.java. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcAdd(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcClear(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcGetRealIndex(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcRemove(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.GenClassImpl(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.paSetNbElem(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.reset(), and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.write(). |
|
This field references the PClassMapping which manages the persistency of this GenClass. (xxxGCM.java) This is actually a GenClassMapping, returned by the bean Factory (PClassMapping) Definition at line 97 of file GenClassImpl.java. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcGetElement(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcObject2ref(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.read(), and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.write(). |
|
true when GenClass has been modified and must be written Definition at line 90 of file GenClassImpl.java. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcAdd(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcClear(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcRemove(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.GenClassImpl(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.read(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.reset(), and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.write(). |
|
All the actions are send to this listener. There is 1 Listener for each GenClass, i.e. for each multi-valued CMR field. (See JEntityCmp2.vm) Used mainly for coherence. Definition at line 110 of file GenClassImpl.java. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcAdd(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcClear(), and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcRemove(). |
|
This fields is the PBinding associated to this instance. Definition at line 102 of file GenClassImpl.java. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.read(), and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.write(). |
|
All elements of the gen class (unmodified, modified, created, deleted) This ArrayList contains GenClassElem objects Definition at line 62 of file GenClassImpl.java. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcAdd(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcClear(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcRemove(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.GenClassImpl(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.paAdd(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.paGetNbElem(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.paIterator(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.paSetNbElem(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.reset(), and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.write(). |
|
This is the size of the relation. This field is equal to the pIndexedElems size minus the quantity of deleted element. The value is always right and is updated during each delete or create action. Definition at line 85 of file GenClassImpl.java. Referenced by org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcAdd(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcClear(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcRemove(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.GenClassImpl(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.paAdd(), org.objectweb.jonas_ejb.container.jorm.GenClassImpl.paSetNbElem(), and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.reset(). |