| org.netbeans.modules.sql.framework.model.SQLDBModel
All known Subclasses: org.netbeans.modules.sql.framework.model.impl.SQLDBModelImpl,
Method Summary | |
public void | addTable(SQLDBTable table) Adds table to this instance. | public void | clearOverride(boolean clearCatalogOverride, boolean clearSchemaOverride) | public Object | clone() Clones this object. | public boolean | containsTable(SQLDBTable table) | public void | copyFrom(DatabaseModel src) Copies member values to those contained in the given DatabaseModel instance. | public void | copyFrom(DatabaseModel src, int objType) Copies member values to those contained in the given DatabaseModel instance, using
the given value for object type. | public DBTable | createTable(String tableName, String schemaName, String catalogName) Create DBTable instance with the given table, schema, and catalog names. | public boolean | deleteAllTables() Deletes all tables associated with this data source. | public boolean | deleteTable(String fqTableName) Delete table from the SQLDataSource
Parameters: fqTableName - fully qualified name of table to be deleted. | public boolean | equals(Object refObj) | public Map | getAllSQLTables() | public List | getAllTables(String tableName, String schemaName, String catalogName) | public DBConnectionDefinition | getETLDBConnectionDefinition() | public SQLObject | getObject(String objectId) Gets SQLObject, if any, having the given object ID. | public String | getRefKey() | public Map | getTableMap() Gets a read-only Map of table names to available DBTable instances in this model. | public int | hashCode() Overrides default implementation to compute hashCode value for those members used
in equals() for comparison. | public void | overrideCatalogNames(Map catalogOverride) | public void | overrideSchemaNames(Map schemaOverride) | public void | setConnectionDefinition(DBConnectionDefinition dbConnectionDef) | public void | setDescription(String newDesc) | public void | setModelName(String theName) | public void | setRefKey(String aKey) | public void | setSQLFrameworkParentObject(SQLFrameworkParentObject aParent) | public void | setSource(ETLObject obj) Sets repository object, if any, providing underlying data for this DatabaseModel
implementation. |
MODEL_TAG | final public static String MODEL_TAG(Code) | | Constant for DatabaseModel metadata name tag.
|
NAME | final public static String NAME(Code) | | String constant for model name tag.
|
PROJECTPATH | final public static String PROJECTPATH(Code) | | String constant for absolute path to owning project
|
REFID | final public static String REFID(Code) | | String constant for reference ID.
|
REFKEY | final public static String REFKEY(Code) | | String constant for Database reference key ID.
|
STRTYPE_SOURCE | final public static String STRTYPE_SOURCE(Code) | | String constant indicating source type
|
STRTYPE_TARGET | final public static String STRTYPE_TARGET(Code) | | String constant indicating source type
|
clearOverride | public void clearOverride(boolean clearCatalogOverride, boolean clearSchemaOverride)(Code) | | |
clone | public Object clone()(Code) | | Clones this object.
shallow copy of this SQLDataSource |
containsTable | public boolean containsTable(SQLDBTable table)(Code) | | check if a table exists This will check if a table is in database model,
|
copyFrom | public void copyFrom(DatabaseModel src)(Code) | | Copies member values to those contained in the given DatabaseModel instance.
Parameters: src - DatabaseModel whose contents are to be copied into this instance |
copyFrom | public void copyFrom(DatabaseModel src, int objType)(Code) | | Copies member values to those contained in the given DatabaseModel instance, using
the given value for object type.
Parameters: src - DatabaseModel whose contents are to be copied into this instance Parameters: objType - type of object (SOURCE_DBMODEL or TARGET_DBMODEL) |
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 SQLTable if successful, null if failed. |
deleteAllTables | public boolean deleteAllTables()(Code) | | Deletes all tables associated with this data source.
true if all tables were deleted successfully, false otherwise. |
deleteTable | public boolean deleteTable(String fqTableName)(Code) | | Delete table from the SQLDataSource
Parameters: fqTableName - fully qualified name of table to be deleted. true if successful. false if failed. |
getAllSQLTables | public Map getAllSQLTables()(Code) | | Gets the allTables attribute of the SQLDataSource object
The allTables value |
getAllTables | public List getAllTables(String tableName, String schemaName, String catalogName)(Code) | | get a list of tables based on table name, schema name and catalog name since we
allow duplicate tables this will return a list of tables
|
getETLDBConnectionDefinition | public DBConnectionDefinition getETLDBConnectionDefinition() throws BaseException(Code) | | Gets SQLDBConnectionDefinition of the SQLDataSource object
ConnectionDefinition of the SQLDataSource object |
getObject | public SQLObject getObject(String objectId)(Code) | | Gets SQLObject, if any, having the given object ID.
Parameters: objectId - ID of SQLObject being sought SQLObject associated with objectID, or null if no such object exists. |
getTableMap | public Map getTableMap()(Code) | | Gets a read-only Map of table names to available DBTable instances in this model.
readonly Map of table names to DBTable instances |
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 |
overrideCatalogNames | public void overrideCatalogNames(Map catalogOverride)(Code) | | |
overrideSchemaNames | public void overrideSchemaNames(Map schemaOverride)(Code) | | |
setDescription | public void setDescription(String newDesc)(Code) | | Sets the description string of this DatabaseModel
Parameters: newDesc - new description string |
setModelName | public void setModelName(String theName)(Code) | | See Also: org.netbeans.modules.model.database.DatabaseModel.getModelName |
setSource | public void setSource(ETLObject 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 ETLObject. |
|
|