at.ac.tuwien.vitalab.hrcrm.dao
Class GenericDaoIbatisImpl<T>

java.lang.Object
  extended by at.ac.tuwien.vitalab.hrcrm.dao.GenericDaoIbatisImpl<T>
Type Parameters:
T - A placeholder for an object, which have to be persist.
All Implemented Interfaces:
GenericDao<T>

public class GenericDaoIbatisImpl<T>
extends java.lang.Object
implements GenericDao<T>

Author:
Vassil Nikolov

Constructor Summary
GenericDaoIbatisImpl()
           
 
Method Summary
 boolean addAddressToParty(AddressParty addressParty)
           
 boolean addNameToParty(NameParty nameParty)
           
 void create(T object)
          Persists the given object to the database.
 boolean deleteById(T object)
          
 java.util.List<T> retrieveAll(T object)
          
 T retrieveById(T object)
          Search in the database for an object, with the given id.
 void setSqlMapClientOperations(org.springframework.orm.ibatis.SqlMapClientOperations sqlMapClientOperations)
          Write access to private field.
 boolean updateById(T object)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericDaoIbatisImpl

public GenericDaoIbatisImpl()
Method Detail

create

public void create(T object)
Persists the given object to the database.

Specified by:
create in interface GenericDao<T>
Parameters:
object - Object to be persisted.

retrieveById

public T retrieveById(T object)
Search in the database for an object, with the given id.

Specified by:
retrieveById in interface GenericDao<T>
Parameters:
object - Contains the id.
Returns:
An entity if found, else null.

retrieveAll

public java.util.List<T> retrieveAll(T object)

Specified by:
retrieveAll in interface GenericDao<T>

updateById

public boolean updateById(T object)

Specified by:
updateById in interface GenericDao<T>

deleteById

public boolean deleteById(T object)

Specified by:
deleteById in interface GenericDao<T>

setSqlMapClientOperations

public void setSqlMapClientOperations(org.springframework.orm.ibatis.SqlMapClientOperations sqlMapClientOperations)
Write access to private field.

Parameters:
sqlMapClientOperations - The sqlMapClientOperations to set.

addAddressToParty

public boolean addAddressToParty(AddressParty addressParty)
Specified by:
addAddressToParty in interface GenericDao<T>

addNameToParty

public boolean addNameToParty(NameParty nameParty)
Specified by:
addNameToParty in interface GenericDao<T>


Copyright © 2008 null. All Rights Reserved.