Class View


  • public class View
    extends Base
    • Field Detail

      • _ViewColumns

        @SerializedName("columns")
        public java.util.List<ViewColumn> _ViewColumns
      • _Joins

        @SerializedName("joins")
        public java.util.List<ViewJoin> _Joins
      • _SubWhere

        @SerializedName("subWhere")
        public java.lang.String _SubWhere
      • _SubWhereX

        @SerializedName("subWhereX")
        public SubWhereX _SubWhereX
      • _SubQuery

        @SerializedName("subQuery")
        public SubWhereClause _SubQuery
      • _CountStarDeprecated

        @SerializedName("countStar")
        public java.lang.String _CountStarDeprecated
      • _PivotSingle

        @SerializedName("pivot")
        public ViewPivot _PivotSingle
      • _Pivots

        @SerializedName("pivots")
        public java.util.List<ViewPivot> _Pivots
      • _TimeSeries

        @SerializedName("timeSeries")
        public ViewTimeSeries _TimeSeries
      • _DistinctOn

        @SerializedName("distinctOn")
        public ViewDistinctOn _DistinctOn
      • _PivotColumnsDeprecated

        @SerializedName("pivotColumns")
        public java.util.List<ViewPivotColumn> _PivotColumnsDeprecated
      • _Realize

        @SerializedName("realize")
        public ViewRealize _Realize
      • _ImportFormulas

        @SerializedName("importFormulas")
        public java.lang.String[] _ImportFormulas
      • _Formulas

        @SerializedName("formulaColumns")
        public java.util.List<Formula> _Formulas
      • _FormulaTemplates

        @SerializedName("formulaTemplates")
        public java.util.List<FormulaTemplate> _FormulaTemplates
      • _OCC

        public transient boolean _OCC
      • _ViewColumnsRegEx

        public transient java.util.regex.Pattern _ViewColumnsRegEx
      • _FormulasRegEx

        public transient java.util.regex.Pattern _FormulasRegEx
      • _Dependencies

        public transient java.util.Map<java.lang.String,​Base> _Dependencies
      • _PivotColumns

        public transient java.util.List<ViewColumn> _PivotColumns
    • Constructor Detail

      • View

        public View()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getColumn

        public Column getColumn​(java.lang.String name)
        Specified by:
        getColumn in class Base
      • getViewColumn

        public ViewColumn getViewColumn​(java.lang.String name)
      • getProxyColumn

        public Column getProxyColumn​(java.lang.String name)
      • getColumnNames

        public java.lang.String[] getColumnNames()
        Specified by:
        getColumnNames in class Base
      • isOCC

        public boolean isOCC()
        Specified by:
        isOCC in class Base
      • getViewjoin

        public ViewJoin getViewjoin​(java.lang.String ObjectName,
                                    java.lang.String As)
      • getRealizedTableName

        public java.lang.String getRealizedTableName​(boolean includeSchemaName)
      • getRootViewName

        public java.lang.String getRootViewName()
      • updateTzColDescriptions

        protected static void updateTzColDescriptions​(View V)
        Descriptions for TZColumns are a bit more complicated when dealing with views. The whole view needs to be fully constructed before we can update the description to accurately describe which column a TzCol corresponds to. *
        Parameters:
        V -
      • copyAdvancedViewColumnFields

        protected void copyAdvancedViewColumnFields​(ViewColumn VC,
                                                    ViewColumn NewVC)
        Copies field values from VC to NewVC. Handles _AggregateStr, _FormulaOnly, _JoinOnly, _Coalesce, _Distinct _OrderBy, _Filter, _Expression, _TypeStr, _Size, _Scale, _Precision.
        Parameters:
        VC -
        NewVC -
      • getFormula

        public Formula getFormula​(java.lang.String FormulaName)
      • getFormula

        public Formula getFormula​(java.lang.String FormulaName,
                                  boolean deep)
      • getDependencyGraph

        public Graph<View.DepWrapper> getDependencyGraph​(boolean onlyRealizedViews)
      • getSubRealizedViewRootNames

        public java.util.Set<View> getSubRealizedViewRootNames()
        Returns a list of the views directly referenced by this view that are realized, or null if no such views were found.
        Returns:
      • getAncestorRealizedViews

        public java.util.Set<View> getAncestorRealizedViews()
        Returns a set of the views directly referenced by this view that are not realized, but have an ancestor that is, or null if no such views were found.
        Returns:
      • getFirstAncestorRealizedViews

        public java.util.Set<View> getFirstAncestorRealizedViews()
        Returns a set of the first ancestor views referenced by this view that are realized. if no such views were found.
        Returns:
      • hasAncestorRealizedViews

        public boolean hasAncestorRealizedViews()
        Checks whether this view has a dependency on realized views, and as such, a parallel _R view should be, or has been, created.
        Returns:
      • getViewSubRealizeSchemaName

        public java.lang.String getViewSubRealizeSchemaName()
        The schema name for _R parallel views, currently TILTATMP.
        Returns:
      • getViewSubRealizeViewName

        public java.lang.String getViewSubRealizeViewName()
        The name of the _R view, as this view's "[schemaname]_[name]_R"
        Returns:
      • getViewSubRealizeFullName

        public java.lang.String getViewSubRealizeFullName()
        The full schema.name of the _R parallel view as per getViewSubRealizeSchemaName() and getViewSubRealizeViewName(). Only makes sense if hasAncestorRealizedViews() returns true, otherwise, this _R view wouldn't need to exist.
        Returns:
      • getFirstIdentityColumnNames

        public java.lang.String[] getFirstIdentityColumnNames​(boolean naturalIdentitiesFirst)
        Description copied from class: Base
        Returns the list of columns that represent the first identity of the object. If a PK is defined, the columns defined for it will be returned. Otherwise, the columns for the first defined unique index will be returned. Null is returned otherwise, that that should never happen because all Objects are required to have at least one identity.

        This method should only be called AFTER Object.validate(ParserSession, Schema) has been called first.
        Specified by:
        getFirstIdentityColumnNames in class Base
        Returns: