Package org.hibernate.ogm.dialect.batch.spi

Examples of org.hibernate.ogm.dialect.batch.spi.RemoveAssociationOperation


        else if ( operation instanceof InsertOrUpdateAssociationOperation ) {
          InsertOrUpdateAssociationOperation update = (InsertOrUpdateAssociationOperation) operation;
          insertOrUpdateAssociation( update.getAssociationKey(), update.getAssociation(), update.getContext() );
        }
        else if ( operation instanceof RemoveAssociationOperation ) {
          RemoveAssociationOperation remove = (RemoveAssociationOperation) operation;
          removeAssociation( remove.getAssociationKey(), remove.getContext() );
        }
        else {
          throw new UnsupportedOperationException( "Operation not supported on MongoDB: " + operation.getClass().getName() );
        }
        operation = queue.poll();
View Full Code Here


  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isBatchDisabled() ) {
      super.removeAssociation( key, withQueue( associationContext ) );
    }
    else {
      getOperationQueue().add( new RemoveAssociationOperation( key, withQueue( associationContext ) ) );
    }
  }
View Full Code Here

        else if ( operation instanceof UpdateAssociationOperation ) {
          UpdateAssociationOperation update = (UpdateAssociationOperation) operation;
          insertOrUpdateAssociation( update.getAssociationKey(), update.getAssociation(), update.getContext() );
        }
        else if ( operation instanceof RemoveAssociationOperation ) {
          RemoveAssociationOperation remove = (RemoveAssociationOperation) operation;
          removeAssociation( remove.getAssociationKey(), remove.getContext() );
        }
        else {
          throw new UnsupportedOperationException( "Operation not supported on MongoDB: " + operation.getClass().getName() );
        }
        operation = queue.poll();
View Full Code Here

  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isBatchDisabled() ) {
      super.removeAssociation( key, withQueue( associationContext ) );
    }
    else {
      getOperationQueue().add( new RemoveAssociationOperation( key, withQueue( associationContext ) ) );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.dialect.batch.spi.RemoveAssociationOperation

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.