Java Doc for SQLDBModelImpl.java in  » IDE-Netbeans » etl.project » org » netbeans » modules » sql » framework » model » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » etl.project » org.netbeans.modules.sql.framework.model.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.sql.framework.model.impl.AbstractSQLObject
      org.netbeans.modules.sql.framework.model.impl.SQLDBModelImpl

All known Subclasses:   org.netbeans.modules.mashup.db.model.impl.FlatfileDatabaseModelImpl,  org.netbeans.modules.sql.framework.model.impl.RuntimeDatabaseModelImpl,
SQLDBModelImpl
public class SQLDBModelImpl extends AbstractSQLObject implements Cloneable,SQLDBModel(Code)
SQLBuilder-specific concrete implementation of DatabaseModel interface.
author:
   Jonathan Giron
version:
   $Revision$


Field Summary
final protected static  intINIT_XMLBUF_SIZE
    
protected  DBConnectionDefinitionconnectionDefinition
    
protected volatile  Stringdescription
    
protected volatile  Stringname
    
protected transient  ETLObjectsource
    
protected  Maptables
    

Constructor Summary
public  SQLDBModelImpl()
     Constructs a new default instance of SQLDBModelImpl.
public  SQLDBModelImpl(int type)
    
public  SQLDBModelImpl(DatabaseModel src, int modelType, SQLFrameworkParentObject sqlParent)
     Creates a new instance of SQLDBModelImpl, cloning the contents of the given DatabaseModel implementation instance.

Method Summary
public  voidaddTable(SQLDBTable table)
     Adds table to this instance.
public  voidclearOverride(boolean clearCatalogOverride, boolean clearSchemaOverride)
    
public  Objectclone()
     Clones this object.
public  booleancontainsTable(SQLDBTable table)
    
public  voidcopyFrom(DatabaseModel src)
     Copies member values to those contained in the given DatabaseModel instance.
public  voidcopyFrom(DatabaseModel src, int objType)
     Copies member values to those contained in the given DatabaseModel instance, using the given value for object type.
public  DBTablecreateTable(String tableName, String schemaName, String catalogName)
     Create DBTable instance with the given table, schema, and catalog names.
public  booleandeleteAllTables()
     Deletes all tables associated with this data source.
public  booleandeleteTable(String fqTableName)
     Delete table from the SQLDataSource
Parameters:
  fqTableName - fully qualified name of table to be deleted.
public  booleanequals(Object refObj)
    
public synchronized  MapgetAllSQLTables()
    
public  ListgetAllTables(String tableName, String schemaName, String catalogName)
    
public  ListgetChildSQLObjects()
     Gets List of child SQLObjects belonging to this instance.
public  DBConnectionDefinitiongetConnectionDefinition()
    
public  DBConnectionDefinitiongetETLDBConnectionDefinition()
    
public  StringgetFooter()
    
public  StringgetFullyQualifiedTableName(DBTable tbl)
    
public  StringgetFullyQualifiedTableName(String tblName, String schName, String catName)
    
public  StringgetHeader()
    
public  StringgetModelDescription()
    
public  StringgetModelName()
    
public  SQLObjectgetObject(String objectId)
     Gets SQLObject, if any, having the given object ID.
public  StringgetRefKey()
    
public  ETLObjectgetSource()
     Gets repository object, if any, providing underlying data for this DatabaseModel implementation.
public  DBTablegetTable(String fqTableName)
    
public  DBTablegetTable(String tableName, String schemaName, String catalogName)
    
public  MapgetTableMap()
     Gets a read-only Map of table names to available DBTable instances in this model.
public  HashMap<String, Property>getTableMetaData(DBConnectionDefinition conndef, SQLDBTable element)
    
public  ListgetTables()
    
public  inthashCode()
     Overrides default implementation to compute hashCode value for those members used in equals() for comparison.
public  voidoverrideCatalogNames(Map catalogOverride)
    
public  voidoverrideSchemaNames(Map schemaOverride)
    
protected  voidparseSourceTables(NodeList tableNodeList)
     Extracts SourceTable instances from the given NodeList.
protected  voidparseTargetTables(NodeList tableNodeList)
     Extracts TargetTable instances from the given NodeList.
public  voidparseXML(Element dbElement)
     Parses the XML content, if any, using the given Element as a source for reconstituting the member variables and collections of this instance.
public  voidsetConnectionDefinition(DBConnectionDefinition dbConnectionDef)
    
public  voidsetDescription(String newDesc)
    
public  voidsetModelName(String name)
    
public  voidsetRefKey(String aKey)
    
public  voidsetSQLFrameworkParentObject(SQLFrameworkParentObject aParent)
    
public  voidsetSource(ETLObject obj)
     Sets repository object, if any, providing underlying data for this DatabaseModel implementation.
public  StringtoString()
     Overrides default implementation to return name of this DatabaseModel.
public  StringtoXMLString(String prefix)
     Gets xml representation of this DatabaseModel instance.
Parameters:
  prefix - for this xml.
protected  voidwriteTables(String prefix, StringBuilder xml)
    

Field Detail
INIT_XMLBUF_SIZE
final protected static int INIT_XMLBUF_SIZE(Code)
Initial buffer size for StringBuilder used in marshaling Databases to XML



connectionDefinition
protected DBConnectionDefinition connectionDefinition(Code)
Connection definition used to retrieve metadata



description
protected volatile String description(Code)
User-supplied description



name
protected volatile String name(Code)
User-supplied name



source
protected transient ETLObject source(Code)



tables
protected Map tables(Code)
Map of DBTable instances




Constructor Detail
SQLDBModelImpl
public SQLDBModelImpl()(Code)
Constructs a new default instance of SQLDBModelImpl.



SQLDBModelImpl
public SQLDBModelImpl(int type)(Code)



SQLDBModelImpl
public SQLDBModelImpl(DatabaseModel src, int modelType, SQLFrameworkParentObject sqlParent)(Code)
Creates a new instance of SQLDBModelImpl, cloning the contents of the given DatabaseModel implementation instance.
Parameters:
  src - DatabaseModel instance to be cloned
Parameters:
  modelType - model type, either SOURCE_DBMODEL or TARGET_DBMODEL
See Also:   SQLConstants.SOURCE_DBMODEL
See Also:   SQLConstants.TARGET_DBMODEL




Method Detail
addTable
public void addTable(SQLDBTable table) throws IllegalStateException(Code)
Adds table to this instance.
Parameters:
  table - new table to add
throws:
  IllegalStateException - if unable to add table



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 thisinstance



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 thisinstance
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.



equals
public boolean equals(Object refObj)(Code)

See Also:   java.lang.Object.equals



getAllSQLTables
public synchronized 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



getChildSQLObjects
public List getChildSQLObjects()(Code)
Gets List of child SQLObjects belonging to this instance. List of child SQLObjects



getConnectionDefinition
public DBConnectionDefinition getConnectionDefinition()(Code)
Gets SQLDBConnectionDefinition of the SQLDataSource object ConnectionDefinition of the SQLDataSource object



getETLDBConnectionDefinition
public DBConnectionDefinition getETLDBConnectionDefinition() throws BaseException(Code)
Gets SQLDBConnectionDefinition of the SQLDataSource object ConnectionDefinition of the SQLDataSource object



getFooter
public String getFooter()(Code)

See Also:   org.netbeans.modules.sql.framework.model.impl.AbstractSQLObject.getFooter



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(java.lang.Stringjava.lang.Stringjava.lang.String)



getHeader
public String getHeader()(Code)

See Also:   org.netbeans.modules.sql.framework.model.impl.AbstractSQLObject.getHeader



getModelDescription
public String getModelDescription()(Code)

See Also:   org.netbeans.modules.model.database.DatabaseModel.getModelDescription



getModelName
public String getModelName()(Code)

See Also:   org.netbeans.modules.model.database.DatabaseModel.getModelName



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 objectexists.



getRefKey
public String getRefKey()(Code)



getSource
public ETLObject getSource()(Code)
Gets repository object, if any, providing underlying data for this DatabaseModel implementation. ETLObject hosting this object's metadata, or null if data are notheld by a ETLObject.



getTable
public DBTable getTable(String fqTableName)(Code)

See Also:   org.netbeans.modules.model.database.DatabaseModel.getTable(java.lang.String)
See Also:   fully qualified name should be catalog.schema.table.id



getTable
public DBTable getTable(String tableName, String schemaName, String catalogName)(Code)
NOTE: This method will return first matching table, since now we allow duplicate tables, so if you want to get specific table use getFullyQualifiedTableName(DBTable tbl) to generate a qualified name which includes object id then call getTable(fqName)
See Also:   org.netbeans.modules.model.database.DatabaseModel.getTable(java.lang.Stringjava.lang.Stringjava.lang.String)



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



getTableMetaData
public HashMap<String, Property> getTableMetaData(DBConnectionDefinition conndef, SQLDBTable element)(Code)

Parameters:
  condef -
Parameters:
  element -



getTables
public List getTables()(Code)

See Also:   org.netbeans.modules.model.database.DatabaseModel.getTables



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)



parseSourceTables
protected void parseSourceTables(NodeList tableNodeList) throws BaseException(Code)
Extracts SourceTable instances from the given NodeList.
Parameters:
  tableNodeList - Nodes to be unmarshaled
throws:
  BaseException - if error occurs while parsing



parseTargetTables
protected void parseTargetTables(NodeList tableNodeList) throws BaseException(Code)
Extracts TargetTable instances from the given NodeList.
Parameters:
  tableNodeList - Nodes to be unmarshaled
throws:
  BaseException - if error occurs while parsing



parseXML
public void parseXML(Element dbElement) throws BaseException(Code)
Parses the XML content, if any, using the given Element as a source for reconstituting the member variables and collections of this instance.
Parameters:
  dbElement - DOM element containing XML marshalled version of a
exception:
  BaseException - thrown while parsing XML, or if member variable element isnull



setConnectionDefinition
public void setConnectionDefinition(DBConnectionDefinition dbConnectionDef)(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 name)(Code)

See Also:   org.netbeans.modules.model.database.DatabaseModel.getModelName



setRefKey
public void setRefKey(String aKey)(Code)



setSQLFrameworkParentObject
public void setSQLFrameworkParentObject(SQLFrameworkParentObject aParent)(Code)



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.



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)
Gets xml representation of this DatabaseModel instance.
Parameters:
  prefix - for this xml. Return the xml representation of data source metadata.
exception:
  BaseException - -exception



writeTables
protected void writeTables(String prefix, StringBuilder xml) throws BaseException(Code)
Write table
Parameters:
  prefix - -prefix
Parameters:
  xml - -StringBuilder
throws:
  BaseException - -exception



Fields inherited from org.netbeans.modules.sql.framework.model.impl.AbstractSQLObject
protected Map attributes(Code)(Java Doc)
protected transient String displayName(Code)(Java Doc)
protected transient String id(Code)(Java Doc)
protected transient String objectType(Code)(Java Doc)
protected transient Object parentObject(Code)(Java Doc)
protected int type(Code)(Java Doc)

Methods inherited from org.netbeans.modules.sql.framework.model.impl.AbstractSQLObject
public Object cloneSQLObject() throws CloneNotSupportedException(Code)(Java Doc)
public void copyFromSource(SQLObject source)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public Attribute getAttribute(String attrName)(Code)(Java Doc)
public Collection getAttributeNames()(Code)(Java Doc)
public Object getAttributeObject(String attrName)(Code)(Java Doc)
public List getChildSQLObjects()(Code)(Java Doc)
public String getDisplayName()(Code)(Java Doc)
public String getFooter()(Code)(Java Doc)
public String getHeader()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public int getJdbcType()(Code)(Java Doc)
public int getObjectType()(Code)(Java Doc)
public SQLObject getOutput(String argName) throws BaseException(Code)(Java Doc)
public Object getParentObject()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
protected void parseCommonAttributesAndTags(Element xmlElement) throws BaseException(Code)(Java Doc)
public void parseXML(Element xmlElement) throws BaseException(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void secondPassParse(Element element) throws BaseException(Code)(Java Doc)
public void setAttribute(String attrName, Object val)(Code)(Java Doc)
public void setDisplayName(String newName)(Code)(Java Doc)
public void setId(String newId) throws BaseException(Code)(Java Doc)
public void setJdbcType(int newType)(Code)(Java Doc)
public void setParentObject(Object newParent) throws BaseException(Code)(Java Doc)
protected String toXMLAttributeTags(String prefix)(Code)(Java Doc)
public String toXMLString(String prefix) throws BaseException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

ww__w.__j___a___v___a2___s._co___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.