org.nhindirect.config.store.dao
Interface AnchorDao

All Known Implementing Classes:
AnchorDaoImpl

public interface AnchorDao

Anchor data access methods.


Method Summary
 void add(Anchor anchor)
          Add an anchor
 void delete(List<Long> idList)
          Delete a collection of Anchors.
 void delete(String owner)
          Delete a collection of Anchors.
 List<Anchor> list(List<String> owners)
          Get a collection of Anchors.
 List<Anchor> listAll()
          Get a collection of all Anchors.
 List<Anchor> listByIds(List<Long> anchorIds)
          Get a list by anchor ids
 Anchor load(String owner)
          Load an Anchor.
 void save(Anchor anchor)
          Save an Anchor.
 void save(List<Anchor> anchorList)
          Save a collection of Anchors.
 void setStatus(List<Long> anchorIDs, EntityStatus status)
          Set the status for a collection of Anchors.
 void setStatus(String owner, EntityStatus status)
          Set the status of an Anchor.
 

Method Detail

load

Anchor load(String owner)
Load an Anchor.

Parameters:
owner - The Anchor owner.
Returns:
an Anchor.

listAll

List<Anchor> listAll()
Get a collection of all Anchors.

Returns:
a collection of all Anchors.

list

List<Anchor> list(List<String> owners)
Get a collection of Anchors.

Parameters:
owners - A collection of owners.
Returns:
a collection of Anchors.

add

void add(Anchor anchor)
Add an anchor

Parameters:
anchor - The anchor to add.

save

void save(Anchor anchor)
Save an Anchor.

Parameters:
anchor - The Anchor.

save

void save(List<Anchor> anchorList)
Save a collection of Anchors.

Parameters:
anchorList - The collection of Anchors.

listByIds

List<Anchor> listByIds(List<Long> anchorIds)
Get a list by anchor ids

Parameters:
anchorIds - List of ids to retrieved anchors for.
Returns:
Collection of anchors matching the anchorIds

setStatus

void setStatus(List<Long> anchorIDs,
               EntityStatus status)
Set the status for a collection of Anchors.

Parameters:
anchorIDs - The Anchor IDs.
status - The Anchor status.

setStatus

void setStatus(String owner,
               EntityStatus status)
Set the status of an Anchor.

Parameters:
owner - The Anchor owner.
status - The Anchor status.

delete

void delete(List<Long> idList)
Delete a collection of Anchors.

Parameters:
idList - The collection of Anchor IDs.

delete

void delete(String owner)
Delete a collection of Anchors.

Parameters:
owner - The Anchor owner.


Copyright © 2011. All Rights Reserved.