Examples of flushToDatastore()


Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

      }
      i++;
    }

    // need to put the data back in the cache
    associationPersister.flushToDatastore();

    return count;
  }

  /**
 
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

          associationPersister.getAssociation().remove( assocEntryKey );

          count++;
        }

        associationPersister.flushToDatastore();

        if ( log.isDebugEnabled() ) {
          log.debug( "done deleting collection rows: " + count + " deleted" );
        }
      }
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

          count++;
        }
        i++;
      }

      associationPersister.flushToDatastore();

      if ( log.isDebugEnabled() ) {
        log.debug( "done inserting rows: " + count + " inserted" );
      }
    }
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

            count++;
          }
          i++;
        }

        associationPersister.flushToDatastore();

        if ( log.isDebugEnabled() ) {
          log.debug( "done inserting collection: " + count + " rows inserted" );
        }
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

      }
      else {
        throw new AssertionFailure( "Unknown action type: " + action );
      }

      associationPersister.flushToDatastore();
    }
  }

  private RowKey getInverseRowKey(Tuple associationRow) {
    String[] inverseRowKeyColumnNames = inverseCollectionPersister.getAssociationKeyMetadata().getRowKeyColumnNames();
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

                );
          }
        }
        association.clear();

        associationPersister.flushToDatastore();
      }

      if ( log.isDebugEnabled() ) {
        log.debug( "done deleting collection" );
      }
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

    for ( String column : rowKey.getColumnNames() ) {
      associationRow.put( column, rowKey.getColumnValue( column ) );
    }
    associationPersister.getAssociation().put( rowKey, associationRow );

    associationPersister.flushToDatastore();
  }

  private void removeNavigationalInformationFromInverseSide(int propertyIndex, AssociationKeyMetadata associationKeyMetadata, Object[] oldColumnValue) {
    AssociationPersister associationPersister = createAssociationPersister( propertyIndex, associationKeyMetadata, oldColumnValue );
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

    Association association = associationPersister.getAssociationOrNull();

    if ( association != null ) {
      RowKey rowKey = getInverseRowKey( associationKeyMetadata, oldColumnValue );
      association.remove( rowKey );
      associationPersister.flushToDatastore();
    }
  }

  private AssociationPersister createAssociationPersister(int propertyIndex, AssociationKeyMetadata associationKeyMetadata, Object[] keyColumnValues) {
    OptionsServiceContext serviceContext = session.getFactory()
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

    for ( String column : rowKey.getColumnNames() ) {
      associationRow.put( column, rowKey.getColumnValue( column ) );
    }
    associationPersister.getAssociation().put( rowKey, associationRow );

    associationPersister.flushToDatastore();
  }

  private void removeNavigationalInformationFromInverseSide(int propertyIndex, AssociationKeyMetadata associationKeyMetadata, Object[] oldColumnValue) {
    AssociationPersister associationPersister = createAssociationPersister( propertyIndex, associationKeyMetadata, oldColumnValue );
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToDatastore()

    Association association = associationPersister.getAssociation();

    if ( association != null ) {
      RowKey rowKey = getInverseRowKey( associationKeyMetadata, oldColumnValue );
      association.remove( rowKey );
      associationPersister.flushToDatastore();
    }
  }

  private AssociationPersister createAssociationPersister(int propertyIndex, AssociationKeyMetadata associationKeyMetadata, Object[] keyColumnValues) {
    return new AssociationPersister(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.