|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.channel.dao.jpa.JpaChannelTypeDao
public class JpaChannelTypeDao
JPA/Hibernate implementation of IChannelTypeDao. This DAO handles channel types and is not yet integrated with the channel definition persistence code.
| Constructor Summary | |
|---|---|
JpaChannelTypeDao()
|
|
| Method Summary | |
|---|---|
IChannelType |
createChannelType(String name,
String clazz,
String cpdUri)
Creates, initializes and persists a new IChannelType based on the specified parameters |
void |
deleteChannelType(IChannelType type)
Removes the specified IChannelType from the persistent store. |
IChannelType |
getChannelType(int id)
Get a IChannelType for the specified id. |
IChannelType |
getChannelType(String name)
Get a IChannelType for the specified name |
List<IChannelType> |
getChannelTypes()
|
void |
setEntityManager(EntityManager entityManager)
|
IChannelType |
updateChannelType(IChannelType type)
Persists changes to a IChannelType. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JpaChannelTypeDao()
| Method Detail |
|---|
public void setEntityManager(EntityManager entityManager)
entityManager - the entityManager to set@Transactional public void deleteChannelType(IChannelType type)
IChannelTypeDaoIChannelType from the persistent store.
deleteChannelType in interface IChannelTypeDaotype - The type to remove.
@Transactional
public IChannelType createChannelType(String name,
String clazz,
String cpdUri)
IChannelTypeDaoIChannelType based on the specified parameters
createChannelType in interface IChannelTypeDaoname - The name of the channel typeclazz - The Java Class the type representscpdUri - The URI to the CPD file used when publishing channels of this type
IChannelTypepublic IChannelType getChannelType(int id)
IChannelTypeDaoIChannelType for the specified id.
getChannelType in interface IChannelTypeDaoid - The id to get the type for.
public IChannelType getChannelType(String name)
IChannelTypeDaoIChannelType for the specified name
getChannelType in interface IChannelTypeDaoname - The name to get the type for.
public List<IChannelType> getChannelTypes()
getChannelTypes in interface IChannelTypeDaoList of all persisted IChannelTypes@Transactional public IChannelType updateChannelType(IChannelType type)
IChannelTypeDaoIChannelType.
updateChannelType in interface IChannelTypeDaotype - The channel type to store the changes for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||