@Transactional public class TypesImpl extends AbstractLevel2Service implements ITypes
Modifier and Type | Field and Description |
---|---|
protected org.hibernate.SessionFactory |
sf |
iQuery, iUpdate, metadata, queryFactory, sec
Constructor and Description |
---|
TypesImpl() |
Modifier and Type | Method and Description |
---|---|
<T extends IEnum> |
allEnumerations(Class<T> k) |
<T extends IEnum> |
createEnumeration(T newEnum) |
<T extends IEnum> |
deleteEnumeration(T oEnum)
deletes enumeration value specified by object
|
List<Class<IAnnotated>> |
getAnnotationTypes()
Returns a list of classes which implement
IAnnotated . |
<T extends IObject> |
getContainerTypes() |
<T extends IEnum> |
getEnumeration(Class<T> k,
String string)
lookup an enumeration value.
|
<T extends IEnum> |
getEnumerationsWithEntries()
Gets all metadata classes which are IEnum type with contained objects.
|
<T extends IEnum> |
getEnumerationTypes()
Gets all metadata classes which are IEnum type.
|
<T extends IObject> |
getImportTypes() |
<T extends IEnum> |
getOriginalEnumerations()
Gets all original values.
|
<T extends IObject> |
getPojoTypes() |
<T extends IObject> |
getResultTypes() |
Class<? extends ServiceInterface> |
getServiceInterface() |
<T extends IObject> |
permissions(Class<T> k) |
<T extends IEnum> |
resetEnumerations(Class<T> klass) |
void |
setSessionFactory(org.hibernate.SessionFactory sessions)
injector for usage by the container.
|
<T extends IEnum> |
updateEnumeration(T oEnum)
updates enumeration value specified by object
|
<T extends IEnum> |
updateEnumerations(List<T> listEnum)
updates enumeration value specified by object
|
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateService
public final void setSessionFactory(org.hibernate.SessionFactory sessions)
public final Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
public <T extends IEnum> T createEnumeration(T newEnum)
createEnumeration
in interface ITypes
public <T extends IEnum> T updateEnumeration(T oEnum)
ITypes
updateEnumeration
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
oEnum
- An enumeration object which should be searched.public <T extends IEnum> void updateEnumerations(List<T> listEnum)
ITypes
updateEnumerations
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
listEnum
- An enumeration collection of objects which should be searched.public <T extends IEnum> void deleteEnumeration(T oEnum)
ITypes
deleteEnumeration
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
oEnum
- An enumeration object which should be searched.public <T extends IEnum> List<T> allEnumerations(Class<T> k)
allEnumerations
in interface ITypes
public <T extends IEnum> T getEnumeration(Class<T> k, String string)
ITypes
IQuery
queries returning no results will through an exception.getEnumeration
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
k
- An enumeration class which should be searched.string
- The value for which an enumeration should be found.public <T extends IEnum> List<Class<T>> getEnumerationTypes()
ITypes
getEnumerationTypes
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
public <T extends IEnum> Map<Class<T>,List<T>> getEnumerationsWithEntries()
ITypes
getEnumerationsWithEntries
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
public <T extends IEnum> List<T> getOriginalEnumerations()
ITypes
getOriginalEnumerations
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
public <T extends IEnum> void resetEnumerations(Class<T> klass)
resetEnumerations
in interface ITypes
public List<Class<IAnnotated>> getAnnotationTypes()
ITypes
IAnnotated
. These can
be used in combination with Search
.getAnnotationTypes
in interface ITypes
public <T extends IObject> Permissions permissions(Class<T> k)
Version: 5.1.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.