@groovy.transform.CompileStatic @groovy.util.logging.Slf4j class RxGormEnhancer extends java.lang.Object
Enhances RxEntity instances with behaviour necessary at runtime
Modifiers | Name | Description |
---|---|---|
private static java.util.Map<java.lang.Class<? extends RxDatastoreClient>, RxDatastoreClient> |
DATASTORE_CLIENTS |
|
private static java.util.Map<java.lang.String, java.util.Map<java.lang.String, RxGormInstanceApi>> |
INSTANCE_APIS |
|
private static java.util.Map<java.lang.String, java.util.Map<java.lang.String, RxGormStaticApi>> |
STATIC_APIS |
|
private static java.util.Map<java.lang.String, java.util.Map<java.lang.String, RxGormValidationApi>> |
VALIDATION_APIS |
Constructor and description |
---|
private RxGormEnhancer
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
close() |
|
static RxDatastoreClient |
findDatastoreClientByType(java.lang.Class<? extends RxDatastoreClient> datastoreType) Finds a datastore by type |
<T> |
static RxGormInstanceApi<T> |
findInstanceApi(java.lang.Class<T> type, java.lang.String qualifier) Find the instance API for the given type |
|
static RxDatastoreClient |
findSingleDatastoreClient() Finds a single datastore |
<T> |
static RxGormStaticApi<T> |
findStaticApi(java.lang.Class<T> type, java.lang.String qualifier) Find the static API for the given type |
<T> |
static java.lang.String |
findTenantId(java.lang.Class<T> entity) Find the tenant id for the given entity |
<T> |
static RxGormValidationApi<T> |
findValidationApi(java.lang.Class<T> type, java.lang.String qualifier) Find the validation API for the given type |
|
static void |
registerEntity(PersistentEntity entity, RxDatastoreClient client) Registers a new entity with the RxGormEnhancer |
|
protected static void |
registerEntityWithConnectionSource(PersistentEntity entity, java.lang.String qualifierName, java.lang.String connectionSourceName, RxDatastoreClientImplementor rxDatastoreClientImplementor) |
|
private static java.lang.IllegalStateException |
stateException(java.lang.Class entity) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Finds a datastore by type
datastoreType
- The datastore typeFind the instance API for the given type
type
- The typequalifier
- The qualifierFinds a single datastore
Find the static API for the given type
type
- The typequalifier
- The qualifierFind the tenant id for the given entity @return
Find the validation API for the given type
type
- The typequalifier
- The qualifierRegisters a new entity with the RxGormEnhancer
entity
- The entityclient
- The clienttenantResolver
- The tenant resolver