Collation$Builder.build
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.mongodb.client.model.Collation$Builder.build(Showing top 12 results out of 315)

  • Common ways to obtain Collation$Builder
private void myMethod () {
Collation$Builder c =
  • Collation.builder()
  • Smart code suggestions by Codota
}
origin: org.mongodb.morphia/morphia

/**
 * Copies this instance to a new one.
 *
 * @return the new instance
 */
public DeleteOptions copy() {
  DeleteOptions deleteOptions = new DeleteOptions()
    .writeConcern(getWriteConcern());
  if (getCollation() != null) {
    deleteOptions.collation(Collation.builder(getCollation()).build());
  }
  return deleteOptions;
}
origin: org.mongodb.morphia/morphia

com.mongodb.client.model.Collation convert(final Collation collation) {
  return com.mongodb.client.model.Collation.builder()
                       .locale(collation.locale())
                       .backwards(collation.backwards())
                       .caseLevel(collation.caseLevel())
                       .collationAlternate(collation.alternate())
                       .collationCaseFirst(collation.caseFirst())
                       .collationMaxVariable(collation.maxVariable())
                       .collationStrength(collation.strength())
                       .normalization(collation.normalization())
                       .numericOrdering(collation.numericOrdering())
                       .build();
}
origin: spring-projects/spring-data-mongodb

  source.normalization.ifPresent(builder::normalization);
  return builder.build();
};
origin: org.hibernate.ogm/hibernate-ogm-mongodb

private static Collation getCollation(Document dbObject) {
  Collation collation = null;
  if ( dbObject != null ) {
    String caseFirst = dbObject.getString( "caseFirst" );
    Integer strength = dbObject.getInteger( "strength" );
    String alternate = dbObject.getString( "alternate" );
    String maxVariable = dbObject.getString( "maxVariable" );
    collation =  Collation.builder()
        .locale( (String) dbObject.get( "locale" ) )
        .caseLevel( (Boolean) dbObject.get( "caseLevel" ) )
        .numericOrdering( (Boolean) dbObject.get( "numericOrdering" ) )
        .backwards( (Boolean) dbObject.get( "backwards" ) )
        .collationCaseFirst( caseFirst == null ? null : CollationCaseFirst.fromString( caseFirst ) )
        .collationStrength( strength == null ? null : CollationStrength.fromInt( strength ) )
        .collationAlternate( alternate == null ? null : CollationAlternate.fromString( alternate ) )
        .collationMaxVariable(  maxVariable == null ? null : CollationMaxVariable.fromString( maxVariable ) )
        .build();
  }
  return collation;
}
origin: org.mongodb/mongo-java-driver

return builder.build();
origin: org.springframework.data/spring-data-mongodb

  source.normalization.ifPresent(builder::normalization);
  return builder.build();
};
origin: hibernate/hibernate-ogm

private static Collation getCollation(Document dbObject) {
  Collation collation = null;
  if ( dbObject != null ) {
    String caseFirst = dbObject.getString( "caseFirst" );
    Integer strength = dbObject.getInteger( "strength" );
    String alternate = dbObject.getString( "alternate" );
    String maxVariable = dbObject.getString( "maxVariable" );
    collation =  Collation.builder()
        .locale( (String) dbObject.get( "locale" ) )
        .caseLevel( (Boolean) dbObject.get( "caseLevel" ) )
        .numericOrdering( (Boolean) dbObject.get( "numericOrdering" ) )
        .backwards( (Boolean) dbObject.get( "backwards" ) )
        .collationCaseFirst( caseFirst == null ? null : CollationCaseFirst.fromString( caseFirst ) )
        .collationStrength( strength == null ? null : CollationStrength.fromInt( strength ) )
        .collationAlternate( alternate == null ? null : CollationAlternate.fromString( alternate ) )
        .collationMaxVariable(  maxVariable == null ? null : CollationMaxVariable.fromString( maxVariable ) )
        .build();
  }
  return collation;
}
origin: org.mongodb/mongo-java-driver

return builder.build();
origin: org.mongodb/mongo-java-driver

return builder.build();
origin: org.mongodb/mongodb-driver

return builder.build();
origin: org.mongodb/mongodb-driver

return builder.build();
origin: org.mongodb/mongodb-driver

return builder.build();
com.mongodb.client.modelCollation$Builderbuild

Javadoc

Creates a new Collation object with the settings initialised on this builder.

Popular methods of Collation$Builder

  • collationAlternate
    Sets the alternateControls whether spaces and punctuation are considered base characters
  • collationCaseFirst
    Sets the collation case first valueDetermines if Uppercase or lowercase values should come first
  • collationMaxVariable
    Sets the maxVariable
  • collationStrength
    Sets the collation strength
  • locale
    Sets the locale
  • backwards
    Sets the backwards valueCauses secondary differences to be considered in reverse order, as it is don
  • caseLevel
    Sets the case level valueTurns on case sensitivity
  • numericOrdering
    Sets the numeric ordering
  • normalization
    Sets the normalization valueIf true, normalizes text into Unicode NFD.
  • <init>

Popular classes and methods

  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Menu (java.awt)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • LinkedHashMap (java.util)
    Hash table implementation of the Map interface with predictable iteration order. [Sun docs] [http:/
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)