Package org.hibernate.ogm.grid.impl

Examples of org.hibernate.ogm.grid.impl.RowKeyBuilder.values()


    }

    RowKeyAndTuple result = new RowKeyAndTuple();
    EntityKey entityKey = associationPersister.createTargetKey( rowKeyBuilder.getColumnNames(), tuple );
    result.key = rowKeyBuilder.values( tuple ).entityKey( entityKey ).build();

    Tuple assocEntryTuple = associationPersister.createAndPutAssociationTuple( result.key );
    for ( String column : tuple.getColumnNames() ) {
      assocEntryTuple.put( column, tuple.get( column ) );
    }
View Full Code Here


          throw new AssertionFailure( "cannot use a formula-based element in the where condition" );
        }
        getElementGridType().nullSafeSet( tuple, snapshotElement, getElementColumnNames(), session );
      }
    }
    rowKeyBuilder.values( tuple );
    rowKeyBuilder.entityKey( associationPersister.createTargetKey( rowKeyBuilder.getColumnNames(), tuple ) );
    return rowKeyBuilder.build();
  }

  private RowKey getTupleKeyForDelete(Serializable key, PersistentCollection collection, SessionImplementor session, Object entry, boolean findByIndex, AssociationPersister associationPersister) {
View Full Code Here

          throw new AssertionFailure( "cannot use a formula-based element in the where condition" );
        }
        getElementGridType().nullSafeSet( tuple, snapshotElement, getElementColumnNames(), session );
      }
    }
    rowKeyBuilder.values( tuple );
    rowKeyBuilder.entityKey( associationPersister.createTargetKey( rowKeyBuilder.getColumnNames(), tuple ) );
    return rowKeyBuilder.build();
  }

  @Override
View Full Code Here

      final Object element = collection.getElement( entry );
      getElementGridType().nullSafeSet( tuple, element, getElementColumnNames(), session );

    }
    RowKeyAndTuple result = new RowKeyAndTuple();
    result.key = rowKeyBuilder.values( tuple ).build();
    Tuple assocEntryTuple = associationPersister.createAndPutAssociationTuple( result.key );
    for ( String column : tuple.getColumnNames() ) {
      assocEntryTuple.put( column, tuple.get( column ) );
    }
    result.tuple = assocEntryTuple;
View Full Code Here

          throw new AssertionFailure( "cannot use a formula-based element in the where condition" );
        }
        getElementGridType().nullSafeSet( tuple, snapshotElement, getElementColumnNames(), session );
      }
    }
    return rowKeyBuilder.values( tuple ).build();
  }

  private RowKey getTupleKeyForDelete(Serializable key, PersistentCollection collection, SessionImplementor session, Object entry, boolean findByIndex) {
    RowKeyBuilder rowKeyBuilder = initializeRowKeyBuilder();
    Tuple tuple = new Tuple();
View Full Code Here

          throw new AssertionFailure( "cannot use a formula-based element in the where condition" );
        }
        getElementGridType().nullSafeSet( tuple, snapshotElement, getElementColumnNames(), session );
      }
    }
    rowKeyBuilder.values( tuple );
    return rowKeyBuilder.build();
  }

  @Override
  public int getSize(Serializable key, SessionImplementor session) {
View Full Code Here

      final Object element = collection.getElement( entry );
      getElementGridType().nullSafeSet( tuple, element, getElementColumnNames(), session );

    }
    RowKeyAndTuple result = new RowKeyAndTuple();
    result.key = rowKeyBuilder.values( tuple ).build();
    Tuple assocEntryTuple = metadataProvider.createAndPutAssociationTuple( result.key );
    for ( String column : tuple.getColumnNames() ) {
      assocEntryTuple.put( column, tuple.get( column ) );
    }
    result.tuple = assocEntryTuple;
View Full Code Here

          throw new AssertionFailure("cannot use a formula-based element in the where condition");
        }
        getElementGridType().nullSafeSet( tuple, snapshotElement, getElementColumnNames(), session );
      }
    }
    return rowKeyBuilder.values( tuple ).build();
  }

  private RowKey getTupleKeyForDelete(Serializable key, PersistentCollection collection, SessionImplementor session, Object entry, boolean findByIndex) {
    RowKeyBuilder rowKeyBuilder = initializeRowKeyBuilder();
    Tuple tuple = new Tuple( EmptyTupleSnapshot.SINGLETON );
View Full Code Here

          throw new AssertionFailure("cannot use a formula-based element in the where condition");
        }
        getElementGridType().nullSafeSet( tuple, snapshotElement, getElementColumnNames(), session );
      }
    }
    rowKeyBuilder.values( tuple );
    return rowKeyBuilder.build();
  }


View Full Code Here

      final Object element = collection.getElement( entry );
      getElementGridType().nullSafeSet( tuple, element, getElementColumnNames(), session );

    }
    RowKeyAndTuple result = new RowKeyAndTuple();
    result.key = rowKeyBuilder.values( tuple ).build();
    Tuple assocEntryTuple = associationPersister.createAndPutAssociationTuple( result.key );
    for ( String column : tuple.getColumnNames() ) {
      assocEntryTuple.put( column, tuple.get( column ) );
    }
    result.tuple = assocEntryTuple;
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.