com.ibm.tivoli.maximo.integrity.check

Class ColumnData

  • java.lang.Object
    • com.ibm.tivoli.maximo.integrity.check.ColumnData


  • public class ColumnData
    extends java.lang.Object
    Stores data about a column defined in Maximo, or the database, or hopefully both. Used to compare the database definition to the definition of the column in the Maximo framework tables.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ColumnData(java.lang.String tableName, java.lang.String colName)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getColumnName()
      The column's name.
      java.lang.String getDbDefinition() 
      java.lang.Integer getDbLength()
      Return the column length as found in the database.
      java.lang.Integer getDbOrdering()
      Set the positional order of the column in the database.
      java.lang.Integer getDbScale()
      Return the column scale as found in the database.
      java.lang.String getDbType()
      Return the column type as found in the database.
      DoubleUcaseKey getKey() 
      java.lang.Integer getMaxLength()
      Return the length defined in Maximo.
      java.lang.Integer getMaxOrdering()
      Return the ordering position as defined in Maximo.
      java.lang.Integer getMaxScale()
      Return the scale defined in Maximo.
      java.lang.String getMaxType()
      Return the MaxType for Maximo.
      java.lang.Boolean getRequired()
      Required according to Maximo?
      java.lang.String getTableName()
      The table that has the column.
      boolean hasDatabaseDef()
      Is this column found in the database?
      boolean hasMaximoDef()
      Is this column defined in the Maximo framework table MaxAttribute?
      void setDbDefinition(java.lang.String dbDefinition) 
      void setDbLength(java.lang.Integer length)
      Set the length as found in the database.
      void setDbOrdering(java.lang.Integer dbOrdering)
      Set the positional order of the column in the database.
      void setDbScale(java.lang.Integer scale)
      Set the scale as found in the database.
      void setDbType(java.lang.String typeName)
      Set the type as found in the database.
      void setMaxLength(java.lang.Integer length)
      Set the length found in Maximo.
      void setMaxOrdering(java.lang.Integer attrNum)
      Set the positional order found in Maximo.
      void setMaxRequired(java.lang.Boolean required)
      Set the requiredness found in Maximo.
      void setMaxScale(java.lang.Integer scale)
      Set the scale found in Maximo.
      void setMaxType(java.lang.String maxType)
      Set the MaxType found in Maximo.
      void setRequired(java.lang.Boolean required)
      Set required according to Maximo
      • Methods inherited from class java.lang.Object

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

      • ColumnData

        public ColumnData(java.lang.String tableName,
                          java.lang.String colName)
        Constructor
    • Method Detail

      • hasDatabaseDef

        public boolean hasDatabaseDef()
        Is this column found in the database?
      • hasMaximoDef

        public boolean hasMaximoDef()
        Is this column defined in the Maximo framework table MaxAttribute?
      • getRequired

        public java.lang.Boolean getRequired()
        Required according to Maximo?
      • setRequired

        public void setRequired(java.lang.Boolean required)
        Set required according to Maximo
      • getColumnName

        public java.lang.String getColumnName()
        The column's name.
      • getMaxType

        public java.lang.String getMaxType()
        Return the MaxType for Maximo.
      • getMaxLength

        public java.lang.Integer getMaxLength()
        Return the length defined in Maximo.
      • getMaxScale

        public java.lang.Integer getMaxScale()
        Return the scale defined in Maximo.
      • getMaxOrdering

        public java.lang.Integer getMaxOrdering()
        Return the ordering position as defined in Maximo. Due to nonpersistent columns, these values may not be sequential, but the should be in the same order as in the database table.
      • setMaxType

        public void setMaxType(java.lang.String maxType)
        Set the MaxType found in Maximo.
      • setMaxLength

        public void setMaxLength(java.lang.Integer length)
        Set the length found in Maximo.
      • setMaxScale

        public void setMaxScale(java.lang.Integer scale)
        Set the scale found in Maximo.
      • setMaxRequired

        public void setMaxRequired(java.lang.Boolean required)
        Set the requiredness found in Maximo.
      • setMaxOrdering

        public void setMaxOrdering(java.lang.Integer attrNum)
        Set the positional order found in Maximo.
      • setDbOrdering

        public void setDbOrdering(java.lang.Integer dbOrdering)
        Set the positional order of the column in the database.
      • getDbOrdering

        public java.lang.Integer getDbOrdering()
        Set the positional order of the column in the database.
      • getDbType

        public java.lang.String getDbType()
        Return the column type as found in the database. This is the database's type, not the Maximo's type.
      • getTableName

        public java.lang.String getTableName()
        The table that has the column.
      • setDbType

        public void setDbType(java.lang.String typeName)
        Set the type as found in the database.
      • setDbLength

        public void setDbLength(java.lang.Integer length)
        Set the length as found in the database.
      • setDbScale

        public void setDbScale(java.lang.Integer scale)
        Set the scale as found in the database.
      • getDbScale

        public java.lang.Integer getDbScale()
        Return the column scale as found in the database.
      • getDbLength

        public java.lang.Integer getDbLength()
        Return the column length as found in the database.
      • getDbDefinition

        public java.lang.String getDbDefinition()
        Returns:
        the dbDefinition
      • setDbDefinition

        public void setDbDefinition(java.lang.String dbDefinition)
        Parameters:
        dbDefinition - the dbDefinition to set