org.objectweb.telosys.dal.dao
Class DynamicDAORegistry

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.dal.dao.DAORegistry
          extended byorg.objectweb.telosys.dal.dao.DynamicDAORegistry

public class DynamicDAORegistry
extends DAORegistry

Dynamic DAO Registry.
This registry is initially empty and try to determine the DAO class dynamically using a DAO class name pattern.

Since:
1.0.0

Constructor Summary
DynamicDAORegistry(java.lang.String sDAOClassPattern)
           
 
Method Summary
protected  StandardDAO getByBeanClass(java.lang.Class beanClass)
          Returns the DAO associated with the given Java class
 
Methods inherited from class org.objectweb.telosys.dal.dao.DAORegistry
getByTableName, getSize, register
 
Methods inherited from class org.objectweb.telosys.common.TelosysObject
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicDAORegistry

public DynamicDAORegistry(java.lang.String sDAOClassPattern)
Method Detail

getByBeanClass

protected StandardDAO getByBeanClass(java.lang.Class beanClass)
Description copied from class: DAORegistry
Returns the DAO associated with the given Java class

Overrides:
getByBeanClass in class DAORegistry
Parameters:
beanClass -
Returns:
the DAO ( or null if not found )