| java.lang.Object com.completex.objective.components.persistency.meta.impl.AbstractDatabaseModelLoader
All known Subclasses: com.completex.objective.components.persistency.meta.impl.QueryModelLoaderImpl, com.completex.objective.components.persistency.meta.impl.DatabaseModelLoaderImpl,
AbstractDatabaseModelLoader | abstract public class AbstractDatabaseModelLoader (Code) | | author: Gennady Krizhevsky |
Inner Class :static class ColumnInfo | |
Method Summary | |
protected void | closeConnection(Connection connection) | protected void | closeRs(ResultSet rs) | abstract protected ColumnType | columnType(String dataType, int columnSize, int decimalDigits, boolean required) | abstract protected void | debug(String message) | protected MetaColumn | defineColumn(MetaModel model, MetaTable table, String columnName, int jdbcType, ColumnType columnType, String nullable, String remarks, String defaultValue, int columnSize, int decimalDigits, DatabaseModelLoaderImpl.ColumnInfo columnInfo) | protected void | defineForeignKey(MetaModel model, String fkTable, String tableName, ForeignKeyEntry foreignKeyEntry) | protected void | definePrimaryKey(MetaModel model, String tableName, String pkColumnName) | protected MetaTable | defineTable(MetaModel model, String tableName) | protected Collection | getForeignKeys(MetaModel metaModel, DatabaseMetaData dbMeta, String dbSchema, String tableName) Retrieves a list of foreign key columns for a given table.
Parameters: dbMeta - JDBC metadata. Parameters: tableName - Table from which to retrieve FK information. | abstract protected void | info(String message) | public MetaModel | load() | abstract public MetaModel | load(MetaModel model) | protected void | populateForeignKeysToModel(MetaModel model, String tableName, Collection foreignKeys) | protected BasicQuery | prepareQuery(QueryFactoryBase factory, HashSet seenNames) |
AbstractDatabaseModelLoader | protected AbstractDatabaseModelLoader()(Code) | | |
AbstractDatabaseModelLoader | protected AbstractDatabaseModelLoader(String filterPattern)(Code) | | |
columnType | abstract protected ColumnType columnType(String dataType, int columnSize, int decimalDigits, boolean required)(Code) | | |
defineColumn | protected MetaColumn defineColumn(MetaModel model, MetaTable table, String columnName, int jdbcType, ColumnType columnType, String nullable, String remarks, String defaultValue, int columnSize, int decimalDigits, DatabaseModelLoaderImpl.ColumnInfo columnInfo)(Code) | | |
|
|