org.objectweb.telosys.dal.dao
Interface DAOProvider

All Known Implementing Classes:
DAOProviderImpl

public interface DAOProvider

DAO provider interface Service providing DAOs for bean instance, bean class or table name

Since:
1.0.0

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 tableName)
          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
 

Method Detail

getDAO

public StandardDAO getDAO(java.lang.Object beanInstance)
Returns the DAO for the given object instance and the default database

Parameters:
beanInstance -
Returns:
the DAO or null if not found

getDAO

public StandardDAO getDAO(java.lang.Object beanInstance,
                          int databaseId)
Returns the DAO for the given object instance and the given database ID

Parameters:
beanInstance -
databaseId -
Returns:
the DAO or null if not found

getDAO

public StandardDAO getDAO(java.lang.Class beanClass)
Returns the DAO for the given class and the default database

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

getDAO

public StandardDAO getDAO(java.lang.Class beanClass,
                          int databaseId)
Returns the DAO for the given class and the given database ID

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

getDAO

public StandardDAO getDAO(java.lang.String tableName)
Returns the DAO for the given table name and the default database

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

getDAO

public StandardDAO getDAO(java.lang.String tableName,
                          int databaseId)
Returns the DAO for the given table name and the given database ID

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