| org.netbeans.modules.sql.framework.model.impl.SQLDBModelImpl org.netbeans.modules.mashup.db.model.impl.FlatfileDatabaseModelImpl
FlatfileDatabaseModelImpl | public class FlatfileDatabaseModelImpl extends SQLDBModelImpl implements FlatfileDatabaseModel,Cloneable(Code) | | Flatfile DB specific concrete implementation of DatabaseModel interface.
author: Jonathan Giron author: Girish Patil author: Ahimanikya Satapathy version: $Revision$ |
Method Summary | |
public void | addTable(FlatfileDBTable table) Adds new SourceTable to the model. | public Object | clone() Clones this object. | public void | copyFrom(DatabaseModel src) Copies member values from those contained in the given DatabaseModel instance. | public void | copyFrom(FlatfileDatabaseModel src) Copies member values from those contained in the given FlatfileDatabaseModel
instance. | public DBTable | createTable(String tableName, String schemaName, String catalogName) Create DBTable instance with the given table, schema, and catalog names. | public boolean | equals(Object refObj) | public String | getConnectionName() Gets name of DBConnectionDefinition associated with this database model. | public FlatfileDBTable | getFileMatchingFileName(String aName) | public FlatfileDBTable | getFileMatchingTableName(String tableName) Gets Flatfile instance, if any, whose table name matches the given String. | public DBConnectionDefinition | getFlatfileDBConnectionDefinition(boolean download) | public Map | getFlatfileTablePropertyMap(String flatfileName) | public Map | getFlatfileTablePropertyMaps() | public String | getFullyQualifiedTableName(DBTable tbl) | public String | getFullyQualifiedTableName(String tblName, String schName, String catName) | public Connection | getJDBCConnection() | public Connection | getJDBCConnection(ClassLoader cl) | public Connection | getJDBCConnection(Properties props) | public Connection | getJDBCConnection(Properties props, ClassLoader cl) | public Connection | getJDBCConnection(String jdbcUrl, String uid, String passwd) | public Connection | getJDBCConnection(String jdbcUrl, String uid, String passwd, ClassLoader cl) | public String | getJDBCDriverClassName() | public List | getJDBCDriverClassNames() | public int | getJDBCDriverType() | public int | getJDBCDriverTypes(String arg0) | public int | getMajorVersion() | public int | getMicroVersion() | public int | getMinorVersion() | public ETLObject | getSource() Gets repository object, if any, providing underlying data for this DatabaseModel
implementation. | public String | getVersionString() | public int | hashCode() Overrides default implementation to compute hashCode value for those members used
in equals() for comparison. | protected void | parseAttributes(Element xmlElement) | protected void | parseTablesMap(Element mapNode) | public void | parseXML(Element xmlElement) Unmarshal this object from XML element. | public void | setConnectionDefinition(DBConnectionDefinition theConnectionDefinition) | public void | setConnectionName(String theConName) | void | setMajorVersion(int newMajor) Sets major version number. | void | setMicroVersion(int newMicro) Sets micro version number. | void | setMinorVersion(int newMinor) Sets minor version number. | public void | setSource(FlatfileDefinition obj) Sets repository object, if any, providing underlying data for this DatabaseModel
implementation. | public void | setTables(Map theTables) | public String | toString() Overrides default implementation to return name of this DatabaseModel. | public String | toXMLString(String prefix) Marshall this object to XML string. |
connectionName | protected volatile String connectionName(Code) | | Connection name
|
FlatfileDatabaseModelImpl | public FlatfileDatabaseModelImpl()(Code) | | Constructs a new default instance of FlatfileDatabaseModelImpl.
|
FlatfileDatabaseModelImpl | public FlatfileDatabaseModelImpl(FlatfileDatabaseModel src)(Code) | | Creates a new instance of FlatfileDatabaseModelImpl, cloning the contents of the
given DatabaseModel implementation instance.
Parameters: src - DatabaseModel instance to be cloned |
FlatfileDatabaseModelImpl | public FlatfileDatabaseModelImpl(String modelName, DBConnectionDefinition connDef)(Code) | | Constructs a new instance of FlatfileDatabaseModelImpl of type SOURCE_DBMODEL,
using the given name and DBConnectionDefinition.
Parameters: modelName - name of new DatabaseModel Parameters: connDef - FlatfileDBConnectionDefinition for this new instance |
addTable | public void addTable(FlatfileDBTable table)(Code) | | Adds new SourceTable to the model.
Parameters: table - new DBTable to add |
clone | public Object clone()(Code) | | Clones this object.
shallow copy of this ETLDataSource |
copyFrom | public void copyFrom(DatabaseModel src)(Code) | | Copies member values from those contained in the given DatabaseModel instance.
|
copyFrom | public void copyFrom(FlatfileDatabaseModel src)(Code) | | Copies member values from those contained in the given FlatfileDatabaseModel
instance.
Parameters: src - DatabaseModel whose contents are to be copied into this instance |
createTable | public DBTable createTable(String tableName, String schemaName, String catalogName)(Code) | | Create DBTable instance with the given table, schema, and catalog names.
Parameters: tableName - table name of new table Parameters: schemaName - schema name of new table Parameters: catalogName - catalog name of new table an instance of ETLTable if successful, null if failed. |
getConnectionName | public String getConnectionName()(Code) | | Gets name of DBConnectionDefinition associated with this database model.
name of associated DBConnectionDefinition instance |
getFileMatchingFileName | public FlatfileDBTable getFileMatchingFileName(String aName)(Code) | | Gets Flatfile instance, if any, whose file name matches the given String
Parameters: aName - file name to search for matching instance, if any, or null if no Flatfile matchesaName |
getFileMatchingTableName | public FlatfileDBTable getFileMatchingTableName(String tableName)(Code) | | Gets Flatfile instance, if any, whose table name matches the given String.
Parameters: tableName - table name to search for matching instance, if any, or null if no Flatfile matchesaName |
getFlatfileTablePropertyMap | public Map getFlatfileTablePropertyMap(String flatfileName)(Code) | | |
getFlatfileTablePropertyMaps | public Map getFlatfileTablePropertyMaps()(Code) | | |
getFullyQualifiedTableName | public String getFullyQualifiedTableName(DBTable tbl)(Code) | | See Also: org.netbeans.modules.model.database.DatabaseModel.getFullyQualifiedTableName(DBTable) |
getFullyQualifiedTableName | public String getFullyQualifiedTableName(String tblName, String schName, String catName)(Code) | | See Also: org.netbeans.modules.model.database.DatabaseModel.getFullyQualifiedTableName(StringStringString) |
getMajorVersion | public int getMajorVersion()(Code) | | |
getMicroVersion | public int getMicroVersion()(Code) | | |
getMinorVersion | public int getMinorVersion()(Code) | | |
getSource | public ETLObject getSource()(Code) | | Gets repository object, if any, providing underlying data for this DatabaseModel
implementation.
RepositoryObject hosting this object's metadata, or null if data are notheld by a Object. |
hashCode | public int hashCode()(Code) | | Overrides default implementation to compute hashCode value for those members used
in equals() for comparison.
hash code for this object See Also: java.lang.Object.hashCode |
parseAttributes | protected void parseAttributes(Element xmlElement)(Code) | | |
parseTablesMap | protected void parseTablesMap(Element mapNode) throws BaseException(Code) | | |
parseXML | public void parseXML(Element xmlElement) throws BaseException(Code) | | Unmarshal this object from XML element.
Parameters: xmlElement - |
setConnectionDefinition | public void setConnectionDefinition(DBConnectionDefinition theConnectionDefinition)(Code) | | Setter for FlatfileDBConnectionDefinition
Parameters: theConnectionDefinition - to be set |
setConnectionName | public void setConnectionName(String theConName)(Code) | | Sets the Connection Name associated with connection name
Parameters: theConName - associated with this DataSource |
setMajorVersion | void setMajorVersion(int newMajor)(Code) | | Sets major version number.
Parameters: newMajor - new major version number |
setMicroVersion | void setMicroVersion(int newMicro)(Code) | | Sets micro version number.
Parameters: newMicro - new micro version number |
setMinorVersion | void setMinorVersion(int newMinor)(Code) | | Sets minor version number.
Parameters: newMinor - new minor version number |
setSource | public void setSource(FlatfileDefinition obj)(Code) | | Sets repository object, if any, providing underlying data for this DatabaseModel
implementation.
Parameters: obj - Object hosting this object's metadata, or null if data are notheld by a Object. |
setTables | public void setTables(Map theTables)(Code) | | Setter for tables
Parameters: theTables - to be part of Model |
toString | public String toString()(Code) | | Overrides default implementation to return name of this DatabaseModel.
model name. |
toXMLString | public String toXMLString(String prefix) throws BaseException(Code) | | Marshall this object to XML string.
Parameters: prefix - XML string |
Methods inherited from org.netbeans.modules.sql.framework.model.impl.SQLDBModelImpl | public void addTable(SQLDBTable table) throws IllegalStateException(Code)(Java Doc) public void clearOverride(boolean clearCatalogOverride, boolean clearSchemaOverride)(Code)(Java Doc) public Object clone()(Code)(Java Doc) public boolean containsTable(SQLDBTable table)(Code)(Java Doc) public void copyFrom(DatabaseModel src)(Code)(Java Doc) public void copyFrom(DatabaseModel src, int objType)(Code)(Java Doc) public DBTable createTable(String tableName, String schemaName, String catalogName)(Code)(Java Doc) public boolean deleteAllTables()(Code)(Java Doc) public boolean deleteTable(String fqTableName)(Code)(Java Doc) public boolean equals(Object refObj)(Code)(Java Doc) public synchronized Map getAllSQLTables()(Code)(Java Doc) public List getAllTables(String tableName, String schemaName, String catalogName)(Code)(Java Doc) public List getChildSQLObjects()(Code)(Java Doc) public DBConnectionDefinition getConnectionDefinition()(Code)(Java Doc) public DBConnectionDefinition getETLDBConnectionDefinition() throws BaseException(Code)(Java Doc) public String getFooter()(Code)(Java Doc) public String getFullyQualifiedTableName(DBTable tbl)(Code)(Java Doc) public String getFullyQualifiedTableName(String tblName, String schName, String catName)(Code)(Java Doc) public String getHeader()(Code)(Java Doc) public String getModelDescription()(Code)(Java Doc) public String getModelName()(Code)(Java Doc) public SQLObject getObject(String objectId)(Code)(Java Doc) public String getRefKey()(Code)(Java Doc) public ETLObject getSource()(Code)(Java Doc) public DBTable getTable(String fqTableName)(Code)(Java Doc) public DBTable getTable(String tableName, String schemaName, String catalogName)(Code)(Java Doc) public Map getTableMap()(Code)(Java Doc) public HashMap<String, Property> getTableMetaData(DBConnectionDefinition conndef, SQLDBTable element)(Code)(Java Doc) public List getTables()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public void overrideCatalogNames(Map catalogOverride)(Code)(Java Doc) public void overrideSchemaNames(Map schemaOverride)(Code)(Java Doc) protected void parseSourceTables(NodeList tableNodeList) throws BaseException(Code)(Java Doc) protected void parseTargetTables(NodeList tableNodeList) throws BaseException(Code)(Java Doc) public void parseXML(Element dbElement) throws BaseException(Code)(Java Doc) public void setConnectionDefinition(DBConnectionDefinition dbConnectionDef)(Code)(Java Doc) public void setDescription(String newDesc)(Code)(Java Doc) public void setModelName(String name)(Code)(Java Doc) public void setRefKey(String aKey)(Code)(Java Doc) public void setSQLFrameworkParentObject(SQLFrameworkParentObject aParent)(Code)(Java Doc) public void setSource(ETLObject obj)(Code)(Java Doc) public String toString()(Code)(Java Doc) public String toXMLString(String prefix) throws BaseException(Code)(Java Doc) protected void writeTables(String prefix, StringBuilder xml) throws BaseException(Code)(Java Doc)
|
|
|