|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.model.mapper.internal.AbstractSaver
public abstract class AbstractSaver
Partial implementation of the Saver
interface.
Field Summary | |
---|---|
protected boolean |
force
The force flag (should the save be forced?). |
protected static org.apache.log4j.Logger |
log
The logger. |
protected Map<Long,Node> |
nodes
Mapping: node id - node |
protected Mappable |
primaryObject
The object to be saved. |
protected LinkedList<Mappable> |
queue
The queue of nodes to be saved. |
protected Set<Mappable> |
stored
The saved nodes set. |
protected Set<Mappable> |
visited
The visited nodes set. |
Constructor Summary | |
---|---|
AbstractSaver(Mappable object,
boolean force2)
Constructor takes the object to be saved and accepts the force flag (if set to true, the object is saved no matter if it was saved earlier. |
Method Summary | |
---|---|
protected Mapping |
getMapping(Class<Mappable> klass)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pl.edu.agh.cast.model.mapper.Saver |
---|
save |
Field Detail |
---|
protected static org.apache.log4j.Logger log
protected Mappable primaryObject
protected boolean force
protected Set<Mappable> visited
protected Set<Mappable> stored
protected LinkedList<Mappable> queue
protected Map<Long,Node> nodes
Constructor Detail |
---|
public AbstractSaver(Mappable object, boolean force2)
object
- The object to saveforce2
- The force flagMethod Detail |
---|
protected Mapping getMapping(Class<Mappable> klass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |