org.eclipse.datatools.connectivity.sqm.loader
Interface JDBCRoutineLoader.IRoutineFactory

All Known Implementing Classes:
JDBCRoutineLoader.ProcedureFactory, JDBCRoutineLoader.UserDefinedFunctionFactory, SchemaASABaseLoader.ASABaseRoutineLoader.ASAProcedureFactory, SchemaASABaseLoader.ASABaseRoutineLoader.ASAUseDefinedFunctionFactory, SybaseASECatalogSchema.ASEProcedureFactory
Enclosing class:
JDBCRoutineLoader

public static interface JDBCRoutineLoader.IRoutineFactory

Interface for providing creation logic for routines.


Method Summary
 Routine createRoutine(java.sql.ResultSet rs)
          Creates and initializes a routine object based on the meta-data in the result set.
 org.eclipse.emf.ecore.EClass getRoutineEClass()
           
 void initialize(Routine routine, java.sql.ResultSet rs)
          Initializes a routine object based on the meta-data in the result set.
 

Method Detail

getRoutineEClass

org.eclipse.emf.ecore.EClass getRoutineEClass()
Returns:
the EClass used to represent the routine objects created by this factory. This is used to identify existing objects in the model during a refresh (e.g. to reuse the object, preventing external references from breaking).

createRoutine

Routine createRoutine(java.sql.ResultSet rs)
                      throws java.sql.SQLException
Creates and initializes a routine object based on the meta-data in the result set.

Parameters:
rs - the result set
Returns:
a new, initialized Routine object.
Throws:
java.sql.SQLException - if anything goes wrong

initialize

void initialize(Routine routine,
                java.sql.ResultSet rs)
                throws java.sql.SQLException
Initializes a routine object based on the meta-data in the result set. The routine object may be a new routine requiring initialization or an existing routine that is being reinitialized.

Parameters:
table - the table to initialize
rs - the result set
Throws:
java.sql.SQLException - if anything goes wrong