de.iai.ilcd.model.dao
Class FlowPropertyDao

java.lang.Object
  extended by de.iai.ilcd.model.dao.DataSetDao<FlowProperty,de.fzk.iai.ilcd.service.model.IFlowPropertyListVO,de.fzk.iai.ilcd.service.model.IFlowPropertyVO>
      extended by de.iai.ilcd.model.dao.FlowPropertyDao

public class FlowPropertyDao
extends DataSetDao<FlowProperty,de.fzk.iai.ilcd.service.model.IFlowPropertyListVO,de.fzk.iai.ilcd.service.model.IFlowPropertyVO>

Data access object for flow properties


Constructor Summary
FlowPropertyDao()
           
 
Method Summary
protected  javax.persistence.Query createQueryObject(org.apache.velocity.tools.generic.ValueParser params, java.lang.String sortString, boolean ascending, boolean returnCount, boolean mostRecentVersionOnly)
          This method must be implemented by each dao class extending this class.
 FlowProperty getByUuid(java.lang.String uuid)
          Get flow property by UUID.
 java.util.List<FlowProperty> getFlowProperties()
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getAll().
 java.util.List<FlowProperty> getFlowPropertiesByClass(java.lang.String mainClass)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String).
 java.util.List<FlowProperty> getFlowPropertiesByClass(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).
 FlowProperty getFlowProperty(long datasetId)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(long).
 FlowProperty getFlowProperty(java.lang.String uuid)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use getByUuid(String).
 FlowProperty getFlowPropertyById(java.lang.Long id)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(long).
 FlowProperty getFlowPropertyById(java.lang.String id)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(String).
 long getNumberOfFlowProperties(java.lang.String mainClass)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String).
 long getNumberOfFlowProperties(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(FlowProperty 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, getByUuidAndVersion, getDataSets, getForeignDataSet, getJpaName, getNumberByClass, getNumberByClass, getOtherVersions, 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

FlowPropertyDao

public FlowPropertyDao()
Method Detail

preCheckAndPersist

protected void preCheckAndPersist(FlowProperty 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<FlowProperty,de.fzk.iai.ilcd.service.model.IFlowPropertyListVO,de.fzk.iai.ilcd.service.model.IFlowPropertyVO>
Parameters:
dataSet - data set to manipulate
See Also:
DataSetDao.checkAndPersist(DataSet, PersistType, PrintWriter)

getByUuid

public FlowProperty getByUuid(java.lang.String uuid)
Get flow property by UUID. Overrides DataSetDao implementation because attachUnitGroup(FlowProperty) is called after loading.

Overrides:
getByUuid in class DataSetDao<FlowProperty,de.fzk.iai.ilcd.service.model.IFlowPropertyListVO,de.fzk.iai.ilcd.service.model.IFlowPropertyVO>
Parameters:
uuid - the UUID string
Returns:
data set of type T for the specified UUID string, or null if none found

createQueryObject

protected javax.persistence.Query createQueryObject(org.apache.velocity.tools.generic.ValueParser params,
                                                    java.lang.String sortString,
                                                    boolean ascending,
                                                    boolean returnCount,
                                                    boolean mostRecentVersionOnly)
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<FlowProperty,de.fzk.iai.ilcd.service.model.IFlowPropertyListVO,de.fzk.iai.ilcd.service.model.IFlowPropertyVO>
Parameters:
params - lsearch parameter
sortString - field of result object which will be used for ordering of lsearch results
ascending - true for ascending ordering, false for descending
returnCount - if true return count of lsearch result instead of lsearch results
mostRecentVersionOnly - flag to indicate if only the most recent version of a data set shall be returned if multiple versions exist
Returns:
JPA Query objects for doing the lsearch

getFlowProperties

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

Get list of all contacts

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

getFlowProperty

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

Get flow property by UUID

Returns:
flow property with provided UUID
See Also:
getByUuid(String)

getFlowProperty

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

Get the flow property with the provided JPA id

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

getFlowPropertyById

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

Get the flow property with the provided JPA id

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

getFlowPropertyById

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

Get the flow property with the provided JPA id

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

getFlowPropertiesByClass

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

Get flow properties by main class

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

getNumberOfFlowProperties

@Deprecated
public long getNumberOfFlowProperties(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 flow properties by main class

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

getFlowPropertiesByClass

@Deprecated
public java.util.List<FlowProperty> getFlowPropertiesByClass(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 flow properties by main and sub class

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

getNumberOfFlowProperties

@Deprecated
public long getNumberOfFlowProperties(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 flow properties by main and sub class

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