Package org.hibernate.ogm.dialect.batch

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


        else if ( operation instanceof UpdateAssociationOperation ) {
          UpdateAssociationOperation update = (UpdateAssociationOperation) operation;
          updateAssociation( update.getAssociation(), update.getAssociationKey(), 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() ) {
      dialect.removeAssociation( key, associationContext );
    }
    else {
      getOperationQueue().add( new RemoveAssociationOperation( key, associationContext ) );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.dialect.batch.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.