org.eclipse.datatools.modelbase.sql.query.util
Class SQLQuerySourceWriterProvider
java.lang.Object
   org.eclipse.datatools.modelbase.sql.query.util.SQLQuerySourceWriterProvider
org.eclipse.datatools.modelbase.sql.query.util.SQLQuerySourceWriterProvider
- public class SQLQuerySourceWriterProvider 
- extends java.lang.Object
Singleton SQLQuerySourceWriterProvider holds a registry of
 SQLQuerySourceWriter extensions and creates instances of
 SQLQuerySourceWriters, that are registered for a specific
 SQLQueryObject Package.
 As plugin in an eclipse runtime environment, the registration of
 SQLQuerySourceWriter for a package of
 SQLQueryObject extensions is done at start time of the plugin
 containing the SQL Query model extension.
 The registry is implemented following the lazy loading
 startegy and the plugin extending the SQL Query model plugin is only loaded
 the first time a SQLQueryObject is
 instanciated in the extending plugin.
- Author:
- ckadner
| Method Summary | 
| static SQLQuerySourceWriterProvider | getInstance()
 | 
|  void | registerSourceWriter(java.lang.Class sourceWriterClass,
                     java.lang.String sqlModelObjectsPackageName)Method to register a subclass of the
 SQLQuerySourceWriterfor a specific package ofSQLQueryObjects, that the givensourceWriterClassgenerates the SQL source for. | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
getInstance
public static SQLQuerySourceWriterProvider getInstance()
- 
- Returns:
- the singleton SQLQuerySourceWriterProviderinstance
 
registerSourceWriter
public void registerSourceWriter(java.lang.Class sourceWriterClass,
                                 java.lang.String sqlModelObjectsPackageName)
- Method to register a subclass of the SQLQuerySourceWriterfor a specific package ofSQLQueryObjects, that the givensourceWriterClassgenerates the SQL source for. Note:
  there can only be oneSQLQuerySourceWriterfor one
 package ofSQLQueryObjects, however oneSQLQuerySourceWritercan generate the SQL source for
 multiple packages ofSQLQueryObjects. In general an
 extension of aSQLQuerySourceWritergoes along with an
 extension to theSQLQueryObjectmodel. Developer note:
  if the name and packaging of theSQLQuerySourceWriterfollows the naming convention described in the class documentaion
 section, theSQLQuerySourceWriterwill be registered
 automatically via@link java.lang.reflect.*
 
- 
- Parameters:
- sourceWriterClass- the- SQLQuerySourceWriterclass that generates
            the SQL source for the- SQLQueryObjects in the
            given- sqlModelObjectsPackage
- sqlModelObjectsPackageName- fully qualified package name of- SQLQueryObjects