com.pmease.quickbuild.entitymanager.impl
Class DefaultGroupManager

java.lang.Object
  extended by com.pmease.quickbuild.entitymanager.impl.AbstractEntityManager<Group>
      extended by com.pmease.quickbuild.entitymanager.impl.DefaultGroupManager
All Implemented Interfaces:
EntityManager<Group>, GroupManager

public class DefaultGroupManager
extends AbstractEntityManager<Group>
implements GroupManager


Field Summary
 
Fields inherited from interface com.pmease.quickbuild.entitymanager.GroupManager
instance
 
Constructor Summary
DefaultGroupManager()
           
 
Method Summary
 Group copyAsNew(Group group)
           
 void delete(Group group)
          delete specified entity.
 Group get(java.lang.String name)
           
 java.util.List<java.lang.String> getGroupNames()
           
 void save(Group group)
          create new entry in database if identifier of specified identity is null, or update existing entity into database if the identifier is not null.
 void save(Group group, java.lang.String oldGroupName)
          Save specified group.
 
Methods inherited from class com.pmease.quickbuild.entitymanager.impl.AbstractEntityManager
count, count, countEntities, get, getAll, getAll, getSession, load, search, searchEntities, searchEntityIds, searchIds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.pmease.quickbuild.entitymanager.EntityManager
count, count, get, getAll, getAll, load, search, searchIds
 

Constructor Detail

DefaultGroupManager

public DefaultGroupManager()
Method Detail

get

public Group get(java.lang.String name)
Specified by:
get in interface GroupManager

getGroupNames

public java.util.List<java.lang.String> getGroupNames()
Specified by:
getGroupNames in interface GroupManager

copyAsNew

public Group copyAsNew(Group group)
Specified by:
copyAsNew in interface GroupManager

delete

public void delete(Group group)
Description copied from class: AbstractEntityManager
delete specified entity.

Specified by:
delete in interface EntityManager<Group>
Overrides:
delete in class AbstractEntityManager<Group>

save

public void save(Group group)
Description copied from class: AbstractEntityManager
create new entry in database if identifier of specified identity is null, or update existing entity into database if the identifier is not null.

Specified by:
save in interface EntityManager<Group>
Overrides:
save in class AbstractEntityManager<Group>

save

public void save(Group group,
                 java.lang.String oldGroupName)
Description copied from interface: GroupManager
Save specified group.

Specified by:
save in interface GroupManager
oldGroupName - if this param is not null, references to the old group name in other settings will be updated to use the new group name.


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.