biouml.standard.type.access
Class SpeciesSqlTransformer
java.lang.Object
ru.biosoft.access.SqlTransformerSupport
biouml.standard.type.access.SpeciesSqlTransformer
- All Implemented Interfaces:
- SqlTransformer
- public class SpeciesSqlTransformer
- extends SqlTransformerSupport
|
Method Summary |
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 |
SpeciesSqlTransformer
public SpeciesSqlTransformer()
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
Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.