com.nec.tdd.tools.dbMapper
Class DefaultDAOImpl
java.lang.Object
|
+--com.nec.tdd.tools.dbMapper.DefaultDAOImpl
- All Implemented Interfaces:
- DAOInterface
- public class DefaultDAOImpl
- extends java.lang.Object
- implements DAOInterface
Method Summary |
void |
create(DBConnection connection,
java.lang.Object userObject)
Implementation of DAOInterface methods |
void |
createTree(DBConnection connection,
java.lang.Object userObject,
int depth)
|
boolean |
delete(DBConnection connection,
java.lang.Object userObject)
|
int |
deleteAll(DBConnection connection,
java.lang.Class userObjectClass)
|
int |
deleteByAttributes(DBConnection connection,
java.util.HashMap attrValMap,
java.lang.Class userObjectClass)
|
boolean |
deleteByPrimaryKey(DBConnection connection,
java.lang.Object primaryKey,
java.lang.Class userObjectClass)
|
java.util.Collection |
findAll(DBConnection connection,
java.lang.Class userObjectClass)
|
java.util.Collection |
findAllPrimaryKeys(DBConnection connection,
java.lang.Class userObjectClass)
|
java.util.Collection |
findByAttributes(DBConnection connection,
java.util.HashMap attrValMap,
java.lang.Class userObjectClass)
|
java.lang.Object |
findByPrimaryKey(DBConnection connection,
java.lang.Object primaryKey,
java.lang.Class userObjectClass)
User object Finder Methods |
java.lang.Object |
findByPrimaryKey(DBConnection connection,
java.lang.Object primaryKey,
java.lang.Class userObjectClass,
int depth)
|
java.util.Collection |
findByQuery(DBConnection connection,
java.lang.String query,
java.lang.Class userObjectClass)
|
java.util.Collection |
findPrimaryKeysByAttributes(DBConnection connection,
java.util.HashMap attrValMap,
java.lang.Class userObjectClass)
User object primary key Finder Methods |
java.util.Collection |
findPrimaryKeysByQuery(DBConnection connection,
java.lang.String query,
java.lang.Class userObjectClass)
|
DefaultMapper |
getMapper()
|
java.lang.String |
toString()
|
boolean |
update(DBConnection connection,
java.lang.Object userObject)
|
boolean |
update(DBConnection connection,
java.lang.Object userObject,
java.util.HashMap attrValMap,
boolean bUpdateUserObject)
|
boolean |
updateTree(DBConnection connection,
java.lang.Object userObject,
int depth)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mapper
protected DefaultMapper mapper
DefaultDAOImpl
public DefaultDAOImpl(DefaultMapper aMapper)
create
public void create(DBConnection connection,
java.lang.Object userObject)
throws java.lang.Exception
- Implementation of DAOInterface methods
- Specified by:
create
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.create(Object)
createTree
public void createTree(DBConnection connection,
java.lang.Object userObject,
int depth)
throws java.lang.Exception
- Specified by:
createTree
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.createTree(Object)
,
DBInterface.createTree(Object,int)
delete
public boolean delete(DBConnection connection,
java.lang.Object userObject)
throws java.lang.Exception
- Specified by:
delete
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.delete(Object)
deleteByPrimaryKey
public boolean deleteByPrimaryKey(DBConnection connection,
java.lang.Object primaryKey,
java.lang.Class userObjectClass)
throws java.lang.Exception
- Specified by:
deleteByPrimaryKey
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.deleteByPrimaryKey(Object,Class)
deleteByAttributes
public int deleteByAttributes(DBConnection connection,
java.util.HashMap attrValMap,
java.lang.Class userObjectClass)
throws java.lang.Exception
- Specified by:
deleteByAttributes
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.deleteByAttributes(AttrValMap,Class)
deleteAll
public int deleteAll(DBConnection connection,
java.lang.Class userObjectClass)
throws java.lang.Exception
- Specified by:
deleteAll
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.deleteAll(Class)
update
public boolean update(DBConnection connection,
java.lang.Object userObject)
throws java.lang.Exception
- Specified by:
update
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.update(Object)
updateTree
public boolean updateTree(DBConnection connection,
java.lang.Object userObject,
int depth)
throws java.lang.Exception
- Specified by:
updateTree
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.updateTree(Object,int)
update
public boolean update(DBConnection connection,
java.lang.Object userObject,
java.util.HashMap attrValMap,
boolean bUpdateUserObject)
throws java.lang.Exception
- Specified by:
update
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.update(Object,AttrValMap,boolean)
,
DBInterface.update(Object,HashMap,boolean)
findByPrimaryKey
public java.lang.Object findByPrimaryKey(DBConnection connection,
java.lang.Object primaryKey,
java.lang.Class userObjectClass)
throws java.lang.Exception
- User object Finder Methods
- Specified by:
findByPrimaryKey
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.findByPrimaryKey(Object,Class)
findByPrimaryKey
public java.lang.Object findByPrimaryKey(DBConnection connection,
java.lang.Object primaryKey,
java.lang.Class userObjectClass,
int depth)
throws java.lang.Exception
- Specified by:
findByPrimaryKey
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.findByPrimaryKey(Object,Class,int)
findByAttributes
public java.util.Collection findByAttributes(DBConnection connection,
java.util.HashMap attrValMap,
java.lang.Class userObjectClass)
throws java.lang.Exception
- Specified by:
findByAttributes
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.findByAttributes(AttrValMap,Class)
findByQuery
public java.util.Collection findByQuery(DBConnection connection,
java.lang.String query,
java.lang.Class userObjectClass)
throws java.lang.Exception
- Specified by:
findByQuery
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.findByQuery(String,Class)
findAll
public java.util.Collection findAll(DBConnection connection,
java.lang.Class userObjectClass)
throws java.lang.Exception
- Specified by:
findAll
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.findAll(Class)
findPrimaryKeysByAttributes
public java.util.Collection findPrimaryKeysByAttributes(DBConnection connection,
java.util.HashMap attrValMap,
java.lang.Class userObjectClass)
throws java.lang.Exception
- User object primary key Finder Methods
- Specified by:
findPrimaryKeysByAttributes
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.findPrimaryKeysByAttributes(AttrValMap,Class)
findPrimaryKeysByQuery
public java.util.Collection findPrimaryKeysByQuery(DBConnection connection,
java.lang.String query,
java.lang.Class userObjectClass)
throws java.lang.Exception
- Specified by:
findPrimaryKeysByQuery
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.findPrimaryKeysByQuery(String,Class)
findAllPrimaryKeys
public java.util.Collection findAllPrimaryKeys(DBConnection connection,
java.lang.Class userObjectClass)
throws java.lang.Exception
- Specified by:
findAllPrimaryKeys
in interface DAOInterface
- Following copied from interface:
com.nec.tdd.tools.dbMapper.DAOInterface
- See Also:
DBInterface.findAllPrimaryKeys(Class)
getMapper
public DefaultMapper getMapper()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object