Class JdbcSchema.Table.Column

    • Method Detail

      • getName

        public String getName()
        Returns the column's name in the database, not a symbolic name.
      • getType

        public int getType()
        Returns the columnIter java.sql.Type enun of the column.
      • getTypeName

        public String getTypeName()
        Returns the columnIter java.sql.Type name.
      • getDatatype

        public Dialect.Datatype getDatatype()
        Return true if this column is numeric.
      • getColumnSize

        public int getColumnSize()
        Returns the size in bytes of the column in the database.
      • getDecimalDigits

        public int getDecimalDigits()
        Returns number of fractional digits.
      • getNumPrecRadix

        public int getNumPrecRadix()
        Returns Radix (typically either 10 or 2).
      • getCharOctetLength

        public int getCharOctetLength()
        For char types the maximum number of bytes in the column.
      • isNullable

        public boolean isNullable()
        False means the column definitely does not allow NULL values.
      • numberOfUsages

        public int numberOfUsages()
        How many usages does this column have. A column has between 0 and N usages. It has no usages if usages is some administrative column. It has one usage if, for example, its the fact_count column or a level column (for a collapsed dimension aggregate). It might have 2 usages if its a foreign key that is also used as a measure. If its a column used in N measures, then usages will have N usages.
      • flushUsages

        public void flushUsages()
        flushes all star usage references
      • hasUsage

        public boolean hasUsage()
        Return true if the column has at least one usage.
      • hasUsage

        public boolean hasUsage​(JdbcSchema.UsageType columnType)
        Return true if the column has at least one usage of the given column type.