psdi.iface.intertables

Class FlatRowSet

  • java.lang.Object
    • psdi.iface.intertables.FlatRowSet
    • Constructor Summary

      Constructors 
      Constructor and Description
      FlatRowSet() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      abstract java.lang.String getFieldValue(java.lang.String columnName, MboValueInfo columnInfo) 
      java.lang.String getKeyValues(java.lang.String tableName, IfaceTbKey tbkey)
      The key value for that table.
      boolean isLevelExist(IfaceTbKey tbkey, java.util.List exclusiveCols, boolean isLeaf)
      Checks if a level exists or not.
      abstract boolean next() 
      • Methods inherited from class java.lang.Object

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

      • FlatRowSet

        public FlatRowSet()
    • Method Detail

      • isLevelExist

        public boolean isLevelExist(IfaceTbKey tbkey,
                                    java.util.List exclusiveCols,
                                    boolean isLeaf)
                             throws MXException
        Checks if a level exists or not. First checks if any of the exclusive keys are not null. If all are null then goes on to check if any of the exclusive columns are not null. If both the checks return negative it returns false indicating the level does not exist. This was done to handle interfaces like Inventory where a child level [INVCOST] migh have all exclusive keys null. Validates if any one of the exclusive keys are reqd and their value is null.
        Parameters:
        tbkey -
        exclusiveCols -
        isLeaf -
        Returns:
        true if the object [level] exists in the flat data
        Throws:
        java.sql.SQLException
        MXException
      • getKeyValues

        public java.lang.String getKeyValues(java.lang.String tableName,
                                             IfaceTbKey tbkey)
                                      throws MXException
        The key value for that table. This includes the keys of the parents [if any] also. This is used to hold reference to the created Elements for that level in the internal datastructure maintained by ConvertToStructure.
        Parameters:
        tableName -
        tbkey -
        Returns:
        the key values as a cacncatenated string
        Throws:
        java.sql.SQLException
        MXException