org.rhq.enterprise.server.test
Class AccessBean

java.lang.Object
  extended by org.rhq.enterprise.server.test.AccessBean
All Implemented Interfaces:
AccessLocal

public class AccessBean
extends Object
implements AccessLocal

Author:
Greg Hinkle

Nested Class Summary
static class AccessBean.BigIntegerEditor
           
 
Field Summary
static int MAX_RESULTS
           
 
Constructor Summary
AccessBean()
          Creates a new instance of AccessBean
 
Method Summary
 void delete(String entityName, String key)
           
 Object find(Class type, Object key)
           
 Object findDeep(String typeName, Object key)
           
 List getAll(String type)
           
 List getAllDeep(String type)
           
 List getAllFetching(String type, String... properties)
           
 Object getConvertedKey(Class type, Object key)
           
 Class getKeyType(Class type)
           
 List<String> getKnownTypes()
           
 javax.persistence.EntityManager getManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_RESULTS

public static final int MAX_RESULTS
See Also:
Constant Field Values
Constructor Detail

AccessBean

public AccessBean()
Creates a new instance of AccessBean

Method Detail

getKnownTypes

public List<String> getKnownTypes()
Specified by:
getKnownTypes in interface AccessLocal

getAll

public List getAll(String type)
Specified by:
getAll in interface AccessLocal

getManager

public javax.persistence.EntityManager getManager()

getAllDeep

public List getAllDeep(String type)
                throws IntrospectionException,
                       IllegalAccessException,
                       InvocationTargetException
Specified by:
getAllDeep in interface AccessLocal
Throws:
IntrospectionException
IllegalAccessException
InvocationTargetException

getAllFetching

public List getAllFetching(String type,
                           String... properties)
                    throws IntrospectionException,
                           IllegalAccessException,
                           InvocationTargetException
Specified by:
getAllFetching in interface AccessLocal
Throws:
IntrospectionException
IllegalAccessException
InvocationTargetException

findDeep

public Object findDeep(String typeName,
                       Object key)
                throws IllegalAccessException,
                       IntrospectionException,
                       InvocationTargetException,
                       ClassNotFoundException
Specified by:
findDeep in interface AccessLocal
Throws:
IllegalAccessException
IntrospectionException
InvocationTargetException
ClassNotFoundException

delete

public void delete(String entityName,
                   String key)
Specified by:
delete in interface AccessLocal

getConvertedKey

public Object getConvertedKey(Class type,
                              Object key)

getKeyType

public Class getKeyType(Class type)

find

public Object find(Class type,
                   Object key)
Specified by:
find in interface AccessLocal


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.