Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## toolkit.db.queryoptimization
Interface Optimizer

    public interface Optimizer

Interface Optimizer wraps information returned from query optimizer.

Method Summary
`java.lang.String` | `getCancelMessage()` Gets the cancelled message.
`java.util.List<ColumnInfo>` | `getColumnInfos()` Gets the column information.
`java.lang.String` | `getOptimizedSqlString()` Gets the optimized sql statement.
`boolean` | `shouldBeCanceled()` Gets the flag whether JReport should cancel the SQL statement execution.

Method Detail

### getOptimizedSqlString

    java.lang.String getOptimizedSqlString()

  Gets the optimized sql statement.

  Returns:
    the optimized sql statement.

### getColumnInfos

    java.util.List<ColumnInfo> getColumnInfos()

  Gets the column information. Each column information contains a mapping name and column index of where this column should appear in Select clause of the sql string. 1 means the first one, 2 means the second one, etc. -1 means uncertain and it may be decided by the real resultset meta data. Refer to ColumnInfo.

### shouldBeCanceled

    boolean shouldBeCanceled()

  Gets the flag whether JReport should cancel the SQL statement execution.

  Returns:
    the optimized sql statement.

### getCancelMessage

    java.lang.String getCancelMessage()

  Gets the cancelled message.

  Returns:
    the cancelled message.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD