@groovy.transform.CompileStatic abstract class AbstractRxDatastoreClient<T> extends java.lang.Object implements RxDatastoreClient<T>, RxDatastoreClientImplementor<T>, org.springframework.context.MessageSourceAware
Abstract implementation the RxDatastoreClient interface
Modifiers | Name | Description |
---|---|---|
private ConnectionSources<T, ? extends ConnectionSourceSettings> |
connectionSources |
|
private java.util.Map<java.lang.String, RxDatastoreClient<T>> |
datastoreClients |
|
private ConfigurableApplicationEventPublisher |
eventPublisher |
|
protected MappingContext |
mappingContext |
|
private MultiTenancyMode |
multiTenancyMode |
|
private ProxyFactory |
proxyFactory |
|
private TenantResolver |
tenantResolver |
Type | Name and description |
---|---|
ConnectionSources<T, ? extends ConnectionSourceSettings> |
connectionSources |
java.util.Map<java.lang.String, RxDatastoreClient<T>> |
datastoreClients |
ConfigurableApplicationEventPublisher |
eventPublisher |
ConfigurableApplicationEventPublisher |
eventPublisher |
MultiTenancyMode |
multiTenancyMode |
ProxyFactory |
proxyFactory |
TenantResolver |
tenantResolver |
Constructor and description |
---|
AbstractRxDatastoreClient
(ConnectionSources<T, ConnectionSourceSettings> connectionSources, MappingContext mappingContext) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
activeDirtyChecking(java.lang.Object object) |
|
abstract rx.Observable<java.lang.Number> |
batchDelete(BatchOperation operation) Executes a batch delete operation |
|
abstract rx.Observable<java.lang.Number> |
batchWrite(BatchOperation operation) Executes a batch write operation |
|
final void |
close() |
|
Query |
createEntityQuery(PersistentEntity entity, QueryState queryState) Creates a query for the given entity |
|
abstract Query |
createEntityQuery(PersistentEntity entity, QueryState queryState, java.util.Map arguments) Creates a query for the given entity |
|
final RxGormInstanceApi |
createInstanceApi(PersistentEntity entity) |
|
RxGormInstanceApi |
createInstanceApi(PersistentEntity entity, java.lang.String connectionSourceName) |
|
final Query |
createQuery(java.lang.Class type, QueryState queryState) |
|
final Query |
createQuery(java.lang.Class type, QueryState queryState, java.util.Map arguments) |
|
final Query |
createQuery(java.lang.Class type, java.util.Map arguments) |
|
final Query |
createQuery(java.lang.Class type) |
|
final RxGormStaticApi |
createStaticApi(PersistentEntity entity) |
|
RxGormStaticApi |
createStaticApi(PersistentEntity entity, java.lang.String connectionSourceName) |
|
final RxGormValidationApi |
createValidationApi(PersistentEntity entity) |
|
RxGormValidationApi |
createValidationApi(PersistentEntity entity, java.lang.String connectionSourceName) |
|
protected ValidatorRegistry |
createValidatorRegistry(org.springframework.context.MessageSource messageSource) |
|
final rx.Observable<java.lang.Boolean> |
delete(java.lang.Object instance) |
|
rx.Observable<java.lang.Boolean> |
delete(java.lang.Object instance, java.util.Map<java.lang.String, java.lang.Object> arguments) |
|
rx.Observable<java.lang.Number> |
deleteAll(java.lang.Iterable instances) |
|
rx.Observable<java.lang.Number> |
deleteAll(java.lang.Iterable instances, java.util.Map<java.lang.String, java.lang.Object> arguments) |
|
abstract void |
doClose() Close the client |
|
abstract java.io.Serializable |
generateIdentifier(PersistentEntity entity, java.lang.Object instance, EntityReflector reflector) Generates an identifier for the given entity and instance |
<T> |
rx.Observable |
get(java.lang.Class<T> type, java.io.Serializable id, QueryState queryState) |
<T1> |
final rx.Observable<T1> |
get(java.lang.Class<T1> type, java.io.Serializable id) Retrieve and instance of the given type and id |
|
RxDatastoreClient |
getDatastoreClient(java.lang.String connectionSourceName) |
|
RxDatastoreClient |
getDatastoreClientForTenantId(java.io.Serializable tenantId) |
|
ConfigurableApplicationEventPublisher |
getEventPublisher() |
|
MappingContext |
getMappingContext() |
|
MultiTenancyMode |
getMultiTenancyMode() |
|
TenantResolver |
getTenantResolver() |
|
protected void |
initDefaultEventListeners(ConfigurableApplicationEventPublisher configurableApplicationEventPublisher) |
<T1> |
final rx.Observable<T1> |
insert(T1 instance, java.util.Map<java.lang.String, java.lang.Object> arguments) |
|
rx.Observable<java.util.List<java.io.Serializable>> |
insertAll(java.lang.Iterable instances) |
|
rx.Observable<java.util.List<java.io.Serializable>> |
insertAll(java.lang.Iterable instances, java.util.Map<java.lang.String, java.lang.Object> arguments) |
|
protected boolean |
isIndexed(PersistentProperty property) |
|
boolean |
isSchemaless() |
<T1> |
final rx.Observable<T1> |
persist(T1 instance, java.util.Map<java.lang.String, java.lang.Object> arguments) Persist an instance |
<T1> |
final rx.Observable<T1> |
persist(T1 instance) |
|
rx.Observable<java.util.List<java.io.Serializable>> |
persistAll(java.lang.Iterable instances) |
|
rx.Observable<java.util.List<java.io.Serializable>> |
persistAll(java.lang.Iterable instances, java.util.Map<java.lang.String, java.lang.Object> arguments) |
|
protected rx.Observable<java.util.List<java.io.Serializable>> |
persistAllInternal(java.lang.Iterable instances, boolean isInsert, java.util.Map<java.lang.String, java.lang.Object> arguments) |
|
void |
processAssociations(PersistentEntity entity, java.io.Serializable id, java.lang.Object instance, EntityReflector entityReflector, BatchOperation operation, java.util.List<org.springframework.context.ApplicationEvent> postEvents) |
<T1> |
ObservableProxy<T1> |
proxy(java.lang.Class<T1> type, java.io.Serializable id, QueryState queryState) |
|
ObservableProxy |
proxy(Query query, QueryState queryState) |
|
protected void |
scheduleInsert(PersistentEntity associatedEntity, DirtyCheckable associatedObject, EntityReflector associationReflector, EntityAccess associationAccess, BatchOperation operation, java.util.List<org.springframework.context.ApplicationEvent> postEvents) |
|
protected void |
scheduleInsertOrUpdate(PersistentEntity associatedEntity, DirtyCheckable associatedObject, BatchOperation operation, java.util.List<org.springframework.context.ApplicationEvent> postEvents) |
|
protected void |
scheduleUpdate(PersistentEntity associatedEntity, EntityAccess associationAccess, java.io.Serializable associatedId, DirtyCheckable associatedObject, EntityReflector associationReflector, BatchOperation operation, java.util.List<org.springframework.context.ApplicationEvent> postEvents) |
|
void |
setEventPublisher(ConfigurableApplicationEventPublisher eventPublisher) |
|
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
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() |
Executes a batch delete operation
operation
- The batch operationExecutes a batch write operation
operation
- The batch operationCreates a query for the given entity
entity
- The entityCreates a query for the given entity
entity
- The entityClose the client
Generates an identifier for the given entity and instance
Retrieve and instance of the given type and id
type
- The typeid
- The idPersist an instance
instance
- The instanceGroovy Documentation