org.jasig.portal.layout.dlm
Class FragmentDefinitionDao

java.lang.Object
  extended by org.jasig.portal.layout.dlm.FragmentDefinitionDao
All Implemented Interfaces:
IFragmentDefinitionDao

@Repository
public class FragmentDefinitionDao
extends Object
implements IFragmentDefinitionDao


Constructor Summary
FragmentDefinitionDao()
           
 
Method Summary
 List<FragmentDefinition> getAllFragments()
          Obtains the complete set of FragmentDefinition objects contained within this data source.
 EntityManager getEntityManager()
           
 FragmentDefinition getFragmentDefinition(String name)
          Obtains the FragmentDefinition object with the specified name.
 void removeFragmentDefinition(FragmentDefinition fd)
          Deletes the specified FragmentDefinition within the data source.
 void setEntityManager(EntityManager entityManager)
           
 void updateFragmentDefinition(FragmentDefinition fd)
          Updates the specified FragmentDefinition within the data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentDefinitionDao

public FragmentDefinitionDao()
Method Detail

getEntityManager

public EntityManager getEntityManager()
Returns:
the entityManager

setEntityManager

public void setEntityManager(EntityManager entityManager)
Parameters:
entityManager - the entityManager to set

getAllFragments

public List<FragmentDefinition> getAllFragments()
Description copied from interface: IFragmentDefinitionDao
Obtains the complete set of FragmentDefinition objects contained within this data source.

Specified by:
getAllFragments in interface IFragmentDefinitionDao
Returns:
The fragment with the corresponding name, or null

getFragmentDefinition

public FragmentDefinition getFragmentDefinition(String name)
Description copied from interface: IFragmentDefinitionDao
Obtains the FragmentDefinition object with the specified name.

Specified by:
getFragmentDefinition in interface IFragmentDefinitionDao
Parameters:
name - The unique name of a fragment
Returns:
The fragment with the corresponding name, or null

updateFragmentDefinition

@Transactional
public void updateFragmentDefinition(FragmentDefinition fd)
Description copied from interface: IFragmentDefinitionDao
Updates the specified FragmentDefinition within the data source.

Specified by:
updateFragmentDefinition in interface IFragmentDefinitionDao
Parameters:
fd - A fragment definition that has been modified

removeFragmentDefinition

@Transactional
public void removeFragmentDefinition(FragmentDefinition fd)
Description copied from interface: IFragmentDefinitionDao
Deletes the specified FragmentDefinition within the data source.

Specified by:
removeFragmentDefinition in interface IFragmentDefinitionDao
Parameters:
fd - A fragment definition that exists within this data source


Copyright © 2010 Jasig. All Rights Reserved.