biouml.standard.type.access
Class RelationTypeSqlTransformer

java.lang.Object
  extended byru.biosoft.access.SqlTransformerSupport
      extended bybiouml.standard.type.access.RelationTypeSqlTransformer
All Implemented Interfaces:
SqlTransformer

public class RelationTypeSqlTransformer
extends SqlTransformerSupport


Field Summary
 
Fields inherited from class ru.biosoft.access.SqlTransformerSupport
owner, table
 
Constructor Summary
RelationTypeSqlTransformer()
           
 
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 ru.biosoft.access.SqlTransformerSupport
addDeleteCommands, 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

RelationTypeSqlTransformer

public RelationTypeSqlTransformer()
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


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