org.mftech.dawn.server.persistence
Class DBManager

java.lang.Object
  extended by org.mftech.dawn.server.persistence.DBManager

public class DBManager
extends java.lang.Object

Author:
auto created by DBMangerCreator

Constructor Summary
DBManager()
           
 
Method Summary
static void delete(java.lang.Object o)
           
static void deleteDawnServerImpl(DawnServerImpl obj)
          Deletes DawnServerImpl from database by class
static void deleteDawnServerImpl(int id)
          Deletes DawnServerImpl from database by id
static void deleteGroupImpl(int id)
          Deletes GroupImpl from database by id
static void deleteGroupImpl(RoleImpl obj)
          Deletes GroupImpl from database by class
static void deleteProjectImpl(int id)
          Deletes ProjectImpl from database by id
static void deleteProjectImpl(ProjectImpl obj)
          Deletes ProjectImpl from database by class
static void deleteStandardUserManager(int id)
          Deletes StandardUserManager from database by id
static void deleteStandardUserManager(StandardUserManager obj)
          Deletes StandardUserManager from database by class
static void deleteUserImpl(int id)
          Deletes UserImpl from database by id
static void deleteUserImpl(UserImpl obj)
          Deletes UserImpl from database by class
static void evict(java.lang.Object o)
           
static java.util.List getAll(java.lang.Class c)
          returns all elements from the given class
static java.util.ArrayList<DawnServerImpl> getAllDawnServerImpl()
          returns all DawnServerImpl in a list
static java.util.ArrayList<RoleImpl> getAllGroupImpl()
          returns all GroupImpl in a list
static java.util.ArrayList<ProjectImpl> getAllProjectImpl()
          returns all ProjectImpl in a list
static java.util.ArrayList<StandardUserManager> getAllStandardUserManager()
          returns all StandardUserManager in a list
static java.util.ArrayList<UserImpl> getAllUserImpl()
          returns all UserImpl in a list
static DawnServerImpl loadDawnServerImpl(int id)
          loads DawnServerImpl from database by id
static RoleImpl loadGroupImpl(int id)
          loads GroupImpl from database by id
static ProjectImpl loadProjectImpl(int id)
          loads ProjectImpl from database by id
static StandardUserManager loadStandardUserManager(int id)
          loads StandardUserManager from database by id
static UserImpl loadUserImpl(int id)
          loads UserImpl from database by id
static void merge(java.lang.Object o)
           
static void refresh(java.lang.Object o)
           
static void save(java.lang.Object o)
           
static void saveOrUpdate(java.lang.Object o)
           
static void update(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBManager

public DBManager()
Method Detail

getAll

public static java.util.List getAll(java.lang.Class c)
returns all elements from the given class

Parameters:
c - the class which's items should be read from the db
Returns:

save

public static void save(java.lang.Object o)

saveOrUpdate

public static void saveOrUpdate(java.lang.Object o)

update

public static void update(java.lang.Object o)

delete

public static void delete(java.lang.Object o)

merge

public static void merge(java.lang.Object o)

evict

public static void evict(java.lang.Object o)

deleteProjectImpl

public static void deleteProjectImpl(ProjectImpl obj)
Deletes ProjectImpl from database by class


deleteProjectImpl

public static void deleteProjectImpl(int id)
Deletes ProjectImpl from database by id


loadProjectImpl

public static ProjectImpl loadProjectImpl(int id)
loads ProjectImpl from database by id


getAllProjectImpl

public static java.util.ArrayList<ProjectImpl> getAllProjectImpl()
returns all ProjectImpl in a list


deleteUserImpl

public static void deleteUserImpl(UserImpl obj)
Deletes UserImpl from database by class


deleteUserImpl

public static void deleteUserImpl(int id)
Deletes UserImpl from database by id


loadUserImpl

public static UserImpl loadUserImpl(int id)
loads UserImpl from database by id


getAllUserImpl

public static java.util.ArrayList<UserImpl> getAllUserImpl()
returns all UserImpl in a list


deleteDawnServerImpl

public static void deleteDawnServerImpl(DawnServerImpl obj)
Deletes DawnServerImpl from database by class


deleteDawnServerImpl

public static void deleteDawnServerImpl(int id)
Deletes DawnServerImpl from database by id


loadDawnServerImpl

public static DawnServerImpl loadDawnServerImpl(int id)
loads DawnServerImpl from database by id


getAllDawnServerImpl

public static java.util.ArrayList<DawnServerImpl> getAllDawnServerImpl()
returns all DawnServerImpl in a list


deleteGroupImpl

public static void deleteGroupImpl(RoleImpl obj)
Deletes GroupImpl from database by class


deleteGroupImpl

public static void deleteGroupImpl(int id)
Deletes GroupImpl from database by id


loadGroupImpl

public static RoleImpl loadGroupImpl(int id)
loads GroupImpl from database by id


getAllGroupImpl

public static java.util.ArrayList<RoleImpl> getAllGroupImpl()
returns all GroupImpl in a list


deleteStandardUserManager

public static void deleteStandardUserManager(StandardUserManager obj)
Deletes StandardUserManager from database by class


deleteStandardUserManager

public static void deleteStandardUserManager(int id)
Deletes StandardUserManager from database by id


loadStandardUserManager

public static StandardUserManager loadStandardUserManager(int id)
loads StandardUserManager from database by id


getAllStandardUserManager

public static java.util.ArrayList<StandardUserManager> getAllStandardUserManager()
returns all StandardUserManager in a list


refresh

public static void refresh(java.lang.Object o)