Package org.hibernate.ogm.datastore.mongodb.options.impl

Examples of org.hibernate.ogm.datastore.mongodb.options.impl.WriteConcernOption


  }

  @Override
  public MongoDBPropertyContext writeConcern(WriteConcern writeConcern) {
    Contracts.assertParameterNotNull( writeConcern, "writeConcern" );
    addPropertyOption( new WriteConcernOption(), writeConcern );
    return this;
  }
View Full Code Here


  }

  @Override
  public MongoDBPropertyContext writeConcern(WriteConcernType writeConcern) {
    Contracts.assertParameterNotNull( writeConcern, "writeConcern" );
    addPropertyOption( new WriteConcernOption(), writeConcern.getWriteConcern() );
    return this;
  }
View Full Code Here

  }

  @Override
  public MongoDBGlobalContext writeConcern(WriteConcernType writeConcern) {
    Contracts.assertParameterNotNull( writeConcern, "writeConcern" );
    addGlobalOption( new WriteConcernOption(), writeConcern.getWriteConcern() );
    return this;
  }
View Full Code Here

  }

  @Override
  public MongoDBGlobalContext writeConcern(WriteConcern writeConcern) {
    Contracts.assertParameterNotNull( writeConcern, "writeConcern" );
    addGlobalOption( new WriteConcernOption(), writeConcern );
    return this;
  }
View Full Code Here

  static class WriteConcernConverter implements AnnotationConverter<WriteConcern> {

    @Override
    public OptionValuePair<?> convert(WriteConcern annotation) {
      return OptionValuePair.getInstance( new WriteConcernOption(), annotation.value() );
    }
View Full Code Here

    super( context );
  }

  @Override
  public MongoDBGlobalContext writeConcern(WriteConcernType concern) {
    addGlobalOption( new WriteConcernOption(), concern );
    return this;
  }
View Full Code Here

    super( context );
  }

  @Override
  public MongoDBEntityContext writeConcern(WriteConcernType concern) {
    addEntityOption( new WriteConcernOption(), concern );
    return this;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.datastore.mongodb.options.impl.WriteConcernOption

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.