Codota Logo
SchemaImpl
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.nuxeo.ecm.core.schema.types.SchemaImpl (Showing top 4 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.core/nuxeo-core-schema

/**
 * Create a schema from a ComplexType
 *
 * @since 5.7
 * @param complexType
 * @param name
 * @param ns
 */
public SchemaImpl(ComplexType complexType, String name, Namespace ns, boolean isVersionWritabe) {
  super(null, SchemaNames.SCHEMAS, name, ns);
  this.isVersionWritabe = isVersionWritabe;
  if (complexType != null) {
    for (Field field : complexType.getFields()) {
      QName fieldname = QName.valueOf(field.getName().getLocalName(), ns.prefix);
      Type type = field.getType();
      String defaultValue = type.encode(field.getDefaultValue());
      Set<Constraint> constraint = field.getConstraints();
      FieldImpl newField = new FieldImpl(fieldname, this, type, defaultValue, 0, constraint);
      newField.setConstant(field.isConstant());
      addField(newField);
    }
  }
}
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());
  Insert insert = new Insert(table);
  for (Column column : table.getColumns()) {
org.nuxeo.ecm.core.schema.typesSchemaImpl

Javadoc

The implementation of a Schema

Most used methods

  • <init>
    Create a schema from a ComplexType
  • addField

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • IsNull (org.hamcrest.core)
    Is the value null?
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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