@Transactional(readOnly=true) public class TypesImpl extends AbstractLevel2Service implements ITypes
Modifier and Type | Field and Description |
---|---|
protected org.hibernate.SessionFactory |
sf |
iQuery, iUpdate, metadata, queryFactory, readOnlyStatus, sec
Constructor and Description |
---|
TypesImpl() |
Modifier and Type | Method and Description |
---|---|
<T extends IEnum> |
allEnumerations(java.lang.Class<T> k) |
<T extends IEnum> |
createEnumeration(T newEnum) |
<T extends IEnum> |
deleteEnumeration(T oEnum)
deletes enumeration value specified by object
|
java.util.List<java.lang.Class<IAnnotated>> |
getAnnotationTypes()
Returns a list of classes which implement
IAnnotated . |
<T extends IObject> |
getContainerTypes() |
<T extends IEnum> |
getEnumeration(java.lang.Class<T> k,
java.lang.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() |
java.lang.Class<? extends ServiceInterface> |
getServiceInterface() |
<T extends IObject> |
permissions(java.lang.Class<T> k) |
<T extends IEnum> |
resetEnumerations(java.lang.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(java.util.List<T> listEnum)
updates enumeration value specified by object
|
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setReadOnlyStatus, setSecuritySystem, setUpdateService
public final void setSessionFactory(org.hibernate.SessionFactory sessions)
sessions
- the session factorypublic final java.lang.Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
@Transactional(readOnly=false) public <T extends IEnum> T createEnumeration(T newEnum)
createEnumeration
in interface ITypes
@Transactional(readOnly=false) 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.@Transactional(readOnly=false) public <T extends IEnum> void updateEnumerations(java.util.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.@Transactional(readOnly=false) 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> java.util.List<T> allEnumerations(java.lang.Class<T> k)
allEnumerations
in interface ITypes
public <T extends IEnum> T getEnumeration(java.lang.Class<T> k, java.lang.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> java.util.List<java.lang.Class<T>> getEnumerationTypes()
ITypes
getEnumerationTypes
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
public <T extends IEnum> java.util.Map<java.lang.Class<T>,java.util.List<T>> getEnumerationsWithEntries()
ITypes
getEnumerationsWithEntries
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
public <T extends IEnum> java.util.List<T> getOriginalEnumerations()
ITypes
getOriginalEnumerations
in interface ITypes
T
- The type of the enumeration. Must extend IEnum
@Transactional(readOnly=false) public <T extends IEnum> void resetEnumerations(java.lang.Class<T> klass)
resetEnumerations
in interface ITypes
public java.util.List<java.lang.Class<IAnnotated>> getAnnotationTypes()
ITypes
IAnnotated
. These can
be used in combination with Search
.getAnnotationTypes
in interface ITypes
List
of IAnnotated
implementationspublic <T extends IObject> java.util.List<java.lang.Class<T>> getResultTypes()
public <T extends IObject> java.util.List<java.lang.Class<T>> getContainerTypes()
public <T extends IObject> java.util.List<java.lang.Class<T>> getPojoTypes()
public <T extends IObject> java.util.List<java.lang.Class<T>> getImportTypes()
public <T extends IObject> Permissions permissions(java.lang.Class<T> k)
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.