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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimulationResultSqlTransformer
public SimulationResultSqlTransformer()
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
Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.