@Override
   protected String updateQuery(String sql)
   {
      try
      {
         Matcher tMatcher;
         if ((creatSequencePattern.matcher(sql)).find())
         {
            tMatcher = dbObjectNamePattern.matcher(sql);
            if (tMatcher.find())
            {
               if (sql.substring(tMatcher.start(), tMatcher.end()).equals("JCR_" + DBInitializerHelper.getItemTableSuffix(containerConfig) + "SEQ"))
               {
                  sql = (containerConfig.useSequenceForOrderNumber) ? sql.concat(" Start with " + Integer.toString(getSequenceStartValue(connection) + 1)) : "";

               }
            }
         }
      }
      catch (SQLException e)
      {
         LOG.debug("SQLException occurs while update the sequence start value", e);
      }
      return sql;
   }
@ Override protected String updateQuery ( String sql ) { try { Matcher tMatcher ; if ( ( creatSequencePattern . matcher ( sql ) ) . find ( ) ) { tMatcher = dbObjectNamePattern . matcher ( sql ) ; if ( tMatcher . find ( ) ) { if ( sql . substring ( tMatcher . start ( ) , tMatcher . end ( ) ) . equals ( "JCR_" + DBInitializerHelper . getItemTableSuffix ( containerConfig ) + "SEQ" ) ) { sql = ( containerConfig . useSequenceForOrderNumber ) ? sql . concat ( " Start with " + Integer . toString ( getSequenceStartValue ( connection ) + 1 ) ) : "" ; } } } } catch ( SQLException e ) { LOG . debug ( "SQLException occurs while update the sequence start value" , e ) ; } return sql ; }
{@inheritDoc}