Class PlainPostgresSystemParameterBatch


  • public class PlainPostgresSystemParameterBatch
    extends java.lang.Object
    Batch insert statements for system-level parameters
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDate​(long logicalResourceId, int parameterNameId, java.sql.Timestamp dateStart, java.sql.Timestamp dateEnd, java.lang.Integer compositeId)
      Add a date parameter value to the whole-system batch statement
      void addProfile​(long logicalResourceId, long canonicalId, java.lang.String version, java.lang.String fragment)
      Add a profile parameter value to the whole-system batch statement
      void addResourceTokenRef​(long logicalResourceId, int parameterNameId, long commonTokenValueId)
      Add a token parameter value to the batch statement
      void addSecurity​(long logicalResourceId, long commonTokenValueId)
      Add a security parameter value to the whole-system batch statement
      void addString​(long logicalResourceId, int parameterNameId, java.lang.String strValue, java.lang.String strValueLower)
      Add a string parameter value to the whole-system batch statement
      void addTag​(long logicalResourceId, long commonTokenValueId)
      Add a tag parameter value to the whole-system batch statement
      void close()
      Closes all the statements currently open
      void pushBatch()
      Push the current batch
      • Methods inherited from class java.lang.Object

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

      • PlainPostgresSystemParameterBatch

        public PlainPostgresSystemParameterBatch​(java.sql.Connection c)
        Public constructor
        Parameters:
        c -
    • Method Detail

      • pushBatch

        public void pushBatch()
                       throws java.sql.SQLException
        Push the current batch
        Throws:
        java.sql.SQLException
      • close

        public void close()
        Closes all the statements currently open
      • addString

        public void addString​(long logicalResourceId,
                              int parameterNameId,
                              java.lang.String strValue,
                              java.lang.String strValueLower)
                       throws java.sql.SQLException
        Add a string parameter value to the whole-system batch statement
        Parameters:
        logicalResourceId -
        parameterNameId -
        strValue -
        strValueLower -
        Throws:
        java.sql.SQLException
      • addDate

        public void addDate​(long logicalResourceId,
                            int parameterNameId,
                            java.sql.Timestamp dateStart,
                            java.sql.Timestamp dateEnd,
                            java.lang.Integer compositeId)
                     throws java.sql.SQLException
        Add a date parameter value to the whole-system batch statement
        Parameters:
        logicalResourceId -
        parameterNameId -
        dateStart -
        dateEnd -
        compositeId -
        Throws:
        java.sql.SQLException
      • addResourceTokenRef

        public void addResourceTokenRef​(long logicalResourceId,
                                        int parameterNameId,
                                        long commonTokenValueId)
                                 throws java.sql.SQLException
        Add a token parameter value to the batch statement
        Parameters:
        logicalResourceId -
        parameterNameId -
        commonTokenValueId -
        Throws:
        java.sql.SQLException
      • addTag

        public void addTag​(long logicalResourceId,
                           long commonTokenValueId)
                    throws java.sql.SQLException
        Add a tag parameter value to the whole-system batch statement
        Parameters:
        logicalResourceId -
        commonTokenValueId -
        Throws:
        java.sql.SQLException
      • addProfile

        public void addProfile​(long logicalResourceId,
                               long canonicalId,
                               java.lang.String version,
                               java.lang.String fragment)
                        throws java.sql.SQLException
        Add a profile parameter value to the whole-system batch statement
        Parameters:
        logicalResourceId -
        canonicalId -
        version -
        fragment -
        Throws:
        java.sql.SQLException
      • addSecurity

        public void addSecurity​(long logicalResourceId,
                                long commonTokenValueId)
                         throws java.sql.SQLException
        Add a security parameter value to the whole-system batch statement
        Parameters:
        logicalResourceId -
        commonTokenValueId -
        Throws:
        java.sql.SQLException