Codota Logo
SchemaImpl.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.nuxeo.ecm.core.schema.types.SchemaImpl
constructor

Best Java code snippets using org.nuxeo.ecm.core.schema.types.SchemaImpl.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-mongodb

protected void initialize(MongoDBSession session) {
  if (dataFileName != null) {
    // fake schema for DirectoryCSVLoader.loadData
    SchemaImpl schema = new SchemaImpl(collection, null);
    schema.addField(sourceField, StringType.INSTANCE, null, 0, Collections.emptySet());
    schema.addField(targetField, StringType.INSTANCE, null, 0, Collections.emptySet());
    Consumer<Map<String, Object>> loader = map -> {
      Document doc = MongoDBSerializationHelper.fieldMapToBson(map);
      MongoCollection<Document> coll = getCollection(session);
      if (coll.countDocuments(doc) == 0) {
        coll.insertOne(doc);
      }
    };
    DirectoryCSVLoader.loadData(dataFileName, BaseDirectoryDescriptor.DEFAULT_DATA_FILE_CHARACTER_SEPARATOR,
        schema, loader);
  }
}
origin: org.nuxeo.ecm.core/nuxeo-core-schema

  return null;
Schema ecmSchema = new SchemaImpl(name, new Namespace(ns, prefix), isVersionWritable);
    if (singleComplexField.getType().isComplexType()) {
      ComplexType singleComplexFieldType = (ComplexType) singleComplexField.getType();
      ecmSchema = new SchemaImpl(singleComplexFieldType, name, new Namespace(ns, prefix),
          isVersionWritable);
    } else {
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

if (loadData && dataFileName != null) {
  SchemaImpl schema = new SchemaImpl(tableName, null);
  schema.addField(sourceColumn, StringType.INSTANCE, null, 0, Collections.emptySet());
  schema.addField(targetColumn, StringType.INSTANCE, null, 0, Collections.emptySet());
org.nuxeo.ecm.core.schema.typesSchemaImpl<init>

Javadoc

Constructor for a schema. Its types (fields) are then added through #registerType.

Popular methods of SchemaImpl

  • addField

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • orElseThrow (Optional)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now