Package org.hibernate.ogm.dialect.spi

Examples of org.hibernate.ogm.dialect.spi.TupleContext


  private Tuple getTuple(String collectionName, String id, List<String> selectedColumns) {
    EntityKey key = new EntityKey(
        new EntityKeyMetadata( collectionName, new String[] { MongoDBDialect.ID_FIELDNAME } ),
        new Object[] { id }
    );
    TupleContext tupleContext = new TupleContextImpl(
        selectedColumns,
        Collections.<String, AssociatedEntityKeyMetadata>emptyMap(),
        Collections.<String, String>emptyMap(),
        EmptyOptionsContext.INSTANCE
    );
View Full Code Here


  }


  @Override
  public Tuple getTuple(EntityKey key, TupleContext tupleContext) {
    TupleContext contextWithQueue = new TupleContextImpl(
        (TupleContextImpl) tupleContext,
        getOperationQueue()
    );

    return super.getTuple( key, contextWithQueue );
View Full Code Here

  }


  @Override
  public Tuple getTuple(EntityKey key, TupleContext tupleContext) {
    TupleContext contextWithQueue = new TupleContext(
        tupleContext,
        getOperationQueue()
    );

    return super.getTuple( key, contextWithQueue );
View Full Code Here

          roles.put( column, getPropertyNames()[index] );
        }
      }
    }

    return new TupleContext(
        selectableColumnNames( discriminator ),
        associatedEntityKeyMetadata,
        roles,
        optionsService.context().getEntityOptions( getMappedClass() )
    );
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.dialect.spi.TupleContext

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.