Class ColumnType

    • Constructor Detail

      • ColumnType

        public ColumnType​(ColumnSpec spec,
                          int length,
                          boolean array)
      • ColumnType

        public ColumnType​(ColumnSpec spec,
                          int length)
      • ColumnType

        public ColumnType​(ColumnSpec spec)
    • Method Detail

      • isUnconstrained

        public boolean isUnconstrained()
      • isClob

        public boolean isClob()
      • isArray

        public boolean isArray()
      • isId

        public boolean isId()
        Checks if this column holds a Nuxeo unique id (usually UUID).
      • fromField

        public static ColumnType fromField​(Field field)
        Gets the column type from a Nuxeo Schema field, including its constrained length if any.
      • fromFieldType

        public static ColumnType fromFieldType​(Type type)
        Gets the column type from a Nuxeo Schema field type (unconstrained).
      • fromFieldType

        public static ColumnType fromFieldType​(Type type,
                                               boolean array)
        Gets the column type from a Nuxeo Schema field type (unconstrained) with array true if an array type is required
      • fromFieldType

        protected static ColumnType fromFieldType​(Type type,
                                                  int maxLength)
      • fromFieldType

        protected static ColumnType fromFieldType​(Type type,
                                                  int maxLength,
                                                  boolean array)