org.nhindirect.config.store.dao.impl
Class AddressDaoImpl

java.lang.Object
  extended by org.nhindirect.config.store.dao.impl.AddressDaoImpl
All Implemented Interfaces:
AddressDao

@Repository
public class AddressDaoImpl
extends Object
implements AddressDao

Implementing class for Address DAO methods.

Author:
ppyette

Constructor Summary
AddressDaoImpl()
           
 
Method Summary
 void add(Address item)
          Add an Address.
 int count()
          Get a count of Addresses.
 void delete(String name)
          Delete an Address.
 Address get(String name)
          Get an Address.
 List<Address> getByDomain(Domain domain, EntityStatus status)
          Get a collection of Addresses.
 javax.persistence.EntityManager getEntityManager()
          Get the value of entityManager.
 List<Address> listAddresses(List<String> names, EntityStatus status)
          Get a collection of Addresses.
 List<Address> listAddresses(String name, int count)
          Get a collection of Addresses.
 void save(Address item)
          Save an Address.
 void setEntityManager(javax.persistence.EntityManager entityManager)
          Set the value of entityManager.
 void update(Address item)
          Update an Address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressDaoImpl

public AddressDaoImpl()
Method Detail

count

@Transactional(readOnly=true)
public int count()
Description copied from interface: AddressDao
Get a count of Addresses.

Specified by:
count in interface AddressDao
Returns:
a count of Addresses.

add

@Transactional(readOnly=false)
public void add(Address item)
Description copied from interface: AddressDao
Add an Address.

Specified by:
add in interface AddressDao
Parameters:
item - The Address.

update

@Transactional(readOnly=false)
public void update(Address item)
Description copied from interface: AddressDao
Update an Address.

Specified by:
update in interface AddressDao
Parameters:
item - The Address.

save

@Transactional(readOnly=false)
public void save(Address item)
Description copied from interface: AddressDao
Save an Address.

Specified by:
save in interface AddressDao
Parameters:
item - The Address.

delete

@Transactional(readOnly=false)
public void delete(String name)
Description copied from interface: AddressDao
Delete an Address.

Specified by:
delete in interface AddressDao
Parameters:
name - The Address.

listAddresses

@Transactional(readOnly=true)
public List<Address> listAddresses(String name,
                                                 int count)
Description copied from interface: AddressDao
Get a collection of Addresses.

Specified by:
listAddresses in interface AddressDao
Parameters:
name - The address name.
count - The count.
Returns:
a collection of Addresses.

get

@Transactional(readOnly=true)
public Address get(String name)
Description copied from interface: AddressDao
Get an Address.

Specified by:
get in interface AddressDao
Parameters:
name - The Address name.
Returns:
an Address.

listAddresses

@Transactional(readOnly=true)
public List<Address> listAddresses(List<String> names,
                                                 EntityStatus status)
Description copied from interface: AddressDao
Get a collection of Addresses.

Specified by:
listAddresses in interface AddressDao
Parameters:
names - The Address names.
status - The Address status.
Returns:
a collection of Addresses.

getByDomain

@Transactional(readOnly=true)
public List<Address> getByDomain(Domain domain,
                                               EntityStatus status)
Description copied from interface: AddressDao
Get a collection of Addresses.

Specified by:
getByDomain in interface AddressDao
Parameters:
domain - The Domain name.
status - The Address status.
Returns:
a collection of Addresses.

getEntityManager

public javax.persistence.EntityManager getEntityManager()
Get the value of entityManager.

Returns:
the value of entityManager.

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)
Set the value of entityManager.

Parameters:
entityManager - The value of entityManager.


Copyright © 2011. All Rights Reserved.