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

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

@Repository
public class DomainDaoImpl
extends Object
implements DomainDao

Default Spring/JPA implemenation

Author:
ppyette

Constructor Summary
DomainDaoImpl()
           
 
Method Summary
 void add(Domain item)
          Add a Domain.
 int count()
          Get a count of Domains.
 void delete(Long anId)
          Delete a Domain.
 void delete(String name)
          Delete a Domain.
 Domain getDomain(Long id)
          Get a Domain.
 Domain getDomainByName(String name)
          Get a Domain.
 List<Domain> getDomains(List<String> names, EntityStatus status)
          Get a collection of Domains.
 javax.persistence.EntityManager getEntityManager()
          Get the value of entityManager.
 List<Domain> listDomains(String name, int count)
          Get a collection of Domains.
 void save(Domain item)
          Save a Domain.
 List<Domain> searchDomain(String name, EntityStatus status)
          Get a collection of Domains.
 void setAddressDao(AddressDao aDao)
          Set the value of addressDao.
 void setEntityManager(javax.persistence.EntityManager entityManager)
          Set the value of entityManager.
 void update(Domain item)
          Update a Domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainDaoImpl

public DomainDaoImpl()
Method Detail

count

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

Specified by:
count in interface DomainDao
Returns:
a count of Domains.

add

@Transactional(readOnly=false)
public void add(Domain item)
Description copied from interface: DomainDao
Add a Domain.

Specified by:
add in interface DomainDao
Parameters:
item - The Domain.

update

@Transactional(readOnly=false)
public void update(Domain item)
Description copied from interface: DomainDao
Update a Domain.

Specified by:
update in interface DomainDao
Parameters:
item - The Domain.

save

@Transactional(readOnly=false)
public void save(Domain item)
Description copied from interface: DomainDao
Save a Domain.

Specified by:
save in interface DomainDao
Parameters:
item - The Domain.

delete

@Transactional(readOnly=false)
public void delete(String name)
Description copied from interface: DomainDao
Delete a Domain.

Specified by:
delete in interface DomainDao
Parameters:
name - The Domain name.

delete

@Transactional(readOnly=false)
public void delete(Long anId)
Description copied from interface: DomainDao
Delete a Domain.

Specified by:
delete in interface DomainDao

getDomainByName

@Transactional(readOnly=true)
public Domain getDomainByName(String name)
Description copied from interface: DomainDao
Get a Domain.

Specified by:
getDomainByName in interface DomainDao
Parameters:
name - The Domain name.
Returns:
a Domain.

getDomains

@Transactional(readOnly=true)
public List<Domain> getDomains(List<String> names,
                                             EntityStatus status)
Description copied from interface: DomainDao
Get a collection of Domains.

Specified by:
getDomains in interface DomainDao
Parameters:
names - The collection of Domain names.
status - The Domain status.
Returns:
a collection of Domains.

listDomains

@Transactional(readOnly=true)
public List<Domain> listDomains(String name,
                                              int count)
Description copied from interface: DomainDao
Get a collection of Domains.

Specified by:
listDomains in interface DomainDao
Parameters:
name - The Domain name.
count - The count of Domains.
Returns:
a collection of Domains.

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 vale of entityManager.

searchDomain

@Transactional(readOnly=true)
public List<Domain> searchDomain(String name,
                                               EntityStatus status)
Description copied from interface: DomainDao
Get a collection of Domains.

Specified by:
searchDomain in interface DomainDao
Parameters:
name - The Domain name.
status - The Domain status.
Returns:
a collection of Domains.

getDomain

@Transactional(readOnly=true)
public Domain getDomain(Long id)
Description copied from interface: DomainDao
Get a Domain.

Specified by:
getDomain in interface DomainDao
Parameters:
id - The Domain id.
Returns:
a Domain.

setAddressDao

public void setAddressDao(AddressDao aDao)
Set the value of addressDao.

Parameters:
aDao - The value of addressDao.


Copyright © 2011. All Rights Reserved.