pl.edu.agh.cast.model.mapper.internal
Class DBSaver

java.lang.Object
  extended by pl.edu.agh.cast.model.mapper.internal.AbstractSaver
      extended by pl.edu.agh.cast.model.mapper.internal.DBSaver
All Implemented Interfaces:
Saver

public class DBSaver
extends AbstractSaver

The saver implementation which uses relational data base to store objects.

Author:
AGH CAST Team

Field Summary
 
Fields inherited from class pl.edu.agh.cast.model.mapper.internal.AbstractSaver
force, log, nodes, primaryObject, queue, stored, visited
 
Constructor Summary
DBSaver(Mappable object, boolean force)
          The parameterized constructor.
 
Method Summary
 boolean save()
          Save the model.
 
Methods inherited from class pl.edu.agh.cast.model.mapper.internal.AbstractSaver
getMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBSaver

public DBSaver(Mappable object,
               boolean force)
The parameterized constructor.

Parameters:
object - The object to save.
force - Flag indicating that given object should be saved, no matter if it was saved earlier.
Method Detail

save

public boolean save()
Save the model.

Returns:
true if the model was saved successfully.
See Also:
Saver.save()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.