Class RegisterLoaderInstance

  • All Implemented Interfaces:
    IDatabaseSupplier<java.lang.Long>

    public class RegisterLoaderInstance
    extends java.lang.Object
    implements IDatabaseSupplier<java.lang.Long>
    DAO to encapsulate all the SQL/DML used to retrieve and persist data in the schema
    • Constructor Summary

      Constructors 
      Constructor Description
      RegisterLoaderInstance​(java.lang.String schemaName, java.lang.String loaderInstanceKey, java.lang.String host, int pid)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long run​(IDatabaseTranslator translator, java.sql.Connection c)
      Execute the statement using the connection and return the value
      • Methods inherited from class java.lang.Object

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

      • RegisterLoaderInstance

        public RegisterLoaderInstance​(java.lang.String schemaName,
                                      java.lang.String loaderInstanceKey,
                                      java.lang.String host,
                                      int pid)
        Public constructor
        Parameters:
        schemaName -
        loaderInstanceKey -
        host -
        pid -
    • Method Detail

      • run

        public java.lang.Long run​(IDatabaseTranslator translator,
                                  java.sql.Connection c)
        Description copied from interface: IDatabaseSupplier
        Execute the statement using the connection and return the value
        Specified by:
        run in interface IDatabaseSupplier<java.lang.Long>
        Parameters:
        translator - to translate any exceptions