|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.iai.ilcd.model.dao.DataSetDao<Source,de.fzk.iai.ilcd.service.model.ISourceListVO,de.fzk.iai.ilcd.service.model.ISourceVO>
de.iai.ilcd.model.dao.SourceDao
public class SourceDao
Data access object for sources
Constructor Summary | |
---|---|
SourceDao()
|
Method Summary | |
---|---|
boolean |
checkAndPersist(Source dataSet,
PersistType pType,
java.io.PrintWriter out)
Concrete implementation required for saving of digital files |
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. |
long |
getNumberOfSources(java.lang.String mainClass)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String) . |
long |
getNumberOfSources(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) . |
Source |
getSource(long datasetId)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(long) . |
Source |
getSource(java.lang.String uuid)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByUuid(String) . |
Source |
getSourceById(java.lang.Long id)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(long) . |
Source |
getSourceById(java.lang.String id)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByDataSetId(String) . |
java.util.List<Source> |
getSources()
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getAll() . |
java.util.List<Source> |
getSourcesByClass(java.lang.String mainClass)
Deprecated. still exists for internal backwards compatibility, may be removed in future releases. Use DataSetDao.getByClass(String) . |
java.util.List<Source> |
getSourcesByClass(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(Source dataSet)
Invoked at beginning of DataSetDao.checkAndPersist(DataSet, PersistType, PrintWriter) to manipulate data prior to
persisting |
void |
remove(DataSet dataSet)
Remove a given data set from the database |
Methods inherited from class de.iai.ilcd.model.dao.DataSetDao |
---|
buildClassificationJoin, buildClassificationJoin, buildClassificationWhere, buildClassificationWhere, getAccessedClass, getAll, getAllCount, getByClass, getByClass, getByDataSetId, getByDataSetId, getByUuid, getByUuidAndVersion, getDataSets, getForeignDataSet, getJpaName, getNumberByClass, getNumberByClass, getOtherVersions, getSubClasses, getTopClasses, lsearch, lsearch, lsearch, merge, 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 |
---|
public SourceDao()
Method Detail |
---|
protected void preCheckAndPersist(Source dataSet)
DataSetDao
DataSetDao.checkAndPersist(DataSet, PersistType, PrintWriter)
to manipulate data prior to
persisting
preCheckAndPersist
in class DataSetDao<Source,de.fzk.iai.ilcd.service.model.ISourceListVO,de.fzk.iai.ilcd.service.model.ISourceVO>
dataSet
- data set to manipulateDataSetDao.checkAndPersist(DataSet, PersistType, PrintWriter)
public boolean checkAndPersist(Source dataSet, PersistType pType, java.io.PrintWriter out)
checkAndPersist
in class DataSetDao<Source,de.fzk.iai.ilcd.service.model.ISourceListVO,de.fzk.iai.ilcd.service.model.ISourceVO>
dataSet
- data set to persistpType
- which type of persistence operation, new, update (i.e. overwrite existing data set), ...out
- PrintWriter to log error messages which can be presented to the end user
DataSetDao.preCheckAndPersist(DataSet)
public void remove(DataSet dataSet) throws DeleteDataSetException
DataSetDao
remove
in class DataSetDao<Source,de.fzk.iai.ilcd.service.model.ISourceListVO,de.fzk.iai.ilcd.service.model.ISourceVO>
dataSet
- data set to be removed
DeleteDataSetException
protected javax.persistence.Query createQueryObject(org.apache.velocity.tools.generic.ValueParser params, java.lang.String sortString, boolean ascending, boolean returnCount, boolean mostRecentVersionOnly)
DataSetDao
createQueryObject
in class DataSetDao<Source,de.fzk.iai.ilcd.service.model.ISourceListVO,de.fzk.iai.ilcd.service.model.ISourceVO>
params
- lsearch parametersortString
- field of result object which will be used for ordering of lsearch resultsascending
- true
for ascending ordering, false
for descendingreturnCount
- if true return count of lsearch result instead of lsearch resultsmostRecentVersionOnly
- flag to indicate if only the most recent version of a data set shall be returned if multiple versions
exist
@Deprecated public java.util.List<Source> getSources()
DataSetDao.getAll()
.
DataSetDao.getAll()
@Deprecated public Source getSource(java.lang.String uuid)
DataSetDao.getByUuid(String)
.
uuid
- UUID of flow to get
DataSetDao.getByUuid(String)
@Deprecated public Source getSource(long datasetId)
DataSetDao.getByDataSetId(long)
.
datasetId
- JPA id
DataSetDao.getByDataSetId(long)
public Source getSourceById(java.lang.String id)
DataSetDao.getByDataSetId(String)
.
id
- JPA id as string
DataSetDao.getByDataSetId(String)
public Source getSourceById(java.lang.Long id)
DataSetDao.getByDataSetId(long)
.
id
- JPA id
DataSetDao.getByDataSetId(long)
@Deprecated public java.util.List<Source> getSourcesByClass(java.lang.String mainClass)
DataSetDao.getByClass(String)
.
mainClass
- main class to get source by
DataSetDao.getByClass(String)
@Deprecated public long getNumberOfSources(java.lang.String mainClass)
DataSetDao.getByClass(String)
.
mainClass
- main class to get source by
DataSetDao.getNumberByClass(String)
@Deprecated public java.util.List<Source> getSourcesByClass(java.lang.String mainClass, java.lang.String subClass)
DataSetDao.getByClass(String,String)
.
mainClass
- main class to get source bysubClass
- sub class to get source by
DataSetDao.getByClass(String,String)
@Deprecated public long getNumberOfSources(java.lang.String mainClass, java.lang.String subClass)
DataSetDao.getByClass(String,String)
.
mainClass
- main class to get source bysubClass
- sub class to get source by
DataSetDao.getNumberByClass(String,String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |