de.iai.ilcd.model.dao
Class LCIAMethodDao

java.lang.Object
  extended by de.iai.ilcd.model.dao.DataSetDao<LCIAMethod,de.fzk.iai.ilcd.service.model.ILCIAMethodListVO,de.fzk.iai.ilcd.service.model.ILCIAMethodVO>
      extended by de.iai.ilcd.model.dao.LCIAMethodDao

public class LCIAMethodDao
extends DataSetDao<LCIAMethod,de.fzk.iai.ilcd.service.model.ILCIAMethodListVO,de.fzk.iai.ilcd.service.model.ILCIAMethodVO>

Data access object for LCIAMethod


Constructor Summary
LCIAMethodDao()
           
 
Method Summary
protected  javax.persistence.Query createQueryObject(org.apache.velocity.tools.generic.ValueParser params, java.lang.String sortCriterium, boolean ascending, boolean returnCount, boolean mostRecentVersionOnly)
          This method must be implemented by each dao class extending this class.
 LCIAMethod getLCIAMethod(java.lang.String uuid)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases
 LCIAMethod getLCIAMethod(java.lang.String uuid, DataSetVersion version)
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByUuidAndVersion(String, DataSetVersion).
 java.util.List<LCIAMethod> getLCIAMethods()
          Deprecated. still exists for internal backwards compatibility, may be removed in future releases
protected  void preCheckAndPersist(LCIAMethod method)
          Link the flow instances in the database with the flow global references of this LCIAMethod
 
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, 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

LCIAMethodDao

public LCIAMethodDao()
Method Detail

createQueryObject

protected javax.persistence.Query createQueryObject(org.apache.velocity.tools.generic.ValueParser params,
                                                    java.lang.String sortCriterium,
                                                    boolean ascending,
                                                    boolean returnCount,
                                                    boolean mostRecentVersionOnly)
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<LCIAMethod,de.fzk.iai.ilcd.service.model.ILCIAMethodListVO,de.fzk.iai.ilcd.service.model.ILCIAMethodVO>
Parameters:
params - lsearch parameter
sortCriterium - 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

preCheckAndPersist

protected void preCheckAndPersist(LCIAMethod method)
Link the flow instances in the database with the flow global references of this LCIAMethod

Specified by:
preCheckAndPersist in class DataSetDao<LCIAMethod,de.fzk.iai.ilcd.service.model.ILCIAMethodListVO,de.fzk.iai.ilcd.service.model.ILCIAMethodVO>
Parameters:
method - LCIAMethod
See Also:
DataSetDao.checkAndPersist(DataSet, PersistType, PrintWriter)

getLCIAMethod

@Deprecated
public LCIAMethod getLCIAMethod(java.lang.String uuid,
                                           DataSetVersion version)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByUuidAndVersion(String, DataSetVersion).

Get LCIAMethod by UUID string and version

Parameters:
uuid - the UUID string
version - the version of the method
Returns:
LCIAMethod for the specified UUID string/version, or null if none found

getLCIAMethod

@Deprecated
public LCIAMethod getLCIAMethod(java.lang.String uuid)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases

Get LCIAMethod by UUID string

Parameters:
uuid - the UUID string
Returns:
LCIAMethod for the specified UUID string, or null if none found

getLCIAMethods

@Deprecated
public java.util.List<LCIAMethod> getLCIAMethods()
Deprecated. still exists for internal backwards compatibility, may be removed in future releases

Get all LCIAMethod instances, delegates to DataSetDao.getAll().

Returns:
all LCIAMethod instances