org.objectweb.telosys.dal.dao
Class DAOProviderImpl

java.lang.Object
  extended byorg.objectweb.telosys.dal.dao.DAOProviderImpl
All Implemented Interfaces:
DAOProvider

public class DAOProviderImpl
extends java.lang.Object
implements DAOProvider

DAO provider implementation

Since:
1.0.0

Constructor Summary
DAOProviderImpl(DAORegistries registries)
          Constructor with Dependency Injection
 
Method Summary
 StandardDAO getDAO(java.lang.Class beanClass)
          Returns the DAO for the given class and the default database
 StandardDAO getDAO(java.lang.Class beanClass, int databaseId)
          Returns the DAO for the given class and the given database ID
 StandardDAO getDAO(java.lang.Object beanInstance)
          Returns the DAO for the given object instance and the default database
 StandardDAO getDAO(java.lang.Object beanInstance, int databaseId)
          Returns the DAO for the given object instance and the given database ID
 StandardDAO getDAO(java.lang.String table)
          Returns the DAO for the given table name and the default database
 StandardDAO getDAO(java.lang.String tableName, int databaseId)
          Returns the DAO for the given table name and the given database ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOProviderImpl

public DAOProviderImpl(DAORegistries registries)
Constructor with Dependency Injection

Method Detail

getDAO

public StandardDAO getDAO(java.lang.Object beanInstance)
Description copied from interface: DAOProvider
Returns the DAO for the given object instance and the default database

Specified by:
getDAO in interface DAOProvider
Parameters:
beanInstance -
Returns:
the DAO or null if not found

getDAO

public StandardDAO getDAO(java.lang.Class beanClass)
Description copied from interface: DAOProvider
Returns the DAO for the given class and the default database

Specified by:
getDAO in interface DAOProvider
Parameters:
beanClass -
Returns:
the DAO or null if not found

getDAO

public StandardDAO getDAO(java.lang.String table)
Description copied from interface: DAOProvider
Returns the DAO for the given table name and the default database

Specified by:
getDAO in interface DAOProvider
Parameters:
table -
Returns:
the DAO or null if not found

getDAO

public StandardDAO getDAO(java.lang.Object beanInstance,
                          int databaseId)
Description copied from interface: DAOProvider
Returns the DAO for the given object instance and the given database ID

Specified by:
getDAO in interface DAOProvider
Parameters:
beanInstance -
databaseId -
Returns:
the DAO or null if not found

getDAO

public StandardDAO getDAO(java.lang.Class beanClass,
                          int databaseId)
Description copied from interface: DAOProvider
Returns the DAO for the given class and the given database ID

Specified by:
getDAO in interface DAOProvider
Parameters:
beanClass -
databaseId -
Returns:
the DAO or null if not found

getDAO

public StandardDAO getDAO(java.lang.String tableName,
                          int databaseId)
Description copied from interface: DAOProvider
Returns the DAO for the given table name and the given database ID

Specified by:
getDAO in interface DAOProvider
Parameters:
tableName -
databaseId -
Returns:
the DAO or null if not found