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

## biouml.plugins.simulation.access
Class SimulationResultSqlTransformer

    java.lang.Object
      ru.biosoft.access.SqlTransformerSupport
          biouml.plugins.simulation.access.SimulationResultSqlTransformer

All Implemented Interfaces:
  SqlTransformer

public class SimulationResultSqlTransformer
extends SqlTransformerSupport

Field Summary

Fields inherited from class ru.biosoft.access.SqlTransformerSupport
`owner, table`

Constructor Summary
`SimulationResultSqlTransformer()`

Method Summary
`void` | `addDeleteCommands(java.sql.Statement statement, java.lang.String name)` Adds set of SQL commands to the statement to remove data element from the table.
`void` | `addInsertCommands(java.sql.Statement statement, DataElement de)` Adds set of SQL commands to the statement to insert data element into the table.
`DataElement` | `create(java.sql.ResultSet resultSet, java.sql.Connection connection)` Extracts all needed fields from resultSet, and create instance of DataElement.
`java.lang.String` | `getSelectQuery()` Creates SQL query for extracting all data elements from table.
`java.lang.Class` | `getTemplateClass()` Returns class of object.

Methods inherited from class ru.biosoft.access.SqlTransformerSupport
`addUpdateCommands, getCountQuery, getElementExistsQuery, getElementQuery, getNameListQuery, getTable, init, validateValue`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SimulationResultSqlTransformer

    public SimulationResultSqlTransformer()

Method Detail

### getTemplateClass

    public java.lang.Class getTemplateClass()

  Description copied from interface: `SqlTransformer`
  Returns class of object.

  Returns:
    Class of transformed object.
  See Also:
    `#create(java.sql.ResultSet)`

### getSelectQuery

    public java.lang.String getSelectQuery()

  Description copied from interface: `SqlTransformer`
  Creates SQL query for extracting all data elements from table.

  Returns:
    SQL query for extracting all data elements from table.

### create

    public DataElement create(java.sql.ResultSet resultSet,
                              java.sql.Connection connection)
                       throws java.lang.Exception

  Description copied from interface: `SqlTransformer`
  Extracts all needed fields from resultSet, and create instance of DataElement. If necessary the method can use additional queries to get needed data using the specified connection.

  Parameters:
    `resultSet` - ResultSet from DBMS.
    `connection` - to be used if additional query is needed.
  Returns:
    created data element.
  Throws:
    `java.lang.Exception`
  See Also:
    `SqlTransformer.getTemplateClass()`

### addInsertCommands

    public void addInsertCommands(java.sql.Statement statement,
                                  DataElement de)
                           throws java.sql.SQLException

  Description copied from interface: `SqlTransformer`
  Adds set of SQL commands to the statement to insert data element into the table.

  Parameters:
    `statement` - - statement to which SQL commands should be added.
    `de` - - object for which INSERT statements will be generated.
  Throws:
    `java.sql.SQLException`

### addDeleteCommands

    public void addDeleteCommands(java.sql.Statement statement,
                                  java.lang.String name)
                           throws java.lang.Exception

  Description copied from class: `SqlTransformerSupport`
  Adds set of SQL commands to the statement to remove data element from the table.

  Specified by:
    `addDeleteCommands` in interface `SqlTransformer`
  Overrides:
    `addDeleteCommands` in class `SqlTransformerSupport`
  Parameters:
    `statement` - - statement to which SQL commands should be added.
  Throws:
    `java.lang.Exception`

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

Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.