psdi.iface.mos

Class IfaceColumnInfo

  • java.lang.Object
    • psdi.iface.mos.IfaceColumnInfo
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable


    public final class IfaceColumnInfo
    extends java.lang.Object
    implements java.lang.Comparable, java.io.Serializable
    Holds information for MaxIntObjCols and MaxIntobjAlias objects
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compareTo(java.lang.Object obj)
      Implementation of compareTo() so that the List of IfaceColumnInfo objects can be sorted by their name.
      boolean equals(java.lang.Object obj)
      This equals() method returns true if the column name is the same
      java.lang.String getAlias() 
      java.lang.String getIfaceTbColName()
      return alias name if alias exists for the column, otherwise returns column name
      MboValueInfo getMboValueInfo()
      Get the MboValueInfo object for this column
      java.lang.String getName()
      Get the column name
      java.lang.String[] getPathTokens() 
      java.lang.String getTableName()
      Get the Table Name
      java.lang.String getTitle() 
      int hashCode()
      Implementation of hashCode() so that it is consistent with equals()
      boolean isExclude()
      Is the column excluded from the structure
      boolean isIdColumn()
      says whether an id column or not.
      boolean isKey()
      Is the column a key column(it can be a altkey column)
      boolean isNonPersistent()
      Returns whether this column is non-persistent
      boolean isRequired()
      Returns whether this column is required(non-null) in Maximo
      boolean isRestricted()
      Return boolean indicating if this column is restricted
      boolean isXmlSchemaNillable()
      Returns whether this column is XML Schema nillable
      void setAlias(java.lang.String alias) 
      boolean setIfaceTbColName(java.lang.String ifaceTbColumn)
      Set the Column name
      void setMboValueInfo(MboValueInfo mboValueInfo)
      Set the MboValueInfo object for this column
      void setPathTokens(java.lang.String[] pathTokens) 
      void setTableName(java.lang.String tbName)
      Set the Table Name
      void setTitle(java.lang.String title) 
      void setXmlSchemaNillable(boolean xmlSchemaNillable)
      Sets whether this column is XML Schema nillable
      java.lang.String toString()
      Dump the details of IfaceColumnInfo.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IfaceColumnInfo

        public IfaceColumnInfo()
        Constructor
      • IfaceColumnInfo

        public IfaceColumnInfo(java.lang.String name)
    • Method Detail

      • setAlias

        public void setAlias(java.lang.String alias)
      • getAlias

        public java.lang.String getAlias()
      • setPathTokens

        public void setPathTokens(java.lang.String[] pathTokens)
      • getPathTokens

        public java.lang.String[] getPathTokens()
      • getTitle

        public java.lang.String getTitle()
      • setTitle

        public void setTitle(java.lang.String title)
      • isIdColumn

        public boolean isIdColumn()
        says whether an id column or not.
        Returns:
        true means an id column false otherwise.
      • getName

        public java.lang.String getName()
        Get the column name
        Returns:
        column name
      • isRestricted

        public boolean isRestricted()
        Return boolean indicating if this column is restricted
        Returns:
        true or false
      • toString

        public java.lang.String toString()
        Dump the details of IfaceColumnInfo. Use for debugging only!
        Overrides:
        toString in class java.lang.Object
      • getIfaceTbColName

        public java.lang.String getIfaceTbColName()
        return alias name if alias exists for the column, otherwise returns column name
        Returns:
        Alias/Column name
      • setIfaceTbColName

        public boolean setIfaceTbColName(java.lang.String ifaceTbColumn)
        Set the Column name
        Parameters:
        ifaceTbColumn - Alias/Column name
      • getMboValueInfo

        public MboValueInfo getMboValueInfo()
        Get the MboValueInfo object for this column
        Returns:
        MboValueInfo object for this column
      • setMboValueInfo

        public void setMboValueInfo(MboValueInfo mboValueInfo)
        Set the MboValueInfo object for this column
        Parameters:
        mboValueInfo - MboValueInfo object for this column
      • getTableName

        public java.lang.String getTableName()
        Get the Table Name
        Returns:
        Table Name
      • setTableName

        public void setTableName(java.lang.String tbName)
        Set the Table Name
        Parameters:
        tbName - Table Name
      • compareTo

        public int compareTo(java.lang.Object obj)
        Implementation of compareTo() so that the List of IfaceColumnInfo objects can be sorted by their name. The comparison criteria is the column name
        Specified by:
        compareTo in interface java.lang.Comparable
        Parameters:
        obj - the object to compare against
        Returns:
        -1, 0, or 1
      • equals

        public boolean equals(java.lang.Object obj)
        This equals() method returns true if the column name is the same
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to compare against
        Returns:
        true if the objects are logically equal, false otherwise
      • hashCode

        public int hashCode()
        Implementation of hashCode() so that it is consistent with equals()
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • isExclude

        public boolean isExclude()
        Is the column excluded from the structure
        Returns:
        true or false
      • isKey

        public boolean isKey()
        Is the column a key column(it can be a altkey column)
        Returns:
        true if it is a key column
      • isNonPersistent

        public boolean isNonPersistent()
        Returns whether this column is non-persistent
        Returns:
        true or false
      • isRequired

        public boolean isRequired()
        Returns whether this column is required(non-null) in Maximo
        Returns:
        true or false
      • isXmlSchemaNillable

        public boolean isXmlSchemaNillable()
        Returns whether this column is XML Schema nillable
        Returns:
        whether this column is XML Schema nillable
      • setXmlSchemaNillable

        public void setXmlSchemaNillable(boolean xmlSchemaNillable)
        Sets whether this column is XML Schema nillable
        Parameters:
        xmlSchemaNillable - schema nillable flag