org.objectweb.telosys.dal.dao
Class StandardDAOAdapter
java.lang.Object
org.objectweb.telosys.dal.dao.StandardDAOAdapter
- public class StandardDAOAdapter
- extends java.lang.Object
Adapter to use a specific DAO as a generic DAO
Provides the same methods as a specific DAO, but with generic parameters.
- Since:
- 1.0.0
Method Summary |
int |
count(ListQuery query)
|
int |
count(ListQuery query,
java.sql.Connection con)
|
int |
count(ListQuery query,
DatabaseSession session)
|
int |
count(ListQuery query,
int iDatabaseId)
|
ListQuery |
createQuery(Criteria criterias)
|
ListQuery |
createQuery(Criteria criterias,
java.lang.String sQueryEndOfSelect)
|
ListQuery |
createQuery(int iParamCount,
java.lang.String sQueryCriteria)
|
ListQuery |
createQuery(int iParamCount,
java.lang.String sQueryCriteria,
java.lang.String sQueryEndOfSelect)
|
ListQuery |
createQuery(java.lang.String sQueryCriteria)
|
ListQuery |
createQuery(java.lang.String sQueryCriteria,
java.lang.String sQueryEndOfSelect)
|
ListQuery |
createQueryAll()
|
ListQuery |
createQueryAll(java.lang.String sQueryEndOfSelect)
|
int |
delete(java.lang.Object bean)
|
int |
delete(java.lang.Object bean,
java.sql.Connection con)
|
int |
delete(java.lang.Object bean,
DatabaseSession session)
|
int |
delete(java.lang.Object bean,
int iDatabaseId)
|
int |
deleteList(ListQuery query)
|
int |
deleteList(ListQuery query,
java.sql.Connection con)
|
int |
deleteList(ListQuery query,
DatabaseSession session)
|
int |
deleteList(ListQuery query,
int iDatabaseId)
|
int |
deleteListItems(GenericVOList listData)
|
int |
deleteListItems(GenericVOList listData,
java.sql.Connection con)
|
int |
deleteListItems(GenericVOList listData,
DatabaseSession session)
|
int |
deleteListItems(GenericVOList listData,
int iDatabaseId)
|
int |
deleteListItems(java.util.List listData)
|
int |
deleteListItems(java.util.List listData,
java.sql.Connection con)
|
int |
deleteListItems(java.util.List listData,
DatabaseSession session)
|
int |
deleteListItems(java.util.List listData,
int iDatabaseId)
|
java.lang.String |
describe()
|
boolean |
exists(java.lang.Object bean)
|
boolean |
exists(java.lang.Object bean,
java.sql.Connection con)
|
boolean |
exists(java.lang.Object bean,
DatabaseSession session)
|
boolean |
exists(java.lang.Object bean,
int iDatabaseId)
|
java.lang.Class |
getDAOClass()
|
java.lang.Class |
getEntityBeanClass()
|
SqlRequests |
getSqlRequests()
|
java.lang.String |
getTableName()
|
int |
insert(java.lang.Object bean)
|
int |
insert(java.lang.Object bean,
java.sql.Connection con)
|
int |
insert(java.lang.Object bean,
DatabaseSession session)
|
int |
insert(java.lang.Object bean,
int iDatabaseId)
|
java.lang.Long |
insertKeyGen(java.lang.Object bean)
|
java.lang.Long |
insertKeyGen(java.lang.Object bean,
java.sql.Connection con)
|
java.lang.Long |
insertKeyGen(java.lang.Object bean,
DatabaseSession session)
|
java.lang.Long |
insertKeyGen(java.lang.Object bean,
int iDatabaseId)
|
int |
insertListItems(GenericVOList listData)
|
int |
insertListItems(GenericVOList listData,
java.sql.Connection con)
|
int |
insertListItems(GenericVOList listData,
DatabaseSession session)
|
int |
insertListItems(GenericVOList listData,
int iDatabaseId)
|
int |
insertListItems(java.util.List listData)
|
int |
insertListItems(java.util.List listData,
java.sql.Connection con)
|
int |
insertListItems(java.util.List listData,
DatabaseSession session)
|
int |
insertListItems(java.util.List listData,
int iDatabaseId)
|
int |
load(java.lang.Object bean)
|
int |
load(java.lang.Object bean,
java.sql.Connection con)
|
int |
load(java.lang.Object bean,
DatabaseSession session)
|
int |
load(java.lang.Object bean,
int iDatabaseId)
|
int |
load(java.lang.Object bean,
java.lang.String sOptionalClause)
|
int |
load(java.lang.Object bean,
java.lang.String sOptionalClause,
java.sql.Connection con)
|
int |
load(java.lang.Object bean,
java.lang.String sOptionalClause,
DatabaseSession session)
|
int |
load(java.lang.Object bean,
java.lang.String sOptionalClause,
int iDatabaseId)
|
int |
loadList(ListQuery query,
GenericVOList listData)
|
int |
loadList(ListQuery query,
GenericVOList listData,
java.sql.Connection con)
|
int |
loadList(ListQuery query,
GenericVOList listData,
DatabaseSession session)
|
int |
loadList(ListQuery query,
GenericVOList listData,
int iDatabaseId)
|
int |
loadList(ListQuery query,
java.util.List listData)
|
int |
loadList(ListQuery query,
java.util.List listData,
java.sql.Connection con)
|
int |
loadList(ListQuery query,
java.util.List listData,
DatabaseSession session)
|
int |
loadList(ListQuery query,
java.util.List listData,
int iDatabaseId)
|
int |
save(java.lang.Object bean)
|
int |
save(java.lang.Object bean,
java.sql.Connection con)
|
int |
save(java.lang.Object bean,
DatabaseSession session)
|
int |
save(java.lang.Object bean,
int iDatabaseId)
|
int |
saveList(ListQuery query,
GenericVOList listData)
|
int |
saveList(ListQuery query,
GenericVOList listData,
java.sql.Connection con)
|
int |
saveList(ListQuery query,
GenericVOList listData,
DatabaseSession session)
|
int |
saveList(ListQuery query,
GenericVOList listData,
int iDatabaseId)
|
int |
saveList(ListQuery query,
java.util.List listData)
|
int |
saveList(ListQuery query,
java.util.List listData,
java.sql.Connection con)
|
int |
saveList(ListQuery query,
java.util.List listData,
DatabaseSession session)
|
int |
saveList(ListQuery query,
java.util.List listData,
int iDatabaseId)
|
java.lang.String |
toString()
|
int |
update(java.lang.Object bean)
|
int |
update(java.lang.Object bean,
java.sql.Connection con)
|
int |
update(java.lang.Object bean,
DatabaseSession session)
|
int |
update(java.lang.Object bean,
int iDatabaseId)
|
int |
updateListItems(GenericVOList listData)
|
int |
updateListItems(GenericVOList listData,
java.sql.Connection con)
|
int |
updateListItems(GenericVOList listData,
DatabaseSession session)
|
int |
updateListItems(GenericVOList listData,
int iDatabaseId)
|
int |
updateListItems(java.util.List listData)
|
int |
updateListItems(java.util.List listData,
java.sql.Connection con)
|
int |
updateListItems(java.util.List listData,
DatabaseSession session)
|
int |
updateListItems(java.util.List listData,
int iDatabaseId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StandardDAOAdapter
public StandardDAOAdapter(StandardDAO dao)
- Parameters:
dao
- the specific DAO
getDAOClass
public java.lang.Class getDAOClass()
getEntityBeanClass
public java.lang.Class getEntityBeanClass()
count
public int count(ListQuery query)
throws TelosysException
- Throws:
TelosysException
count
public int count(ListQuery query,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
count
public int count(ListQuery query,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
count
public int count(ListQuery query,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
delete
public int delete(java.lang.Object bean)
throws TelosysException
- Throws:
TelosysException
delete
public int delete(java.lang.Object bean,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
delete
public int delete(java.lang.Object bean,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
delete
public int delete(java.lang.Object bean,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
deleteList
public int deleteList(ListQuery query)
throws TelosysException
- Throws:
TelosysException
deleteList
public int deleteList(ListQuery query,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
deleteList
public int deleteList(ListQuery query,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
deleteList
public int deleteList(ListQuery query,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
deleteListItems
public int deleteListItems(GenericVOList listData)
throws TelosysException
- Throws:
TelosysException
deleteListItems
public int deleteListItems(GenericVOList listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
deleteListItems
public int deleteListItems(GenericVOList listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
deleteListItems
public int deleteListItems(GenericVOList listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
deleteListItems
public int deleteListItems(java.util.List listData)
throws TelosysException
- Throws:
TelosysException
deleteListItems
public int deleteListItems(java.util.List listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
deleteListItems
public int deleteListItems(java.util.List listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
deleteListItems
public int deleteListItems(java.util.List listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
exists
public boolean exists(java.lang.Object bean)
throws TelosysException
- Throws:
TelosysException
exists
public boolean exists(java.lang.Object bean,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
exists
public boolean exists(java.lang.Object bean,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
exists
public boolean exists(java.lang.Object bean,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
insert
public int insert(java.lang.Object bean)
throws TelosysException
- Throws:
TelosysException
insert
public int insert(java.lang.Object bean,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
insert
public int insert(java.lang.Object bean,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
insert
public int insert(java.lang.Object bean,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
insertKeyGen
public java.lang.Long insertKeyGen(java.lang.Object bean)
throws TelosysException
- Throws:
TelosysException
insertKeyGen
public java.lang.Long insertKeyGen(java.lang.Object bean,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
insertKeyGen
public java.lang.Long insertKeyGen(java.lang.Object bean,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
insertKeyGen
public java.lang.Long insertKeyGen(java.lang.Object bean,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
insertListItems
public int insertListItems(GenericVOList listData)
throws TelosysException
- Throws:
TelosysException
insertListItems
public int insertListItems(GenericVOList listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
insertListItems
public int insertListItems(GenericVOList listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
insertListItems
public int insertListItems(GenericVOList listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
insertListItems
public int insertListItems(java.util.List listData)
throws TelosysException
- Throws:
TelosysException
insertListItems
public int insertListItems(java.util.List listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
insertListItems
public int insertListItems(java.util.List listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
insertListItems
public int insertListItems(java.util.List listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
load
public int load(java.lang.Object bean)
throws TelosysException
- Throws:
TelosysException
load
public int load(java.lang.Object bean,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
load
public int load(java.lang.Object bean,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
load
public int load(java.lang.Object bean,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
load
public int load(java.lang.Object bean,
java.lang.String sOptionalClause)
throws TelosysException
- Throws:
TelosysException
load
public int load(java.lang.Object bean,
java.lang.String sOptionalClause,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
load
public int load(java.lang.Object bean,
java.lang.String sOptionalClause,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
load
public int load(java.lang.Object bean,
java.lang.String sOptionalClause,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
loadList
public int loadList(ListQuery query,
GenericVOList listData)
throws TelosysException
- Throws:
TelosysException
loadList
public int loadList(ListQuery query,
GenericVOList listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
loadList
public int loadList(ListQuery query,
GenericVOList listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
loadList
public int loadList(ListQuery query,
GenericVOList listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
loadList
public int loadList(ListQuery query,
java.util.List listData)
throws TelosysException
- Throws:
TelosysException
loadList
public int loadList(ListQuery query,
java.util.List listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
loadList
public int loadList(ListQuery query,
java.util.List listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
loadList
public int loadList(ListQuery query,
java.util.List listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
save
public int save(java.lang.Object bean)
throws TelosysException
- Throws:
TelosysException
save
public int save(java.lang.Object bean,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
save
public int save(java.lang.Object bean,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
save
public int save(java.lang.Object bean,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
saveList
public int saveList(ListQuery query,
GenericVOList listData)
throws TelosysException
- Throws:
TelosysException
saveList
public int saveList(ListQuery query,
GenericVOList listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
saveList
public int saveList(ListQuery query,
GenericVOList listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
saveList
public int saveList(ListQuery query,
GenericVOList listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
saveList
public int saveList(ListQuery query,
java.util.List listData)
throws TelosysException
- Throws:
TelosysException
saveList
public int saveList(ListQuery query,
java.util.List listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
saveList
public int saveList(ListQuery query,
java.util.List listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
saveList
public int saveList(ListQuery query,
java.util.List listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
update
public int update(java.lang.Object bean)
throws TelosysException
- Throws:
TelosysException
update
public int update(java.lang.Object bean,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
update
public int update(java.lang.Object bean,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
update
public int update(java.lang.Object bean,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
updateListItems
public int updateListItems(GenericVOList listData)
throws TelosysException
- Throws:
TelosysException
updateListItems
public int updateListItems(GenericVOList listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
updateListItems
public int updateListItems(GenericVOList listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
updateListItems
public int updateListItems(GenericVOList listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
updateListItems
public int updateListItems(java.util.List listData)
throws TelosysException
- Throws:
TelosysException
updateListItems
public int updateListItems(java.util.List listData,
java.sql.Connection con)
throws TelosysException
- Throws:
TelosysException
updateListItems
public int updateListItems(java.util.List listData,
DatabaseSession session)
throws TelosysException
- Throws:
TelosysException
updateListItems
public int updateListItems(java.util.List listData,
int iDatabaseId)
throws TelosysException
- Throws:
TelosysException
createQuery
public ListQuery createQuery(Criteria criterias)
throws TelosysException
- Throws:
TelosysException
createQuery
public ListQuery createQuery(Criteria criterias,
java.lang.String sQueryEndOfSelect)
throws TelosysException
- Throws:
TelosysException
createQuery
public ListQuery createQuery(int iParamCount,
java.lang.String sQueryCriteria)
throws TelosysException
- Throws:
TelosysException
createQuery
public ListQuery createQuery(int iParamCount,
java.lang.String sQueryCriteria,
java.lang.String sQueryEndOfSelect)
throws TelosysException
- Throws:
TelosysException
createQuery
public ListQuery createQuery(java.lang.String sQueryCriteria)
throws TelosysException
- Throws:
TelosysException
createQuery
public ListQuery createQuery(java.lang.String sQueryCriteria,
java.lang.String sQueryEndOfSelect)
throws TelosysException
- Throws:
TelosysException
createQueryAll
public ListQuery createQueryAll()
throws TelosysException
- Throws:
TelosysException
createQueryAll
public ListQuery createQueryAll(java.lang.String sQueryEndOfSelect)
throws TelosysException
- Throws:
TelosysException
describe
public java.lang.String describe()
getSqlRequests
public SqlRequests getSqlRequests()
getTableName
public java.lang.String getTableName()
toString
public java.lang.String toString()