Package org.hibernate.ogm.dialect

Examples of org.hibernate.ogm.dialect.BatchOperationsDelegator


  /**
   * If the current dialect supports batching, register the required event listeners.
   */
  private void attachBatchListenersIfRequired(SessionFactoryServiceRegistry serviceRegistry) {
    GridDialect gridDialect = serviceRegistry.getService( GridDialect.class );
    BatchOperationsDelegator batchDelegator = asBatchDelegatorOrNull( gridDialect );

    if ( batchDelegator != null ) {
      EventListenerRegistry eventListenerRegistry = serviceRegistry.getService( EventListenerRegistry.class );
      addListeners( eventListenerRegistry, batchDelegator );
    }
View Full Code Here


          ( (ServiceRegistryAwareService) gridDialect ).injectServices( registry );
        }

        if ( gridDialect instanceof BatchableGridDialect ) {
          BatchableGridDialect batchable = (BatchableGridDialect) gridDialect;
          gridDialect = supportsQueries ? new QueryableBatchOperationsDelegator( batchable ) : new BatchOperationsDelegator( batchable );
        }

        log.useGridDialect( gridDialect.getClass().getName() );
        if ( GridDialectLogger.activationNeeded() ) {
          gridDialect = supportsQueries ? new QueryableGridDialectLogger( (QueryableGridDialect) gridDialect ) : new GridDialectLogger( gridDialect );
View Full Code Here

        if ( gridDialect instanceof ServiceRegistryAwareService ) {
          ( (ServiceRegistryAwareService) gridDialect ).injectServices( registry );
        }

        if ( gridDialect instanceof BatchableGridDialect ) {
          BatchOperationsDelegator delegator = new BatchOperationsDelegator( (BatchableGridDialect) gridDialect );
          gridDialect = delegator;
        }

        log.useGridDialect( gridDialect.getClass().getName() );
        if ( GridDialectLogger.activationNeeded() ) {
View Full Code Here

  /**
   * If the current dialect supports batching, register the required event listeners.
   */
  private void attachBatchListenersIfRequired(SessionFactoryServiceRegistry serviceRegistry) {
    GridDialect gridDialect = serviceRegistry.getService( GridDialect.class );
    BatchOperationsDelegator batchDelegator = asBatchDelegatorOrNull( gridDialect );

    if ( batchDelegator != null ) {
      EventListenerRegistry eventListenerRegistry = serviceRegistry.getService( EventListenerRegistry.class );
      addListeners( eventListenerRegistry, batchDelegator );
    }
View Full Code Here

          log.gridDialectHasNoProperConstructor( clazz );
        }
        GridDialect gridDialect = (GridDialect) injector.newInstance( datastore );

        if ( gridDialect instanceof BatchableGridDialect ) {
          BatchOperationsDelegator delegator = new BatchOperationsDelegator( (BatchableGridDialect) gridDialect );
          addListeners( delegator );
          gridDialect = delegator;
        }

        log.useGridDialect( gridDialect.getClass().getName() );
View Full Code Here

        if ( gridDialect instanceof ServiceRegistryAwareService ) {
          ( (ServiceRegistryAwareService) gridDialect ).injectServices( registry );
        }

        if ( gridDialect instanceof BatchableGridDialect ) {
          BatchOperationsDelegator delegator = new BatchOperationsDelegator( (BatchableGridDialect) gridDialect );
          addListeners( delegator );
          gridDialect = delegator;
        }

        log.useGridDialect( gridDialect.getClass().getName() );
View Full Code Here

          log.gridDialectHasNoProperConstructor( clazz );
        }
        GridDialect gridDialect = (GridDialect) injector.newInstance( datastore );

        if ( gridDialect instanceof BatchableGridDialect ) {
          BatchOperationsDelegator delegator = new BatchOperationsDelegator( (BatchableGridDialect) gridDialect );
          addListeners( delegator );
          gridDialect = delegator;
        }

        log.useGridDialect( gridDialect.getClass().getName() );
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.dialect.BatchOperationsDelegator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.