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

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

public abstract class AbstractLoader
extends Object
implements Loader

Partial implementation of the Loader interface.

Author:
AGH CAST Team

Field Summary
protected  SortedMap<String,Object> conditions
          The conditions of the query.
protected  Class<Mappable> klass
          The class of the objects to be loaded.
protected static org.apache.log4j.Logger log
          The logger.
protected  Map<Node,Mappable> objectCache
          The object cache.
protected  Map<String,Class> typeMap
          The type map contains mappings between DB type names and java classes, which are used to build objects corresponding to nodes.
 
Constructor Summary
AbstractLoader(Map<Node,Mappable> newObjectCache, Class klass2, Map<String,Class> typeMap2, SortedMap<String,Object> conditions2)
          Creates new loader.
 
Method Summary
 
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.Loader
find
 

Field Detail

objectCache

protected Map<Node,Mappable> objectCache
The object cache.


typeMap

protected Map<String,Class> typeMap
The type map contains mappings between DB type names and java classes, which are used to build objects corresponding to nodes.


conditions

protected SortedMap<String,Object> conditions
The conditions of the query.


klass

protected Class<Mappable> klass
The class of the objects to be loaded.


log

protected static org.apache.log4j.Logger log
The logger.

Constructor Detail

AbstractLoader

public AbstractLoader(Map<Node,Mappable> newObjectCache,
                      Class klass2,
                      Map<String,Class> typeMap2,
                      SortedMap<String,Object> conditions2)
Creates new loader.

Parameters:
newObjectCache - The object cache to use.
klass2 - The class of the loaded objects.
typeMap2 - The type map to be used.
conditions2 - The conditions of the query.


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