ome.logic
Class TypesImpl

java.lang.Object
  extended by ome.logic.AbstractLevel2Service
      extended by ome.logic.TypesImpl
All Implemented Interfaces:
ITypes, ServiceInterface, SelfConfigurableService

@Transactional
public class TypesImpl
extends AbstractLevel2Service
implements ITypes

implementation of the ITypes service interface.

Since:
OMERO 3.0
Version:
1.0 (Internal version: $Rev: 4940 $ $Date: 2008-01-04 14:17:02 +0000 (Fri, 04 Jan 2008) $)
Author:
Josh Moore, josh.moore@gmx.de

Field Summary
protected  org.hibernate.SessionFactory sf
           
 
Fields inherited from class ome.logic.AbstractLevel2Service
iQuery, iUpdate, metadata, queryFactory, sec
 
Constructor Summary
TypesImpl()
           
 
Method Summary
<T extends ome.model.IEnum>
List<T>
allEnumerations(Class<T> k)
           
<T extends ome.model.IEnum>
T
createEnumeration(T newEnum)
           
<T extends ome.model.IEnum>
void
deleteEnumeration(T oEnum)
          deletes enumeration value specified by object
 List<Class<ome.model.IAnnotated>> getAnnotationTypes()
          Returns a list of classes which implement IAnnotated.
<T extends ome.model.IObject>
List<Class<T>>
getContainerTypes()
           
<T extends ome.model.IEnum>
T
getEnumeration(Class<T> k, String string)
          lookup an enumeration value.
<T extends ome.model.IEnum>
Map<Class<T>,List<T>>
getEnumerationsWithEntries()
          Gets all metadata classes which are IEnum type with contained objects.
<T extends ome.model.IEnum>
List<Class<T>>
getEnumerationTypes()
          Gets all metadata classes which are IEnum type.
<T extends ome.model.IObject>
List<Class<T>>
getImportTypes()
           
<T extends ome.model.IEnum>
List<T>
getOriginalEnumerations()
          Gets all original values.
<T extends ome.model.IObject>
List<Class<T>>
getPojoTypes()
           
<T extends ome.model.IObject>
List<Class<T>>
getResultTypes()
           
 Class<? extends ServiceInterface> getServiceInterface()
           
<T extends ome.model.IObject>
ome.model.internal.Permissions
permissions(Class<T> k)
           
<T extends ome.model.IEnum>
void
resetEnumerations(Class<T> klass)
           
 void setSessionFactory(org.hibernate.SessionFactory sessions)
          injector for usage by the container.
<T extends ome.model.IEnum>
T
updateEnumeration(T oEnum)
          updates enumeration value specified by object
<T extends ome.model.IEnum>
void
updateEnumerations(List<T> listEnum)
          updates enumeration value specified by object
 
Methods inherited from class ome.logic.AbstractLevel2Service
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sf

protected transient org.hibernate.SessionFactory sf
Constructor Detail

TypesImpl

public TypesImpl()
Method Detail

setSessionFactory

public final void setSessionFactory(org.hibernate.SessionFactory sessions)
injector for usage by the container. Not for general use


getServiceInterface

public final Class<? extends ServiceInterface> getServiceInterface()
Specified by:
getServiceInterface in interface SelfConfigurableService

createEnumeration

public <T extends ome.model.IEnum> T createEnumeration(T newEnum)
Specified by:
createEnumeration in interface ITypes

updateEnumeration

public <T extends ome.model.IEnum> T updateEnumeration(T oEnum)
Description copied from interface: ITypes
updates enumeration value specified by object

Specified by:
updateEnumeration in interface ITypes
Type Parameters:
T - The type of the enumeration. Must extend IEnum
Parameters:
oEnum - An enumeration object which should be searched.
Returns:
A managed enumeration. Never null.

updateEnumerations

public <T extends ome.model.IEnum> void updateEnumerations(List<T> listEnum)
Description copied from interface: ITypes
updates enumeration value specified by object

Specified by:
updateEnumerations in interface ITypes
Type Parameters:
T - The type of the enumeration. Must extend IEnum
Parameters:
listEnum - An enumeration collection of objects which should be searched.

deleteEnumeration

public <T extends ome.model.IEnum> void deleteEnumeration(T oEnum)
Description copied from interface: ITypes
deletes enumeration value specified by object

Specified by:
deleteEnumeration in interface ITypes
Type Parameters:
T - The type of the enumeration. Must extend IEnum
Parameters:
oEnum - An enumeration object which should be searched.

allEnumerations

public <T extends ome.model.IEnum> List<T> allEnumerations(Class<T> k)
Specified by:
allEnumerations in interface ITypes

getEnumeration

public <T extends ome.model.IEnum> T getEnumeration(Class<T> k,
                                                    String string)
Description copied from interface: ITypes
lookup an enumeration value. As with the get-methods of IQuery queries returning no results will through an exception.

Specified by:
getEnumeration in interface ITypes
Type Parameters:
T - The type of the enumeration. Must extend IEnum
Parameters:
k - An enumeration class which should be searched.
string - The value for which an enumeration should be found.
Returns:
A managed enumeration. Never null.

getEnumerationTypes

public <T extends ome.model.IEnum> List<Class<T>> getEnumerationTypes()
Description copied from interface: ITypes
Gets all metadata classes which are IEnum type.

Specified by:
getEnumerationTypes in interface ITypes
Type Parameters:
T - The type of the enumeration. Must extend IEnum
Returns:
list of Class of T extends IEnum

getEnumerationsWithEntries

public <T extends ome.model.IEnum> Map<Class<T>,List<T>> getEnumerationsWithEntries()
Description copied from interface: ITypes
Gets all metadata classes which are IEnum type with contained objects.

Specified by:
getEnumerationsWithEntries in interface ITypes
Type Parameters:
T - The type of the enumeration. Must extend IEnum
Returns:
list of Class of T extends IEnum

getOriginalEnumerations

public <T extends ome.model.IEnum> List<T> getOriginalEnumerations()
Description copied from interface: ITypes
Gets all original values.

Specified by:
getOriginalEnumerations in interface ITypes
Type Parameters:
T - The type of the enumeration. Must extend IEnum
Returns:
A list of managed enumerations.

resetEnumerations

public <T extends ome.model.IEnum> void resetEnumerations(Class<T> klass)
Specified by:
resetEnumerations in interface ITypes

getAnnotationTypes

public List<Class<ome.model.IAnnotated>> getAnnotationTypes()
Description copied from interface: ITypes
Returns a list of classes which implement IAnnotated. These can be used in combination with Search.

Specified by:
getAnnotationTypes in interface ITypes
Returns:

getResultTypes

public <T extends ome.model.IObject> List<Class<T>> getResultTypes()

getContainerTypes

public <T extends ome.model.IObject> List<Class<T>> getContainerTypes()

getPojoTypes

public <T extends ome.model.IObject> List<Class<T>> getPojoTypes()

getImportTypes

public <T extends ome.model.IObject> List<Class<T>> getImportTypes()

permissions

public <T extends ome.model.IObject> ome.model.internal.Permissions permissions(Class<T> k)


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.