Class CommonBase

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CommonBase()  
      protected CommonBase​(com.tivoli.pd.jutil.PDContext context)  
      protected CommonBase​(com.tivoli.pd.jutil.PDContext context, Log logger)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void addSchemaEntry​(java.util.Vector vector, java.lang.String name, java.lang.String syntax, java.lang.Object size)
      Create and add the a schema entry to a schema vector.
      protected void createAndAddEntryAttribute​(Entry entry, java.lang.String attributeName, java.lang.Object value)
      Create and add attribute to an entry object.
      protected void debug​(java.lang.String msg)  
      protected void debug​(java.lang.String msg, Log log)  
      protected void error​(java.lang.String error)  
      protected java.lang.Boolean getBooleanEntryAttributeValue​(Entry entry, java.lang.String s)
      Retrieve an attribute from the entry object as a Boolean.
      protected byte[] getByteArrayEntryAttributeValue​(Entry entry, java.lang.String s)
      Retrieve an attribute from the entry object as a byte array.
      protected java.util.Date getDateEntryAttributeValue​(Entry entry, java.lang.String s)
      Retrieve an attribute from the entry object as a Date.
      protected java.lang.Integer getIntegerEntryAttributeValue​(Entry entry, java.lang.String s)
      Retrieve an attribute from the entry object as an integer.
      protected java.lang.Long getLongEntryAttributeValue​(Entry entry, java.lang.String s)
      Retrieve an attribute from the entry object as a Long.
      protected java.lang.String getPDMessage​(com.tivoli.pd.jutil.PDException pde)  
      protected java.lang.String getStringEntryAttributeValue​(Entry entry, java.lang.String s)
      Retrieve an attribute from the entry object as a string.
      protected void logmsg​(java.lang.String msg)  
      protected void printEntry​(Entry entry)  
      protected void processMsgs​(com.tivoli.pd.jutil.PDMessages msgs)  
      • Methods inherited from class java.lang.Object

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

      • CommonBase

        protected CommonBase()
      • CommonBase

        protected CommonBase​(com.tivoli.pd.jutil.PDContext context)
      • CommonBase

        protected CommonBase​(com.tivoli.pd.jutil.PDContext context,
                             Log logger)
    • Method Detail

      • logmsg

        protected void logmsg​(java.lang.String msg)
      • debug

        protected void debug​(java.lang.String msg)
      • debug

        protected void debug​(java.lang.String msg,
                             Log log)
      • error

        protected void error​(java.lang.String error)
      • processMsgs

        protected void processMsgs​(com.tivoli.pd.jutil.PDMessages msgs)
      • addSchemaEntry

        protected static void addSchemaEntry​(java.util.Vector vector,
                                             java.lang.String name,
                                             java.lang.String syntax,
                                             java.lang.Object size)
        Create and add the a schema entry to a schema vector.
        Parameters:
        vector - - Vector to add the schema entry to
        name - - Name of the schema element to add
        syntax - - Syntax of the schema element (QSS_*)
        size - - Size of the schema element
      • createAndAddEntryAttribute

        protected void createAndAddEntryAttribute​(Entry entry,
                                                  java.lang.String attributeName,
                                                  java.lang.Object value)
        Create and add attribute to an entry object.
        Parameters:
        entry - - Entry to add the attribute to
        attributeName - - Name of the attribute to add
        value - - Value of the attribute to add
      • getStringEntryAttributeValue

        protected java.lang.String getStringEntryAttributeValue​(Entry entry,
                                                                java.lang.String s)
        Retrieve an attribute from the entry object as a string.
        Parameters:
        entry - - Entry to read the attribute from
        s - - Name of the attribute value to return
        Returns:
        String value of specified attribute name from the provided entry
      • getIntegerEntryAttributeValue

        protected java.lang.Integer getIntegerEntryAttributeValue​(Entry entry,
                                                                  java.lang.String s)
        Retrieve an attribute from the entry object as an integer.
        Parameters:
        entry - - Entry to read the attribute from
        s - - Name of the attribute value to return
        Returns:
        Integer value of specified attribute name from the provided entry
      • getLongEntryAttributeValue

        protected java.lang.Long getLongEntryAttributeValue​(Entry entry,
                                                            java.lang.String s)
        Retrieve an attribute from the entry object as a Long.
        Parameters:
        entry - - Entry to read the attribute from
        s - - Name of the attribute value to return
        Returns:
        Long value of specified attribute name from the provided entry
      • getBooleanEntryAttributeValue

        protected java.lang.Boolean getBooleanEntryAttributeValue​(Entry entry,
                                                                  java.lang.String s)
        Retrieve an attribute from the entry object as a Boolean.
        Parameters:
        entry - - Entry to read the attribute from
        s - - Name of the attribute value to return
        Returns:
        Boolean value of specified attribute name from the provided entry
      • getDateEntryAttributeValue

        protected java.util.Date getDateEntryAttributeValue​(Entry entry,
                                                            java.lang.String s)
        Retrieve an attribute from the entry object as a Date.
        Parameters:
        entry - - Entry to read the attribute from
        s - - Name of the attribute value to return
        Returns:
        Date value of specified attribute name from the provided entry
      • getByteArrayEntryAttributeValue

        protected byte[] getByteArrayEntryAttributeValue​(Entry entry,
                                                         java.lang.String s)
        Retrieve an attribute from the entry object as a byte array.
        Parameters:
        entry - Entry to read the attribute from
        s - Name of the attribute value to return
        Returns:
        Attribute from the entry object as a byte array.
      • printEntry

        protected void printEntry​(Entry entry)
      • getPDMessage

        protected java.lang.String getPDMessage​(com.tivoli.pd.jutil.PDException pde)