Tabnine Logo
SchemaImpl.<init>
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now