Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.flex.runtime.util
Class BCModelerWriter

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.util.BCModelerWriter

public class BCModelerWriter
extends java.lang.Object

Writer to save the model objects in a repository. This class is not thread-safe.


Constructor Summary
BCModelerWriter()
          Constructs a writer.
 
Method Summary
 void queue(oracle.jbo.mom.PersistableDefObject pdo)
          Inserts a PersistableDefObject into the queue.
 void queue(oracle.jbo.mom.PersistableDefObject pdo, boolean update)
          Inserts a PersistableDefObject into the queue.
 void setExpectedWriteCount(int c)
          Sets the expected number of objects to be written by this class from now on.
 void write(oracle.jbo.mom.PersistableDefObject obj)
          Writes out a PersistableDefObject.
 void write(oracle.jbo.mom.PersistableDefObject obj, boolean update)
          Writes out a PersistableDefObject.
 void writeQueue()
          Writes out all objects in the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BCModelerWriter

public BCModelerWriter()
Constructs a writer.

Method Detail

setExpectedWriteCount

public void setExpectedWriteCount(int c)
Sets the expected number of objects to be written by this class from now on. This number is used for progress estimation.

Parameters:
c - the expected number of objects to be written from now on

write

public void write(oracle.jbo.mom.PersistableDefObject obj)
Writes out a PersistableDefObject. This writer will attempt to remove and delete the previous version of the object before saving it.

Parameters:
obj - the PersistableDefObject

write

public void write(oracle.jbo.mom.PersistableDefObject obj,
                  boolean update)
Writes out a PersistableDefObject.

Parameters:
obj - the PersistableDefObject
update - true if this writer should not attempt to remove and delete the previous version before saving the given object

queue

public void queue(oracle.jbo.mom.PersistableDefObject pdo)
Inserts a PersistableDefObject into the queue. The queued objects will not be written out until writeQueue is called. Before writing out objects queued by this method, this writer will attempt to remove and delete their previous versions.

Parameters:
pdo - the PersistableDefObject
See Also:
queue(PersistableDefObject, boolean)

queue

public void queue(oracle.jbo.mom.PersistableDefObject pdo,
                  boolean update)
Inserts a PersistableDefObject into the queue. The queued objects will not be written out until writeQueue is called.

Parameters:
pdo - the PersistableDefObject
update - true if the previous version of the given object should not be removed and deleted before the current version is saved

writeQueue

public void writeQueue()
Writes out all objects in the queue. A queued object is removed from the queue right before it's written out.


Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.