Class ScriptExecutorImpl

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void executeScriptUrl​(java.lang.String scriptUrl)  
      static int getMaxStringLength()  
      void setDataSource​(javax.sql.DataSource dataSource)  
      void setDialect​(Dialect dialect)
      Sets the previously auto-detected Hibernate dialect.
      void setGlobalProperties​(java.util.Properties globalProperties)
      Sets the properties map from which we look up some configuration settings.
      static java.lang.String trimStringForTextFields​(java.lang.String value)
      Truncates or returns a string that will fit into the string columns in the schema.
      • Methods inherited from class java.lang.Object

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

      • ScriptExecutorImpl

        public ScriptExecutorImpl()
    • Method Detail

      • getMaxStringLength

        public static final int getMaxStringLength()
        Returns:
        Returns the maximum number of characters that a string field can be
      • trimStringForTextFields

        public static final java.lang.String trimStringForTextFields​(java.lang.String value)
        Truncates or returns a string that will fit into the string columns in the schema. Text fields can either cope with arbitrarily long text fields or have the default limit, DEFAULT_MAX_STRING_LENGTH.
        Parameters:
        value - the string to check
        Returns:
        Returns a string that is short enough for getMaxStringLength()
        Since:
        3.2
      • setDialect

        public void setDialect​(Dialect dialect)
        Sets the previously auto-detected Hibernate dialect.
        Parameters:
        dialect - the dialect
      • setDataSource

        public void setDataSource​(javax.sql.DataSource dataSource)
      • setGlobalProperties

        public void setGlobalProperties​(java.util.Properties globalProperties)
        Sets the properties map from which we look up some configuration settings.
        Parameters:
        globalProperties - the global properties
      • executeScriptUrl

        public void executeScriptUrl​(java.lang.String scriptUrl)
                              throws java.lang.Exception
        Specified by:
        executeScriptUrl in interface ScriptExecutor
        Throws:
        java.lang.Exception