org.rhq.enterprise.server.test
Class AccessBean
java.lang.Object
org.rhq.enterprise.server.test.AccessBean
- All Implemented Interfaces:
- AccessLocal
public class AccessBean
- extends java.lang.Object
- implements AccessLocal
- Author:
- Greg Hinkle
|
Constructor Summary |
AccessBean()
Creates a new instance of AccessBean |
|
Method Summary |
void |
delete(java.lang.String entityName,
java.lang.String key)
|
java.lang.Object |
find(java.lang.Class type,
java.lang.Object key)
|
java.lang.Object |
findDeep(java.lang.String typeName,
java.lang.Object key)
|
java.util.List |
getAll(java.lang.String type)
|
java.util.List |
getAllDeep(java.lang.String type)
|
java.util.List |
getAllFetching(java.lang.String type,
java.lang.String... properties)
|
java.lang.Object |
getConvertedKey(java.lang.Class type,
java.lang.Object key)
|
java.lang.Class |
getKeyType(java.lang.Class type)
|
java.util.List<java.lang.String> |
getKnownTypes()
|
javax.persistence.EntityManager |
getManager()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_RESULTS
public static final int MAX_RESULTS
- See Also:
- Constant Field Values
AccessBean
public AccessBean()
- Creates a new instance of AccessBean
getKnownTypes
public java.util.List<java.lang.String> getKnownTypes()
- Specified by:
getKnownTypes in interface AccessLocal
getAll
public java.util.List getAll(java.lang.String type)
- Specified by:
getAll in interface AccessLocal
getManager
public javax.persistence.EntityManager getManager()
getAllDeep
public java.util.List getAllDeep(java.lang.String type)
throws java.beans.IntrospectionException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Specified by:
getAllDeep in interface AccessLocal
- Throws:
java.beans.IntrospectionException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
getAllFetching
public java.util.List getAllFetching(java.lang.String type,
java.lang.String... properties)
throws java.beans.IntrospectionException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Specified by:
getAllFetching in interface AccessLocal
- Throws:
java.beans.IntrospectionException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
findDeep
public java.lang.Object findDeep(java.lang.String typeName,
java.lang.Object key)
throws java.lang.IllegalAccessException,
java.beans.IntrospectionException,
java.lang.reflect.InvocationTargetException,
java.lang.ClassNotFoundException
- Specified by:
findDeep in interface AccessLocal
- Throws:
java.lang.IllegalAccessException
java.beans.IntrospectionException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
delete
public void delete(java.lang.String entityName,
java.lang.String key)
- Specified by:
delete in interface AccessLocal
getConvertedKey
public java.lang.Object getConvertedKey(java.lang.Class type,
java.lang.Object key)
getKeyType
public java.lang.Class getKeyType(java.lang.Class type)
find
public java.lang.Object find(java.lang.Class type,
java.lang.Object key)
- Specified by:
find in interface AccessLocal
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.