public class ObjectMaterializeLifeCycle extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AFTER_NATIVE_QUERY_PREFIX |
static String |
BEFORE_NATIVE_QUERY_PREFIX |
| Constructor and Description |
|---|
ObjectMaterializeLifeCycle(ObjectConnection connection,
CacheNameProxy proxy) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterMaterialiationOnCache()
Call after the actual materialization is performed as the afterLoad lifecycle step.
|
protected void |
beforeMaterialiationOnCache()
Called before the actual materialization of the data is performed.
|
void |
cleanup()
Called at the end of this specific materialization processing
|
CacheNameProxy |
getCacheNameProxy() |
protected ObjectConnection |
getConnection() |
boolean |
isAfter(String nativeQuery)
Returns the boolean true if the native query is to be performed in the afterLoad lifecycle step.
|
boolean |
isBefore(String nativeQuery)
Returns the boolean true if the native query is to be performed in the beforeLoad lifecycle step.
|
void |
performLifeCycleStep(String nativeQuery) |
public static String BEFORE_NATIVE_QUERY_PREFIX
public static String AFTER_NATIVE_QUERY_PREFIX
public ObjectMaterializeLifeCycle(ObjectConnection connection, CacheNameProxy proxy)
protected ObjectConnection getConnection()
public CacheNameProxy getCacheNameProxy()
public void performLifeCycleStep(String nativeQuery) throws TranslatorException
TranslatorExceptionprotected void beforeMaterialiationOnCache()
throws TranslatorException
TranslatorException - if the staging cache cannot be determined or is not availablepublic boolean isBefore(String nativeQuery)
nativeQuery - public void afterMaterialiationOnCache()
throws TranslatorException
TranslatorExceptionpublic boolean isAfter(String nativeQuery)
nativeQuery - public void cleanup()
Copyright © 2016 JBoss by Red Hat. All rights reserved.