Examples of RowKey


Examples of org.hibernate.ogm.model.key.spi.RowKey

    StringBuilder sb = new StringBuilder( "Association[\n");

    Iterator<RowKey> rowKeys = getKeys().iterator();

    while ( rowKeys.hasNext() ) {
      RowKey rowKey = rowKeys.next();
      sb.append( "  " ).append( rowKey ).append( "=" ).append( get( rowKey ) );

      if ( rowKeys.hasNext() ) {
        sb.append( ",\n" );
      }
View Full Code Here

Examples of org.hibernate.ogm.model.key.spi.RowKey

  }

  private void addNavigationalInformationForInverseSide(int propertyIndex, AssociationKeyMetadata associationKeyMetadata, Object[] newColumnValue) {
    AssociationPersister associationPersister = createAssociationPersister( propertyIndex, associationKeyMetadata, newColumnValue );

    RowKey rowKey = getInverseRowKey( associationKeyMetadata, newColumnValue );

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

    associationPersister.flushToDatastore();
  }
View Full Code Here

Examples of org.hibernate.ogm.model.key.spi.RowKey

    AssociationPersister associationPersister = createAssociationPersister( propertyIndex, associationKeyMetadata, oldColumnValue );

    Association association = associationPersister.getAssociationOrNull();

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

Examples of org.hibernate.ogm.model.key.spi.RowKey

    for ( int i = 0; i < columnNames.length; i++ ) {
      String columnName = columnNames[i];
      columnValues[i] = associationKey.getMetadata().isKeyColumn( columnName ) ? associationKey.getColumnValue( columnName ) : accessor.get( row, columnName );
    }

    return new RowKey( columnNames, columnValues );
  }
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.