Class EditorResultSetColumnProp

All Implemented Interfaces:
IPropDesigner, EventListener, IGProp<GProp<?>[]>, IPropCnr, IVSColumnBestValueListener, IVSColumnListener, IVSComponentListener, IVSComponentState, IVSTableColumnReferenceOwner, Cloneable, org.eclipse.core.runtime.IAdaptable

public class EditorResultSetColumnProp extends ResultSetColumnProp implements IPropDesigner
Editor version of the result set Column property that connects the column name in a result set with a VSColumnHeader.
Author:
Christopher Mindus
  • Constructor Details

    • 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 Details

    • getDesigner

      public DatabaseDesignerProp getDesigner()
      Gets the Designer Extension for Properties.
      Specified by:
      getDesigner in interface IPropDesigner
      Returns:
      The instance of the Designer Extension.
    • getResultSetProps

      public EditorResultSetProps getResultSetProps()
      Gets the Result Set properties.
      Overrides:
      getResultSetProps in class ResultSetColumnProp
      Returns:
      The result set properties, or null if this property is orphaned.
    • clone

      public EditorResultSetColumnProp clone()
      Clone must be overridden.
      Overrides:
      clone in class ResultSetColumnProp
    • getVSTable

      public EditorVSTable getVSTable(VSTableColumnReference ref)
      Gets the VSTable for a VSTableColumnReference instance.
      Specified by:
      getVSTable in interface IVSTableColumnReferenceOwner
      Overrides:
      getVSTable in class ResultSetColumnProp
      Parameters:
      ref - The reference instance, null when property-editing the reference in the Designer.
      Returns:
      The table for the reference, or null if not found.
    • getVSColumn

      public EditorVSColumnHeader getVSColumn()
      Gets the VSColumnHeader.
      Overrides:
      getVSColumn in class ResultSetColumnProp
      Returns:
      The VSColumnHeader associated, or null for none (or unresolved).
    • 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(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(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, 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.