public interface Querier
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) |
<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.
|
void close()
Class<? extends Persistable> getBaseType(Persistable p)
p
- <E extends Persistable> Class<E> getClass(E p)
Integer getIdFromProperty(Class<? extends Persistable> clazz, String property, String value)
<E extends Persistable> E getObject(Class<E> aClass, Integer id) throws PersistenceException
aClass
- the class of the objectid
- the ID of the objectPersistenceException
String getPropertyFromId(Class<? extends Persistable> clazz, String property, Integer id)
void postInit()
preInit(java.util.Properties)
void preInit(Properties properties)
properties
- postInit()
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.