org.objectweb.telosys.dal.dao
Class DAORegistry

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.dal.dao.DAORegistry
Direct Known Subclasses:
DynamicDAORegistry

public class DAORegistry
extends TelosysObject

DAO registry, used to provide DAO by bean class or by table name If the application uses multiple databases, there's a DAO registry for each database.

Since:
1.0.0

Constructor Summary
DAORegistry()
           
 
Method Summary
protected  StandardDAO getByBeanClass(java.lang.Class beanClass)
          Returns the DAO associated with the given Java class
protected  StandardDAO getByTableName(java.lang.String tableName)
          Returns the DAO associated with the given table name
protected  int getSize()
          Returns the registry size
protected  void register(java.lang.Class daoClass)
           
 
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

DAORegistry

public DAORegistry()
Method Detail

register

protected void register(java.lang.Class daoClass)

getByBeanClass

protected StandardDAO getByBeanClass(java.lang.Class beanClass)
Returns the DAO associated with the given Java class

Parameters:
beanClass -
Returns:
the DAO ( or null if not found )

getByTableName

protected StandardDAO getByTableName(java.lang.String tableName)
Returns the DAO associated with the given table name

Parameters:
tableName -
Returns:
the DAO ( or null if not found )

getSize

protected int getSize()
Returns the registry size

Returns: