Class EditorResultSetColumnProp

    • Constructor Detail

      • EditorResultSetColumnProp

        public EditorResultSetColumnProp()
        Creates the property container without a name. The name must be set in all cases using the setPropertyAtom call.
      • EditorResultSetColumnProp

        public EditorResultSetColumnProp​(Atom propertyAtom)
        Creates the property container with the specified name. All system-reserved names for components begins with "$".
        Parameters:
        propertyAtom - the name of the component, unique within it's parent.
    • Method Detail

      • setColumnIndex

        public void setColumnIndex​(int index)
        Sets the column index.

        This method is used internally by the Designer during creation of the SQL statement and should not be called elsewhere.

        Overrides:
        setColumnIndex in class ResultSetColumnProp
        Parameters:
        index - The column index.
      • setColumnName

        public void setColumnName​(java.lang.String name)
        Sets the column name, this method is used by the Designer.
        Overrides:
        setColumnName in class ResultSetColumnProp
        Parameters:
        name - The name of the column.
      • setColumnLabel

        public void setColumnLabel​(java.lang.String label)
        Sets the column name, this method is used by the Designer.
        Overrides:
        setColumnLabel in class ResultSetColumnProp
        Parameters:
        label - The name of the column to set, or null to clear it.
      • setNullable

        public void setNullable​(boolean isNullable)
        Sets if NULL is allowed for values in this column.
        Overrides:
        setNullable in class ResultSetColumnProp
        Parameters:
        isNullable - The Null-Allowed flag (i.e. NOT NOT NULL).
      • setValuesFrom

        public void setValuesFrom​(org.eclipse.datatools.modelbase.sql.query.ValueExpressionColumn column,
                                  java.lang.String name,
                                  boolean isNullable,
                                  int index)
        Updates the values "column name", "column index" and "SQL data type" with the SQLBuilder column info.
        Parameters:
        column - The column.
        name - The column name (with table).
        isNullable - The table column definition for nullable.
        index - Index of the column.