org.nhindirect.config.store.dao
Interface DomainDao

All Known Implementing Classes:
DomainDaoImpl

public interface DomainDao

Domain data access methods.


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 domain)
          Get a Domain.
 List<Domain> getDomains(List<String> name, EntityStatus status)
          Get a collection of Domains.
 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 update(Domain item)
          Update a Domain.
 

Method Detail

count

int count()
Get a count of Domains.

Returns:
a count of Domains.

add

void add(Domain item)
Add a Domain.

Parameters:
item - The Domain.

update

void update(Domain item)
Update a Domain.

Parameters:
item - The Domain.

save

void save(Domain item)
Save a Domain.

Parameters:
item - The Domain.

delete

void delete(String name)
Delete a Domain.

Parameters:
name - The Domain name.

delete

void delete(Long anId)
Delete a Domain.

Parameters:
name - The Domain name.

getDomainByName

Domain getDomainByName(String domain)
Get a Domain.

Parameters:
domain - The Domain name.
Returns:
a Domain.

getDomain

Domain getDomain(Long id)
Get a Domain.

Parameters:
id - The Domain id.
Returns:
a Domain.

searchDomain

List<Domain> searchDomain(String name,
                          EntityStatus status)
Get a collection of Domains.

Parameters:
name - The Domain name.
status - The Domain status.
Returns:
a collection of Domains.

getDomains

List<Domain> getDomains(List<String> name,
                        EntityStatus status)
Get a collection of Domains.

Parameters:
name - The collection of Domain names.
status - The Domain status.
Returns:
a collection of Domains.

listDomains

List<Domain> listDomains(String name,
                         int count)
Get a collection of Domains.

Parameters:
name - The Domain name.
count - The count of Domains.
Returns:
a collection of Domains.


Copyright © 2011. All Rights Reserved.