psdi.app.recontask.engine.write

Class AbstractResultWriter

  • java.lang.Object
    • psdi.app.recontask.engine.write.AbstractResultWriter
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected ReconInfo reconInfo 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      protected void buildSQLF()
      Builds the SQL string to be used in writing to the database.
      abstract java.lang.String getTableName()
      Returns the name of the table for a particular ResultWriter.
      abstract java.lang.String getUIDColumnname() 
      java.lang.String getValue(java.lang.String attribute)
      Retrieves the value for the given attribute
      void init(ReconInfo reconInfo)
      Initializes the class.
      void setReconInfo(ReconInfo reconInfo) 
      void setValue(java.lang.String attributeName, java.lang.Object attributeValue)
      Sets the value for an attribute name (such as ASSETNUM, for instance.)
      void write(DBShortcut dbShortcut)
      Writes out the compiled SQL statement created by the setValue() method calls.
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • AbstractResultWriter

        public AbstractResultWriter()
    • Method Detail

      • getTableName

        public abstract java.lang.String getTableName()
        Returns the name of the table for a particular ResultWriter.
        Returns:
        the name of the table.
      • getUIDColumnname

        public abstract java.lang.String getUIDColumnname()
      • init

        public void init(ReconInfo reconInfo)
                  throws MXException,
                         java.rmi.RemoteException
        Initializes the class.
        Specified by:
        init in interface ResultWriter
        Parameters:
        userInfo - - the user info.
        Throws:
        MXException - - thrown by the method.
        java.rmi.RemoteException - - thrown by the method.
      • setReconInfo

        public void setReconInfo(ReconInfo reconInfo)
      • getValue

        public java.lang.String getValue(java.lang.String attribute)
        Retrieves the value for the given attribute
        Parameters:
        attribute - The name of the attribute whose value is to be retrieved
        Returns:
        String The value of the given attribute as a String object
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.lang.Object attributeValue)
                      throws MXException,
                             java.rmi.RemoteException
        Sets the value for an attribute name (such as ASSETNUM, for instance.)
        Specified by:
        setValue in interface ResultWriter
        Parameters:
        attributeName - - the name of the attribute.
        attributeValue - - the value that goes with the attribute name.
        Throws:
        MXException - - throws by the method.
        java.rmi.RemoteException - - thrown by the method.
      • write

        public void write(DBShortcut dbShortcut)
                   throws java.rmi.RemoteException,
                          MXException
        Writes out the compiled SQL statement created by the setValue() method calls.
        Specified by:
        write in interface ResultWriter
        Parameters:
        dbShortcut - - the db connection provider.
        Throws:
        java.rmi.RemoteException - - thrown by the method.
        MXException - - thrown by the method.
      • buildSQLF

        protected void buildSQLF()
                          throws MXException,
                                 java.rmi.RemoteException
        Builds the SQL string to be used in writing to the database.
        Throws:
        MXException
        java.rmi.RemoteException