Java Doc for DBTableImpl.java in  » IDE-Netbeans » sql.project » org » netbeans » modules » jdbcwizard » builder » dbmodel » 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 » sql.project » org.netbeans.modules.jdbcwizard.builder.dbmodel.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.jdbcwizard.builder.dbmodel.impl.DBTableImpl

DBTableImpl
public class DBTableImpl implements DBTable,Cloneable,Comparable(Code)
Reference implementation for interface com.stc.model.database.DBTable

Inner Class :static class StringComparator implements Comparator

Field Summary
protected  Stringcatalog
     catalog to which this table belongs.
protected  Mapcolumns
     Map of column metadata.
protected  ArrayListcolumnsInTableOrder
     Map of columns in the order the driver returns them.
protected  Stringdescription
    
protected  booleaneditable
    
protected  MapforeignKeys
     Map of names to ForeignKey instances for this table; may be empty.
protected  Mapindexes
     Map of names to Index instances for this table; may be empty.
protected  StringjavaName
    
protected  Stringname
     table name.
protected  DatabaseModelparent
     DatabaseModelImpl instance that "owns" this table.
protected  PrimaryKeyImplprimaryKey
     PrimaryKey for this table; may be null.
protected  Stringschema
     schema to which this table belongs.
protected  booleanselected
    
protected  Stringtype
    

Constructor Summary
public  DBTableImpl(String aName, String aSchema, String aCatalog)
     Creates a new instance of DBTableImpl with the given name.
public  DBTableImpl(String aName, String aSchema, String aCatalog, String aType)
     Creates a new instance of DBTableImpl with the given name.
public  DBTableImpl(DBTable src)
     Creates a new instance of DBTableImpl, cloning the contents of the given DBTable implementation instance.

Method Summary
public  booleanaddColumn(DBColumn theColumn)
     Adds a DBColumn instance to this table.
Parameters:
  theColumn - column to be added.
public  booleanaddForeignKey(ForeignKeyImpl newFk)
     Adds the given ForeignKeyImpl, associating it with this DBTableImpl instance.
public  booleanaddIndex(IndexImpl newIndex)
     Adds the given IndexImpl, associating it with this DBTableImpl instance.
public  voidclearForeignKeys()
     Clears list of foreign keys.
public  voidclearIndexes()
     Clears list of indexes.
public  Objectclone()
     Clone a deep copy of DBTable.
public  intcompareTo(Object refObj)
     Compares DBTable with another object for lexicographical ordering.
public  voidcopyFrom(DBTable source)
     Performs deep copy of contents of given DBTable.
public  DBColumnImplcreateColumn(String columnName, int jdbcType, int scale, int precision, boolean isPK, boolean isFK, boolean isIndexed, boolean nullable)
     Convenience class to create DBColumnImpl instance (with the given column name, data source name, JDBC type, scale, precision, and nullable), and add it to this DBTableImpl instance.
public  booleandeleteAllColumns()
     Deletes all columns associated with this table.
public  booleandeleteColumn(String columnName)
     Deletes DBColumn, if any, associated with the given name from this table.
Parameters:
  columnName - column name to be removed.
public  booleanequals(Object obj)
     Overrides default implementation to return value based on memberwise comparison.
public  StringgetCatalog()
    
public  DBColumngetColumn(String columnName)
    
public  ListgetColumnList()
    
public  ListgetColumnListInTablelOrder()
     Map of columns in the order the driver returns them.
public  MapgetColumns()
    
public  StringgetDescription()
    
public  ForeignKeygetForeignKey(String fkName)
    
public  ListgetForeignKeys()
    
public  IndexgetIndex(String indexName)
    
public  ListgetIndexes()
    
public  intgetJDBCType(String dbType)
    
public  StringgetJavaName()
     Gets Java name for this table.
public  StringgetName()
    
public  DatabaseModelgetParent()
    
public  PrimaryKeygetPrimaryKey()
    
public  ForeignKeygetReferenceFor(DBTable target)
    
public  SetgetReferencedTables()
    
public  StringgetSQLType(int type)
    
public  StringgetSchema()
    
public  StringgetType()
    
public  inthashCode()
     Overrides default implementation to compute hashCode value for those members used in equals() for comparison.
public  booleanisEditable()
    
public  booleanisSelected()
    
public  booleanisSelectedforAnOperation()
    
public  booleanreferences(DBTable pkTarget)
    
public  booleanremoveForeignKey(ForeignKeyImpl oldKey)
     Dissociates the given ForeignKeyImpl from this DBTableImpl instance, removing it from its internal FK collection.
public  booleansetAllColumns(Map theColumns)
     Clones contents of the given Map to this table's internal column map, overwriting any previous mappings.
Parameters:
  theColumns - Map of columns to be substituted true if successful.
public  voidsetCatalog(String newCatalog)
     Sets catalog name to new value.
public  voidsetDescription(String newDesc)
     Sets description text for this instance.
public  voidsetEditable(boolean edit)
    
public  voidsetJavaName(String newName)
     Sets Java name for this table.
public  voidsetName(String newName)
     Sets table name to new value.
public  voidsetParent(DatabaseModelImpl newParent)
     Sets parent DatabaseModel to the given reference.
public  booleansetPrimaryKey(PrimaryKeyImpl newPk)
     Sets PrimaryKey instance for this DBTable to the given instance.
public  voidsetSchema(String newSchema)
     Sets schema name to new value.
public  voidsetSelected(boolean select)
    
public  voidsetSelectedforAllOperations(boolean setAll)
    
public  voidsetType(String newType)
     Sets type name to new value.

Field Detail
catalog
protected String catalog(Code)
catalog to which this table belongs.



columns
protected Map columns(Code)
Map of column metadata.



columnsInTableOrder
protected ArrayList columnsInTableOrder(Code)
Map of columns in the order the driver returns them. Order preserving to keep both JCE and BPEL editors show the otd in the same way.



description
protected String description(Code)
user-defined description



editable
protected boolean editable(Code)
editable



foreignKeys
protected Map foreignKeys(Code)
Map of names to ForeignKey instances for this table; may be empty.



indexes
protected Map indexes(Code)
Map of names to Index instances for this table; may be empty.



javaName
protected String javaName(Code)
Java name of this table; not in DatabaseModel but supplied as courtesy for WSDL



name
protected String name(Code)
table name.



parent
protected DatabaseModel parent(Code)
DatabaseModelImpl instance that "owns" this table.



primaryKey
protected PrimaryKeyImpl primaryKey(Code)
PrimaryKey for this table; may be null.



schema
protected String schema(Code)
schema to which this table belongs.



selected
protected boolean selected(Code)
selected



type
protected String type(Code)
Type of this table, these are "TABLE" or "VIEW"




Constructor Detail
DBTableImpl
public DBTableImpl(String aName, String aSchema, String aCatalog)(Code)
Creates a new instance of DBTableImpl with the given name.
Parameters:
  aName - name of new DBTable instance
Parameters:
  aSchema - schema of new DBTable instance; may be null
Parameters:
  aCatalog - catalog of new DBTable instance; may be null



DBTableImpl
public DBTableImpl(String aName, String aSchema, String aCatalog, String aType)(Code)
Creates a new instance of DBTableImpl with the given name.
Parameters:
  aName - name of new DBTable instance
Parameters:
  aSchema - schema of new DBTable instance; may be null
Parameters:
  aCatalog - catalog of new DBTable instance; may be null
Parameters:
  aType - type of new DBTable instance;



DBTableImpl
public DBTableImpl(DBTable src)(Code)
Creates a new instance of DBTableImpl, cloning the contents of the given DBTable implementation instance.
Parameters:
  src - DBTable instance to be cloned




Method Detail
addColumn
public boolean addColumn(DBColumn theColumn)(Code)
Adds a DBColumn instance to this table.
Parameters:
  theColumn - column to be added. true if successful. false if failed.



addForeignKey
public boolean addForeignKey(ForeignKeyImpl newFk)(Code)
Adds the given ForeignKeyImpl, associating it with this DBTableImpl instance.
Parameters:
  newFk - new ForeignKeyImpl instance to be added return true if addition succeeded, false otherwise



addIndex
public boolean addIndex(IndexImpl newIndex)(Code)
Adds the given IndexImpl, associating it with this DBTableImpl instance.
Parameters:
  newIndex - new IndexImpl instance to be added return true if addition succeeded, false otherwise



clearForeignKeys
public void clearForeignKeys()(Code)
Clears list of foreign keys.



clearIndexes
public void clearIndexes()(Code)
Clears list of indexes.



clone
public Object clone()(Code)
Clone a deep copy of DBTable. a copy of DBTable.



compareTo
public int compareTo(Object refObj)(Code)
Compares DBTable with another object for lexicographical ordering. Null objects and those DBTables with null names are placed at the end of any ordered collection using this method.
Parameters:
  refObj - Object to be compared. -1 if the column name is less than obj to be compared. 0 if the column name is thesame. 1 if the column name is greater than obj to be compared.



copyFrom
public void copyFrom(DBTable source)(Code)
Performs deep copy of contents of given DBTable. We deep copy (that is, the method clones all child objects such as columns) because columns have a parent-child relationship that must be preserved internally.
Parameters:
  source - JDBCTable providing contents to be copied.



createColumn
public DBColumnImpl createColumn(String columnName, int jdbcType, int scale, int precision, boolean isPK, boolean isFK, boolean isIndexed, boolean nullable)(Code)
Convenience class to create DBColumnImpl instance (with the given column name, data source name, JDBC type, scale, precision, and nullable), and add it to this DBTableImpl instance.
Parameters:
  columnName - Column name
Parameters:
  jdbcType - JDBC type defined in SQL.Types
Parameters:
  scale - Scale
Parameters:
  precision - Precision
Parameters:
  nullable - Nullable new DBColumnImpl instance



deleteAllColumns
public boolean deleteAllColumns()(Code)
Deletes all columns associated with this table. true if all columns were deleted successfully, false otherwise.



deleteColumn
public boolean deleteColumn(String columnName)(Code)
Deletes DBColumn, if any, associated with the given name from this table.
Parameters:
  columnName - column name to be removed. true if successful. false if failed.



equals
public boolean equals(Object obj)(Code)
Overrides default implementation to return value based on memberwise comparison.
Parameters:
  obj - Object against which we compare this instance true if obj is functionally identical to this JDBCTable instance; false otherwise



getCatalog
public String getCatalog()(Code)

See Also:   com.stc.model.database.DBTable.getCatalog



getColumn
public DBColumn getColumn(String columnName)(Code)
Gets the DBColumn, if any, associated with the given name
Parameters:
  columnName - column name DBColumn associated with columnName, or null if none exists



getColumnList
public List getColumnList()(Code)

See Also:   com.stc.model.database.DBTable.getColumnList



getColumnListInTablelOrder
public List getColumnListInTablelOrder()(Code)
Map of columns in the order the driver returns them. Order preserving to keep both JCE and BPEL editors show the otd in the same way.



getColumns
public Map getColumns()(Code)

See Also:   com.stc.model.database.DBTable.getColumns



getDescription
public String getDescription()(Code)

See Also:   com.stc.model.database.DBTable.getDescription



getForeignKey
public ForeignKey getForeignKey(String fkName)(Code)

See Also:   com.stc.model.database.DBTable.getForeignKey(String)



getForeignKeys
public List getForeignKeys()(Code)

See Also:   com.stc.model.database.DBTable.getForeignKeys



getIndex
public Index getIndex(String indexName)(Code)

See Also:   com.stc.model.database.DBTable.getIndex



getIndexes
public List getIndexes()(Code)

See Also:   com.stc.model.database.DBTable.getIndexes



getJDBCType
public int getJDBCType(String dbType)(Code)
Gets the JDBC Type for a given oracle8/oracle9 type
Parameters:
  dbType - for which jdbctype is returned java.sql.Types.* for given string jdbcType



getJavaName
public String getJavaName()(Code)
Gets Java name for this table. normalized Java name for this table



getName
public String getName()(Code)

See Also:   com.stc.model.database.DBTable.getName



getParent
public DatabaseModel getParent()(Code)

See Also:   com.stc.model.database.DBTable.getParent



getPrimaryKey
public PrimaryKey getPrimaryKey()(Code)

See Also:   com.stc.model.database.DBTable.getPrimaryKey



getReferenceFor
public ForeignKey getReferenceFor(DBTable target)(Code)

See Also:   com.stc.model.database.DBTable.getReferenceFor



getReferencedTables
public Set getReferencedTables()(Code)

See Also:   com.stc.model.database.DBTable.getReferencedTables



getSQLType
public String getSQLType(int type)(Code)
Gets the SQLType
Parameters:
  type - for which sql type is returned String for given jdbc type



getSchema
public String getSchema()(Code)

See Also:   com.stc.model.database.DBTable.getSchema



getType
public String getType()(Code)

See Also:   com.stc.model.database.DBTable.getType



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



isEditable
public boolean isEditable()(Code)
Get editable true/false



isSelected
public boolean isSelected()(Code)



isSelectedforAnOperation
public boolean isSelectedforAnOperation()(Code)



references
public boolean references(DBTable pkTarget)(Code)

See Also:   com.stc.model.database.DBTable.references



removeForeignKey
public boolean removeForeignKey(ForeignKeyImpl oldKey)(Code)
Dissociates the given ForeignKeyImpl from this DBTableImpl instance, removing it from its internal FK collection.
Parameters:
  newFk - new ForeignKeyImpl instance to be removed return true if removal succeeded, false otherwise



setAllColumns
public boolean setAllColumns(Map theColumns)(Code)
Clones contents of the given Map to this table's internal column map, overwriting any previous mappings.
Parameters:
  theColumns - Map of columns to be substituted true if successful. false if failed.



setCatalog
public void setCatalog(String newCatalog)(Code)
Sets catalog name to new value.
Parameters:
  newCatalog - new value for catalog name



setDescription
public void setDescription(String newDesc)(Code)
Sets description text for this instance.
Parameters:
  newDesc - new descriptive text



setEditable
public void setEditable(boolean edit)(Code)
Set editable
Parameters:
  edit - - editable



setJavaName
public void setJavaName(String newName)(Code)
Sets Java name for this table.
Parameters:
  newName - new normalized Java name for this table; null if plain name is to be used.



setName
public void setName(String newName)(Code)
Sets table name to new value.
Parameters:
  newSchema - new value for schema name



setParent
public void setParent(DatabaseModelImpl newParent)(Code)
Sets parent DatabaseModel to the given reference.
Parameters:
  newParent - new DatabaseModel parent



setPrimaryKey
public boolean setPrimaryKey(PrimaryKeyImpl newPk)(Code)
Sets PrimaryKey instance for this DBTable to the given instance.
Parameters:
  newPk - new PrimaryKey instance to be associated true if association succeeded, false otherwise



setSchema
public void setSchema(String newSchema)(Code)
Sets schema name to new value.
Parameters:
  newSchema - new value for schema name



setSelected
public void setSelected(boolean select)(Code)

Parameters:
  select -



setSelectedforAllOperations
public void setSelectedforAllOperations(boolean setAll)(Code)



setType
public void setType(String newType)(Code)
Sets type name to new value.
Parameters:
  newType - new value for type name



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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.