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

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


        else if ( operation instanceof RemoveTupleOperation ) {
          RemoveTupleOperation tupleOp = (RemoveTupleOperation) operation;
          executeBatchRemove( inserts, tupleOp );
        }
        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() );
        }
View Full Code Here


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

TOP

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

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.