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

java.lang.Object
  extended by pl.edu.agh.cast.model.mapper.internal.AbstractLoader
      extended by pl.edu.agh.cast.model.mapper.internal.DBLoader
All Implemented Interfaces:
Loader

public class DBLoader
extends AbstractLoader

The loader 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.AbstractLoader
conditions, klass, log, objectCache, typeMap
 
Constructor Summary
DBLoader(Map<Node,Mappable> objectCache, Class<Mappable> klass, Map<String,Class> typeMap2, SortedMap<String,Object> conditions)
          The parameterized constructor.
 
Method Summary
 List<Mappable> find()
          Load mapped objects from the data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBLoader

public DBLoader(Map<Node,Mappable> objectCache,
                Class<Mappable> klass,
                Map<String,Class> typeMap2,
                SortedMap<String,Object> conditions)
The parameterized constructor.

Parameters:
objectCache - The object cache used for referential integrity.
klass - The class of the object to load
typeMap2 - The type map
conditions - The conditions the object must satisfy to be loaded.
Method Detail

find

public List<Mappable> find()
Load mapped objects from the data source.

Returns:
list of objects
See Also:
Loader.find()


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