com.klg.jclass.datasource.jdbc
Class MetaDataCreator
java.lang.Object
|
+--com.klg.jclass.datasource.beans.MetaDataCreator
|
+--com.klg.jclass.datasource.jdbc.MetaDataCreator
- All Implemented Interfaces:
- Serializable
- public class MetaDataCreator
- extends MetaDataCreator
This class creates a MetaData for JDBC data source type.
- See Also:
NodeProperties
,
Serialized Form
Method Summary |
protected com.klg.jclass.datasource.MetaDataModel |
create(com.klg.jclass.datasource.DataModel data_model,
com.klg.jclass.datasource.MetaDataModel meta_parent,
com.klg.jclass.datasource.beans.NodeProperties comp)
Helper method to create a JDBC meta data. |
static com.klg.jclass.datasource.jdbc.DataTableConnection |
getJdbcConnection(com.klg.jclass.datasource.MetaDataModel meta_parent,
com.klg.jclass.datasource.beans.NodeProperties comp)
Helper method to get a Jdbc connection. |
static void |
resetJdbcConnection(com.klg.jclass.datasource.beans.NodeProperties comp)
Helper method to reset a Jdbc connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaDataCreator
public MetaDataCreator()
create
protected com.klg.jclass.datasource.MetaDataModel create(com.klg.jclass.datasource.DataModel data_model,
com.klg.jclass.datasource.MetaDataModel meta_parent,
com.klg.jclass.datasource.beans.NodeProperties comp)
throws DataModelException
- Helper method to create a JDBC meta data.
- Overrides:
create
in class MetaDataCreator
- Throws:
DataModelException
- If the operation failsto create a meta data.
getJdbcConnection
public static com.klg.jclass.datasource.jdbc.DataTableConnection getJdbcConnection(com.klg.jclass.datasource.MetaDataModel meta_parent,
com.klg.jclass.datasource.beans.NodeProperties comp)
throws DataModelException
- Helper method to get a Jdbc connection. At design-time, a static list
keeps track of all the connections. Thus, connections can be recycled.
- Throws:
DataModelException
- If the connection can't be made.
resetJdbcConnection
public static void resetJdbcConnection(com.klg.jclass.datasource.beans.NodeProperties comp)
- Helper method to reset a Jdbc connection.