de.iai.ilcd.model.dao
Class UnitGroupDao

java.lang.Object
  extended by de.iai.ilcd.model.dao.DataSetDao<UnitGroup,de.fzk.iai.ilcd.service.model.IUnitGroupListVO>
      extended by de.iai.ilcd.model.dao.UnitGroupDao

public class UnitGroupDao
extends DataSetDao<UnitGroup,de.fzk.iai.ilcd.service.model.IUnitGroupListVO>

Data access object for unit groups


Constructor Summary
UnitGroupDao()
           
 
Method Summary
protected  javax.persistence.Query createQueryObject(org.apache.velocity.tools.generic.ValueParser params, java.lang.String sortString, boolean ascending, boolean returnCount)
          This method must be implemented by each dao class extending this class.
 long getNumberOfUnitGroups(java.lang.String mainClass)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String).
 long getNumberOfUnitGroups(java.lang.String mainClass, java.lang.String subClass)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String,String).
 UnitGroup getUnitGroup(long datasetId)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(long).
 UnitGroup getUnitGroup(java.lang.String uuid)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByUuid(String).
 UnitGroup getUnitGroupById(java.lang.Long id)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(long).
 UnitGroup getUnitGroupById(java.lang.String id)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(String).
 java.util.List<UnitGroup> getUnitGroups()
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getAll().
 java.util.List<UnitGroup> getUnitGroupsByClass(java.lang.String mainClass)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String).
 java.util.List<UnitGroup> getUnitGroupsByClass(java.lang.String mainClass, java.lang.String subClass)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String,String).
protected  void preCheckAndPersist(UnitGroup dataSet)
          Invoked at beginning of DataSetDao.checkAndPersist(DataSet, PersistType, PrintWriter) to manipulate data prior to persisting
 
Methods inherited from class de.iai.ilcd.model.dao.DataSetDao
buildClassificationJoin, buildClassificationJoin, buildClassificationWhere, buildClassificationWhere, checkAndPersist, getAccessedClass, getAll, getAllCount, getByClass, getByClass, getByDataSetId, getByDataSetId, getByUuid, getByUuidAndVersion, getDataSets, getJpaName, getNumberByClass, getNumberByClass, getSubClasses, getTopClasses, lsearch, lsearch, lsearch, merge, remove, search, search, search, search, search, searchResultCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitGroupDao

public UnitGroupDao()
Method Detail

preCheckAndPersist

protected void preCheckAndPersist(UnitGroup dataSet)
Description copied from class: DataSetDao
Invoked at beginning of DataSetDao.checkAndPersist(DataSet, PersistType, PrintWriter) to manipulate data prior to persisting

Specified by:
preCheckAndPersist in class DataSetDao<UnitGroup,de.fzk.iai.ilcd.service.model.IUnitGroupListVO>
Parameters:
dataSet - data set to manipulate
See Also:
DataSetDao.checkAndPersist(DataSet, PersistType, PrintWriter)

createQueryObject

protected javax.persistence.Query createQueryObject(org.apache.velocity.tools.generic.ValueParser params,
                                                    java.lang.String sortString,
                                                    boolean ascending,
                                                    boolean returnCount)
Description copied from class: DataSetDao
This method must be implemented by each dao class extending this class. It will return the specific Query object to use for the given subclass of objects, i.e. Process, Flow, ... This method will then be used by the other generic lsearch functions to issue the special query.

Specified by:
createQueryObject in class DataSetDao<UnitGroup,de.fzk.iai.ilcd.service.model.IUnitGroupListVO>
Parameters:
params - lsearch parameter
sortString - field of result object which will be used for ordering of lsearch results
returnCount - if true return count of lsearch result instead of lsearch results
Returns:
JPA Query objects for doing the lsearch

getUnitGroups

public java.util.List<UnitGroup> getUnitGroups()
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getAll().

Get list of all unit groups

Returns:
list of all unit groups
See Also:
DataSetDao.getAll()

getUnitGroup

@Deprecated
public UnitGroup getUnitGroup(java.lang.String uuid)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByUuid(String).

Get a unit group by UUID

Parameters:
uuid - UUID of flow to get
Returns:
unit group with provided UUID
See Also:
DataSetDao.getByUuid(String)

getUnitGroup

@Deprecated
public UnitGroup getUnitGroup(long datasetId)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(long).

Get the unit group with the provided JPA id

Parameters:
datasetId - JPA id
Returns:
unit group with the provided JPA id
See Also:
DataSetDao.getByDataSetId(long)

getUnitGroupById

@Deprecated
public UnitGroup getUnitGroupById(java.lang.String id)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(String).

Get the unit group with the provided JPA id

Parameters:
id - JPA id as string
Returns:
unit group with the provided JPA id
See Also:
DataSetDao.getByDataSetId(String)

getUnitGroupById

@Deprecated
public UnitGroup getUnitGroupById(java.lang.Long id)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(long).

Get the unit group with the provided JPA id

Parameters:
id - JPA id
Returns:
unit group with the provided JPA id
See Also:
DataSetDao.getByDataSetId(long)

getUnitGroupsByClass

@Deprecated
public java.util.List<UnitGroup> getUnitGroupsByClass(java.lang.String mainClass)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String).

Get unit groups by main class

Parameters:
mainClass - main class to get unit group by
Returns:
matched data sets
See Also:
DataSetDao.getByClass(String)

getNumberOfUnitGroups

@Deprecated
public long getNumberOfUnitGroups(java.lang.String mainClass)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String).

Get the number of unit groups by main class

Parameters:
mainClass - main class to get unit group by
Returns:
the number of matched data sets
See Also:
DataSetDao.getNumberByClass(String)

getUnitGroupsByClass

@Deprecated
public java.util.List<UnitGroup> getUnitGroupsByClass(java.lang.String mainClass,
                                                                 java.lang.String subClass)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String,String).

Get unit groups by main and sub class

Parameters:
mainClass - main class to get unit group by
subClass - sub class to get unit group by
Returns:
matched data sets
See Also:
DataSetDao.getByClass(String,String)

getNumberOfUnitGroups

@Deprecated
public long getNumberOfUnitGroups(java.lang.String mainClass,
                                             java.lang.String subClass)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String,String).

Get number of unit groups by main and sub class

Parameters:
mainClass - main class to get unit group by
subClass - sub class to get unit group by
Returns:
number of matched data sets
See Also:
DataSetDao.getNumberByClass(String,String)