Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.0.0)

E10653-01

oracle.jbo.pcoll
Class PCollection

java.lang.Object
  extended by oracle.jbo.pcoll.PCollection
All Implemented Interfaces:
PCollListener

public class PCollection
extends java.lang.Object
implements PCollListener


Field Summary
static boolean mDebugOn
           
static boolean mEventTrace
           
static int PRINT_NODE_CHECK_LOCK_COUNT
           
static int PRINT_NODE_INFO
           
static int PRINT_NODE_PERS_INFO
           
static int PRINT_NODE_POS_INFO
           
 
Constructor Summary
PCollection(PCollManager mgr, java.lang.String name, int nodeCapacity)
           
PCollection(PCollManager mgr, java.lang.String name, int nodeCapacity, int maxActiveLeafNodes)
           
PCollection(PCollManager mgr, java.lang.String name, int nodeCapacity, int maxActiveLeafNodes, int collId)
           
 
Method Summary
 void activate(long rootNodeId)
           
 java.util.Hashtable activeObjsTab()
           
 void addElement(PCollPersistable obj)
           
 void afterActivateElement(PCollection pcoll, PCollPersistable elem)
           
 void beforePassivateElement(PCollection pcoll, PCollPersistable elem)
           
 void close()
           
 PCollPersistable elementAt(long index)
           
 PCollPersistable elementWithId(long id)
           
 void enableIdAccess()
           
 java.sql.Connection getConnection()
           
 int getId()
           
 PCollManager getManager()
           
 int getMaxActiveLeafNodes()
           
 java.lang.String getName()
           
 long getNextObjId()
           
 int getNodeCapacity()
           
 int getNumActiveLeafNodes()
           
 long idAt(long index)
           
 long[] idsWithKey(int keyIndex, java.lang.Object keyVal)
           
 long indexOf(PCollPersistable obj)
           
 void insertElementAt(PCollPersistable obj, long index)
           
 boolean isCollectionOfOne()
           
 boolean isPassivationEnabled()
           
 void notifyPCollEvent(int id, java.lang.Object obj, java.lang.Object otherInfo)
           
 long passivate()
           
static java.lang.String pcollEventString(int id, java.lang.Object obj, java.lang.Object otherInfo)
           
 void printActiveObjsTab(java.io.PrintWriter pw)
           
 void printColl(java.io.PrintWriter pw)
           
 void printColl(java.io.PrintWriter pw, int printFlag)
           
static void printPCollEvent(int id, java.lang.Object obj, java.lang.Object otherInfo)
           
 void printRUChain(java.io.PrintWriter pw)
           
 void removeAllElements()
           
 void removeElementAt(long index)
           
 void setCollectionOfOne(boolean isCollectionOfOne)
           
 void setCommitThreshhold(int value)
           
 void setElementAt(PCollPersistable obj, long index)
           
 void setListener(PCollListener listener)
           
 void setMaxActiveLeafNodes(int maxActiveLeafNodes)
           
 void setPassivationEnabled(boolean enableFlag)
           
 long size()
           
 java.lang.Object[] toArray(java.lang.Object[] arr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRINT_NODE_INFO

public static final int PRINT_NODE_INFO
See Also:
Constant Field Values

PRINT_NODE_PERS_INFO

public static final int PRINT_NODE_PERS_INFO
See Also:
Constant Field Values

PRINT_NODE_POS_INFO

public static final int PRINT_NODE_POS_INFO
See Also:
Constant Field Values

PRINT_NODE_CHECK_LOCK_COUNT

public static final int PRINT_NODE_CHECK_LOCK_COUNT
See Also:
Constant Field Values

mDebugOn

public static final boolean mDebugOn
See Also:
Constant Field Values

mEventTrace

public static boolean mEventTrace
Constructor Detail

PCollection

public PCollection(PCollManager mgr,
                   java.lang.String name,
                   int nodeCapacity)

PCollection

public PCollection(PCollManager mgr,
                   java.lang.String name,
                   int nodeCapacity,
                   int maxActiveLeafNodes)

PCollection

public PCollection(PCollManager mgr,
                   java.lang.String name,
                   int nodeCapacity,
                   int maxActiveLeafNodes,
                   int collId)
Method Detail

close

public void close()

setListener

public void setListener(PCollListener listener)

getId

public final int getId()

getName

public java.lang.String getName()

enableIdAccess

public void enableIdAccess()

activeObjsTab

public java.util.Hashtable activeObjsTab()

getNextObjId

public long getNextObjId()
Specified by:
getNextObjId in interface PCollListener

beforePassivateElement

public void beforePassivateElement(PCollection pcoll,
                                   PCollPersistable elem)
Specified by:
beforePassivateElement in interface PCollListener

afterActivateElement

public void afterActivateElement(PCollection pcoll,
                                 PCollPersistable elem)
Specified by:
afterActivateElement in interface PCollListener

isPassivationEnabled

public boolean isPassivationEnabled()

setPassivationEnabled

public void setPassivationEnabled(boolean enableFlag)

passivate

public long passivate()

activate

public void activate(long rootNodeId)

setCommitThreshhold

public void setCommitThreshhold(int value)

getNumActiveLeafNodes

public int getNumActiveLeafNodes()

getMaxActiveLeafNodes

public int getMaxActiveLeafNodes()

setMaxActiveLeafNodes

public void setMaxActiveLeafNodes(int maxActiveLeafNodes)

getManager

public PCollManager getManager()

getConnection

public java.sql.Connection getConnection()

getNodeCapacity

public int getNodeCapacity()

printActiveObjsTab

public void printActiveObjsTab(java.io.PrintWriter pw)

printRUChain

public void printRUChain(java.io.PrintWriter pw)

printColl

public void printColl(java.io.PrintWriter pw)

printColl

public void printColl(java.io.PrintWriter pw,
                      int printFlag)

addElement

public void addElement(PCollPersistable obj)

toArray

public java.lang.Object[] toArray(java.lang.Object[] arr)

elementAt

public PCollPersistable elementAt(long index)

idAt

public long idAt(long index)

idsWithKey

public long[] idsWithKey(int keyIndex,
                         java.lang.Object keyVal)

elementWithId

public PCollPersistable elementWithId(long id)

insertElementAt

public void insertElementAt(PCollPersistable obj,
                            long index)

setElementAt

public void setElementAt(PCollPersistable obj,
                         long index)

removeAllElements

public void removeAllElements()

removeElementAt

public void removeElementAt(long index)

indexOf

public long indexOf(PCollPersistable obj)

size

public long size()

pcollEventString

public static java.lang.String pcollEventString(int id,
                                                java.lang.Object obj,
                                                java.lang.Object otherInfo)

printPCollEvent

public static void printPCollEvent(int id,
                                   java.lang.Object obj,
                                   java.lang.Object otherInfo)

notifyPCollEvent

public void notifyPCollEvent(int id,
                             java.lang.Object obj,
                             java.lang.Object otherInfo)

setCollectionOfOne

public void setCollectionOfOne(boolean isCollectionOfOne)

isCollectionOfOne

public boolean isCollectionOfOne()

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.0.0)

E10653-01

Copyright © 1997, 2008, Oracle. All rights reserved.