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

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

@Repository
public class AnchorDaoImpl
extends Object
implements AnchorDao

Implementing class for Anchor DAO methods.

Author:
ppyette

Constructor Summary
AnchorDaoImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnchorDaoImpl

public AnchorDaoImpl()
Method Detail

load

@Transactional(readOnly=true)
public Anchor load(String owner)
Description copied from interface: AnchorDao
Load an Anchor.

Specified by:
load in interface AnchorDao
Parameters:
owner - The Anchor owner.
Returns:
an Anchor.

listAll

@Transactional(readOnly=true)
public List<Anchor> listAll()
Description copied from interface: AnchorDao
Get a collection of all Anchors.

Specified by:
listAll in interface AnchorDao
Returns:
a collection of all Anchors.

list

@Transactional(readOnly=true)
public List<Anchor> list(List<String> owners)
Description copied from interface: AnchorDao
Get a collection of Anchors.

Specified by:
list in interface AnchorDao
Parameters:
owners - A collection of owners.
Returns:
a collection of Anchors.

add

@Transactional(readOnly=false)
public void add(Anchor anchor)
Add an anchor

Specified by:
add in interface AnchorDao
Parameters:
anchor - The anchor to add.

save

@Transactional(readOnly=false)
public void save(Anchor anchor)
Description copied from interface: AnchorDao
Save an Anchor.

Specified by:
save in interface AnchorDao
Parameters:
anchor - The Anchor.

save

@Transactional(readOnly=false)
public void save(List<Anchor> anchorList)
Description copied from interface: AnchorDao
Save a collection of Anchors.

Specified by:
save in interface AnchorDao
Parameters:
anchorList - The collection of Anchors.

listByIds

@Transactional(readOnly=true)
public List<Anchor> listByIds(List<Long> anchorIds)
Description copied from interface: AnchorDao
Get a list by anchor ids

Specified by:
listByIds in interface AnchorDao
Parameters:
anchorIds - List of ids to retrieved anchors for.
Returns:
Collection of anchors matching the anchorIds

setStatus

@Transactional(readOnly=false)
public void setStatus(List<Long> anchorIDs,
                                    EntityStatus status)
Description copied from interface: AnchorDao
Set the status for a collection of Anchors.

Specified by:
setStatus in interface AnchorDao
Parameters:
anchorIDs - The Anchor IDs.
status - The Anchor status.

setStatus

@Transactional(readOnly=false)
public void setStatus(String owner,
                                    EntityStatus status)
Description copied from interface: AnchorDao
Set the status of an Anchor.

Specified by:
setStatus in interface AnchorDao
Parameters:
owner - The Anchor owner.
status - The Anchor status.

delete

@Transactional(readOnly=false)
public void delete(List<Long> idList)
Description copied from interface: AnchorDao
Delete a collection of Anchors.

Specified by:
delete in interface AnchorDao
Parameters:
idList - The collection of Anchor IDs.

delete

@Transactional(readOnly=false)
public void delete(String owner)
Description copied from interface: AnchorDao
Delete a collection of Anchors.

Specified by:
delete in interface AnchorDao
Parameters:
owner - The Anchor owner.


Copyright © 2011. All Rights Reserved.