de.esprit.appsuite.database.dbase

## Class SqlIterator

- java.lang.Object
- - de.esprit.appsuite.database.dbase.SqlIterator

-     public class SqlIterator
      extends java.lang.Object

  This Iterator reads the given text and splits it up into a list of SQL statements. Comments of any kind are removed and each SQL statement appears as a stuffed single line output.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SqlIterator(java.io.File file)`
    `SqlIterator(java.lang.String text)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String[]` | `getStatementList()` Returns an array of all SQL statements found in the script
    `boolean` | `hasNext()` Tells whether there are more SQL statements to fetch
    `static void` | `main(java.lang.String[] args)`
    `java.lang.String` | `next()` Fetches the next SQL statement from the buffer

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SqlIterator

          public SqlIterator(java.io.File file)
                      throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### SqlIterator

          public SqlIterator(java.lang.String text)

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Tells whether there are more SQL statements to fetch

    - #### next

          public java.lang.String next()

      Fetches the next SQL statement from the buffer

    - #### getStatementList

          public java.lang.String[] getStatementList()

      Returns an array of all SQL statements found in the script

    - #### main

          public static void main(java.lang.String[] args)

Copyright © 2014 EsprIT-Systems. All Rights Reserved.