Interface QuantitationTypeService
-
- All Superinterfaces:
BaseImmutableService<QuantitationType>
,BaseReadOnlyService<QuantitationType>
,BaseService<QuantitationType>
,BaseVoEnabledService<QuantitationType,QuantitationTypeValueObject>
,FilteringService<QuantitationType>
,FilteringVoEnabledService<QuantitationType,QuantitationTypeValueObject>
- All Known Implementing Classes:
QuantitationTypeServiceImpl
public interface QuantitationTypeService extends BaseService<QuantitationType>, FilteringVoEnabledService<QuantitationType,QuantitationTypeValueObject>
- Author:
- kelsey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QuantitationType
create(QuantitationType quantitationType)
Creates the given entity in the persistent storage.boolean
existsByExpressionExperimentAndVectorType(QuantitationType quantitationType, ExpressionExperiment ee, Class<? extends DesignElementDataVector> dataVectorType)
Find a quantitation type by ID and vector type.QuantitationType
find(ExpressionExperiment ee, QuantitationType quantitationType)
Locate a QT associated with the given ee matching the specification of the passed quantitationType, or null if there isn't one.QuantitationType
findOrCreate(QuantitationType quantitationType)
Does a search for the entity in the persistent storage, and if not found, creates it.List<QuantitationType>
loadByDescription(String description)
List<QuantitationTypeValueObject>
loadValueObjectsWithExpressionExperiment(Collection<QuantitationType> qts, ExpressionExperiment expressionExperiment)
void
remove(Long id)
Removes the entity with given ID from the persistent storage.void
remove(Collection<QuantitationType> entities)
Removes all the given entities from persistent storage.void
remove(QuantitationType quantitationType)
Removes the given entity from the persistent storage.void
update(Collection<QuantitationType> entities)
Updates all entities in the given collection in the persistent storage.void
update(QuantitationType quantitationType)
Updates the given entity in the persistent storage.-
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save
-
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Methods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadIds
-
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledService
loadValueObjects, loadValueObjects
-
-
-
-
Method Detail
-
find
@Secured("GROUP_USER") QuantitationType find(ExpressionExperiment ee, QuantitationType quantitationType)
Locate a QT associated with the given ee matching the specification of the passed quantitationType, or null if there isn't one.- Returns:
- found QT
-
existsByExpressionExperimentAndVectorType
boolean existsByExpressionExperimentAndVectorType(QuantitationType quantitationType, ExpressionExperiment ee, Class<? extends DesignElementDataVector> dataVectorType)
Find a quantitation type by ID and vector type.While the QT can be retrieved uniquely by ID, the purpose of this method is to ensure that it also belongs to a given expression experiment and data vector type.
-
findOrCreate
@Secured("GROUP_USER") QuantitationType findOrCreate(QuantitationType quantitationType)
Description copied from interface:BaseImmutableService
Does a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreate
in interfaceBaseImmutableService<QuantitationType>
- Parameters:
quantitationType
- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
@Secured("GROUP_USER") QuantitationType create(QuantitationType quantitationType)
Description copied from interface:BaseImmutableService
Creates the given entity in the persistent storage.- Specified by:
create
in interfaceBaseImmutableService<QuantitationType>
- Parameters:
quantitationType
- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
remove
@Secured("GROUP_USER") void remove(Collection<QuantitationType> entities)
Description copied from interface:BaseImmutableService
Removes all the given entities from persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<QuantitationType>
- Parameters:
entities
- the entities to be removed.
-
remove
@Secured("GROUP_ADMIN") void remove(Long id)
Description copied from interface:BaseImmutableService
Removes the entity with given ID from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<QuantitationType>
- Parameters:
id
- the ID of entity to be removed.
-
remove
@Secured("GROUP_USER") void remove(QuantitationType quantitationType)
Description copied from interface:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<QuantitationType>
- Parameters:
quantitationType
- the entity to be removed.
-
update
@Secured("GROUP_USER") void update(Collection<QuantitationType> entities)
Description copied from interface:BaseService
Updates all entities in the given collection in the persistent storage.- Specified by:
update
in interfaceBaseService<QuantitationType>
- Parameters:
entities
- the entities to be updated.
-
update
@Secured("GROUP_USER") void update(QuantitationType quantitationType)
Description copied from interface:BaseService
Updates the given entity in the persistent storage.- Specified by:
update
in interfaceBaseService<QuantitationType>
- Parameters:
quantitationType
- the entity to be updated.
-
loadByDescription
@Secured("GROUP_USER") List<QuantitationType> loadByDescription(String description)
-
loadValueObjectsWithExpressionExperiment
List<QuantitationTypeValueObject> loadValueObjectsWithExpressionExperiment(Collection<QuantitationType> qts, ExpressionExperiment expressionExperiment)
-
-