Package mondrian.xmla

Class RowsetDefinition.Column

  • Enclosing class:
    RowsetDefinition

    static class RowsetDefinition.Column
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String description  
      (package private) Enumeration enumeration  
      (package private) java.lang.String name  
      (package private) static boolean NOT_RESTRICTION
      This is used as the false value for the restriction parameter.
      (package private) boolean nullable  
      (package private) static boolean ONE_MAX
      This is used as the false value for the unbounded parameter.
      (package private) static boolean OPTIONAL
      This is used as the true value for the nullable parameter.
      (package private) static boolean REQUIRED
      This is used as the false value for the nullable parameter.
      (package private) boolean restriction  
      (package private) static boolean RESTRICTION
      This is used as the true value for the restriction parameter.
      (package private) RowsetDefinition.Type type  
      (package private) boolean unbounded  
      (package private) static boolean UNBOUNDED
      This is used as the true value for the unbounded parameter.
    • Constructor Summary

      Constructors 
      Constructor Description
      Column​(java.lang.String name, RowsetDefinition.Type type, Enumeration enumeratedType, boolean restriction, boolean nullable, boolean unbounded, java.lang.String description)  
      Column​(java.lang.String name, RowsetDefinition.Type type, Enumeration enumeratedType, boolean restriction, boolean nullable, java.lang.String description)
      Creates a column.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object get​(java.lang.Object row)
      Retrieves a value of this column from a row.
      java.lang.String getColumnType()  
      protected java.lang.Object getFromAccessor​(java.lang.Object row)
      Retrieves the value of this column "MyColumn" by calling a method called "getMyColumn()".
      protected java.lang.Object getFromField​(java.lang.Object row)
      Retrieves the value of this column "MyColumn" from a field called "myColumn".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RESTRICTION

        static final boolean RESTRICTION
        This is used as the true value for the restriction parameter.
        See Also:
        Constant Field Values
      • NOT_RESTRICTION

        static final boolean NOT_RESTRICTION
        This is used as the false value for the restriction parameter.
        See Also:
        Constant Field Values
      • REQUIRED

        static final boolean REQUIRED
        This is used as the false value for the nullable parameter.
        See Also:
        Constant Field Values
      • OPTIONAL

        static final boolean OPTIONAL
        This is used as the true value for the nullable parameter.
        See Also:
        Constant Field Values
      • ONE_MAX

        static final boolean ONE_MAX
        This is used as the false value for the unbounded parameter.
        See Also:
        Constant Field Values
      • UNBOUNDED

        static final boolean UNBOUNDED
        This is used as the true value for the unbounded parameter.
        See Also:
        Constant Field Values
      • name

        final java.lang.String name
      • description

        final java.lang.String description
      • restriction

        final boolean restriction
      • nullable

        final boolean nullable
      • unbounded

        final boolean unbounded
    • Constructor Detail

      • Column

        Column​(java.lang.String name,
               RowsetDefinition.Type type,
               Enumeration enumeratedType,
               boolean restriction,
               boolean nullable,
               java.lang.String description)
        Creates a column.
        Parameters:
        name - Name of column
        type - A RowsetDefinition.Type value
        enumeratedType - Must be specified for enumeration or array of enumerations
        description - Description of column
        restriction - Whether column can be used as a filter on its rowset
        nullable - Whether column can contain null values
        Pre-condition:
        type != null, (type == Type.Enumeration || type == Type.EnumerationArray || type == Type.EnumString) == (enumeratedType != null), description == null || description.indexOf('\r') == -1
      • Column

        Column​(java.lang.String name,
               RowsetDefinition.Type type,
               Enumeration enumeratedType,
               boolean restriction,
               boolean nullable,
               boolean unbounded,
               java.lang.String description)
    • Method Detail

      • get

        protected java.lang.Object get​(java.lang.Object row)
        Retrieves a value of this column from a row. The base implementation uses reflection to call an accessor method; a derived class may provide a different implementation.
        Parameters:
        row - Row
      • getFromField

        protected final java.lang.Object getFromField​(java.lang.Object row)
        Retrieves the value of this column "MyColumn" from a field called "myColumn".
        Parameters:
        row - Current row
        Returns:
        Value of given this property of the given row
      • getFromAccessor

        protected final java.lang.Object getFromAccessor​(java.lang.Object row)
        Retrieves the value of this column "MyColumn" by calling a method called "getMyColumn()".
        Parameters:
        row - Current row
        Returns:
        Value of given this property of the given row
      • getColumnType

        public java.lang.String getColumnType()