Constructor and Description |
---|
FailingQuerier() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Class<? extends Persistable> |
getBaseType(Persistable p)
If the querier implementation uses an instrumented class for representing a persistable type, then the
non-instrumented class of the object must be returned by this method.
|
<E extends Persistable> |
getClass(E p)
Returns the class object of a persistable.
|
Integer |
getIdFromProperty(Class<? extends Persistable> clazz,
String property,
String value) |
static FailingQuerier |
getInstance()
Gets the instance of the place holder querier.
|
<E extends Persistable> |
getObject(Class<E> aClass,
Integer id)
Returns the instance of the given class uniquely determined by its ID.
|
String |
getPropertyFromId(Class<? extends Persistable> clazz,
String property,
Integer id) |
void |
postInit()
Called during initialization of the system.
|
void |
preInit(Properties properties)
Called during initialization of the system.
|
public Class<? extends Persistable> getBaseType(Persistable p)
Querier
getBaseType
in interface Querier
public <E extends Persistable> Class<E> getClass(E p)
Querier
public Integer getIdFromProperty(Class<? extends Persistable> clazz, String property, String value)
getIdFromProperty
in interface Querier
public static FailingQuerier getInstance()
public <E extends Persistable> E getObject(Class<E> aClass, Integer id) throws NoSuchObjectException
Querier
getObject
in interface Querier
aClass
- the class of the objectid
- the ID of the objectNoSuchObjectException
public String getPropertyFromId(Class<? extends Persistable> clazz, String property, Integer id)
getPropertyFromId
in interface Querier
public void postInit()
Querier
postInit
in interface Querier
Querier.preInit(java.util.Properties)
public void preInit(Properties properties)
Querier
preInit
in interface Querier
Querier.postInit()
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.