Java Doc for SchemaElement.java in  » IDE-Netbeans » db » org » netbeans » modules » dbschema » 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 » db » org.netbeans.modules.dbschema 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.dbschema.DBElement
      org.netbeans.modules.dbschema.SchemaElement

All known Subclasses:   org.netbeans.modules.dbschema.jdbcimpl.SchemaElementImpl,
SchemaElement
public class SchemaElement extends DBElement (Code)
Describes an entire database schema.

Inner Class :public static interface Impl extends DBElement.Impl
Inner Class :final static class Memory extends DBElement.Memory implements Impl

Field Summary
final public static  intCURRENT_VERSION_NO
     Version of the database schema API.
final public static  intSTATUS_ERROR
     Status when the schema element contains unrecoverable errors.
final public static  intSTATUS_NOT
     Status when the schema element is not yet prepared.
final public static  intSTATUS_OK
     Status when the schema element has been parsed and is error-free.
final public static  intSTATUS_PARTIAL
     Status when the schema element contains minor errors.
protected static  MapschemaCache
     Cache for read schemas.

Constructor Summary
public  SchemaElement()
     Creates a new schema element represented in memory.
public  SchemaElement(Impl impl)
     Creates a new schema element.

Method Summary
public  voidaddTable(TableElement el)
     Adds a new table to the schema snapshot.
public  voidaddTables(TableElement[] els)
     Adds some new tables to the schema snapshot.
public static  voidaddToCache(SchemaElement schema)
     Adds the specified schema element to cache.
public static  SchemaElementforName(String name, Object obj)
     Returns the SchemaElement object associated with the schema with the given string name and object.
public static  SchemaElementforName(String name)
     Returns the SchemaElement object associated with the schema with the given string name.
public  DBIdentifiergetCatalog()
     Gets the catalog name of this schema snapshot.
public  StringgetDatabaseProductName()
     Getter for property databaseProductName.
public  StringgetDatabaseProductVersion()
     Getter for property databaseProductVersion.
public  StringgetDriver()
     Getter for property driver.
public  StringgetDriverName()
     Getter for property driverName.
public  StringgetDriverVersion()
     Getter for property driverVersion.
protected static  SchemaElementgetLastSchema()
     Returns the last used schema.
public  DBIdentifiergetSchema()
     Gets the schema name of this schema snapshot.
final  ImplgetSchemaImpl()
     Returns the implementation for the schema.
public  intgetStatus()
     Gets the parsing status of the element.
public  TableElementgetTable(DBIdentifier name)
     Finds a table by name.
public  TableElement[]getTables()
     Gets all tables in this schema snapshot.
public  StringgetUrl()
     Getter for property url.
public  StringgetUsername()
     Getter for property username.
public  intgetVersionNo()
     Getter for property versionNo.
public  booleanisCompatibleVersion()
     Returns if the schema is compatible with current API version.
public static  voidremoveFromCache(String name)
     Removes the specified schema from cache.
public  voidremoveTable(TableElement el)
     Removes a table from the schema snapshot.
public  voidremoveTables(TableElement[] els)
     Removes some tables from the schema snapshot.
public  voidsave(String filename)
     Saves the current schema to an XML file.
public  voidsave(OutputStream s)
     Saves the current schema to an XML file.
public  voidsetCatalog(DBIdentifier catalog)
     Sets the catalog name of this schema snapshot.
public  voidsetDatabaseProductName(String databaseProductName)
     Setter for property databaseProductName.
public  voidsetDatabaseProductVersion(String databaseProductVersion)
     Setter for property databaseProductVersion.
public  voidsetDriver(String driver)
     Setter for property driver.
public  voidsetDriverName(String driverName)
     Setter for property driverName.
public  voidsetDriverVersion(String driverVersion)
     Setter for property driverVersion.
protected static  voidsetLastSchema(SchemaElement last)
     Sets the last used schema.
public  voidsetSchema(DBIdentifier schema)
     Sets the schema name of this schema snapshot.
public  voidsetTables(TableElement[] els)
     Sets the tables for this schema snapshot.
public  voidsetUrl(String url)
     Setter for property url.
public  voidsetUsername(String username)
     Setter for property username.
public  voidsetVersionNo(int versionNo)
     Setter for property versionNo.

Field Detail
CURRENT_VERSION_NO
final public static int CURRENT_VERSION_NO(Code)
Version of the database schema API.



STATUS_ERROR
final public static int STATUS_ERROR(Code)
Status when the schema element contains unrecoverable errors.



STATUS_NOT
final public static int STATUS_NOT(Code)
Status when the schema element is not yet prepared.



STATUS_OK
final public static int STATUS_OK(Code)
Status when the schema element has been parsed and is error-free.



STATUS_PARTIAL
final public static int STATUS_PARTIAL(Code)
Status when the schema element contains minor errors.



schemaCache
protected static Map schemaCache(Code)
Cache for read schemas.




Constructor Detail
SchemaElement
public SchemaElement()(Code)
Creates a new schema element represented in memory.



SchemaElement
public SchemaElement(Impl impl)(Code)
Creates a new schema element.
Parameters:
  impl - the pluggable implementation




Method Detail
addTable
public void addTable(TableElement el) throws DBException(Code)
Adds a new table to the schema snapshot.
Parameters:
  el - the table to add
throws:
  DBException - if impossible



addTables
public void addTables(TableElement[] els) throws DBException(Code)
Adds some new tables to the schema snapshot.
Parameters:
  els - the tables to add
throws:
  DBException - if impossible



addToCache
public static void addToCache(SchemaElement schema)(Code)
Adds the specified schema element to cache.
Parameters:
  schema - the schema element to add



forName
public static SchemaElement forName(String name, Object obj)(Code)
Returns the SchemaElement object associated with the schema with the given string name and object. The second argument is meant to help define the context for loading of the schema and can be a FileObject[] or FileObject for use in the IDE or a ClassLoader for use at runtime. Note that if if FileObject[] is used, the first match is returned if it's not already in the cache. It might be extended later to accept a Project as well. Any other non-null value for the second argument will result in an UnsupportedOperationException.
Parameters:
  name - the schema name
Parameters:
  obj - the schema context the SchemaElement object for the given schema name



forName
public static SchemaElement forName(String name)(Code)
Returns the SchemaElement object associated with the schema with the given string name.
Parameters:
  name - the schema name the SchemaElement object for the given schema name



getCatalog
public DBIdentifier getCatalog()(Code)
Gets the catalog name of this schema snapshot. the catalog name, or null if this snapshot doesnot have a catalog name



getDatabaseProductName
public String getDatabaseProductName()(Code)
Getter for property databaseProductName. Value of property databaseProductName.



getDatabaseProductVersion
public String getDatabaseProductVersion()(Code)
Getter for property databaseProductVersion. Value of property databaseProductVersion.



getDriver
public String getDriver()(Code)
Getter for property driver. Value of property driver.



getDriverName
public String getDriverName()(Code)
Getter for property driverName. Value of property driverName.



getDriverVersion
public String getDriverVersion()(Code)
Getter for property driverVersion. Value of property driverVersion.



getLastSchema
protected static SchemaElement getLastSchema()(Code)
Returns the last used schema. the last used schema



getSchema
public DBIdentifier getSchema()(Code)
Gets the schema name of this schema snapshot. the schema name, or null if this snapshot does nothave a schema name



getSchemaImpl
final Impl getSchemaImpl()(Code)
Returns the implementation for the schema. implementation for the schema



getStatus
public int getStatus()(Code)
Gets the parsing status of the element. This is a non-blocking operation. one of SchemaElement.STATUS_NOT, SchemaElement.STATUS_ERROR, SchemaElement.STATUS_PARTIAL, or SchemaElement.STATUS_OK



getTable
public TableElement getTable(DBIdentifier name)(Code)
Finds a table by name.
Parameters:
  name - the name of the table for which to look the element or null if not found



getTables
public TableElement[] getTables()(Code)
Gets all tables in this schema snapshot. the tables



getUrl
public String getUrl()(Code)
Getter for property url. Value of property url.



getUsername
public String getUsername()(Code)
Getter for property username. Value of property username.



getVersionNo
public int getVersionNo()(Code)
Getter for property versionNo. Value of property versionNo.



isCompatibleVersion
public boolean isCompatibleVersion()(Code)
Returns if the schema is compatible with current API version. true if schema is compatible; false otherwise



removeFromCache
public static void removeFromCache(String name)(Code)
Removes the specified schema from cache.
Parameters:
  name - the schema to remove



removeTable
public void removeTable(TableElement el) throws DBException(Code)
Removes a table from the schema snapshot.
Parameters:
  el - the table to remove
throws:
  DBException - if impossible



removeTables
public void removeTables(TableElement[] els) throws DBException(Code)
Removes some tables from the schema snapshot.
Parameters:
  els - the columns to remove
throws:
  DBException - if impossible



save
public void save(String filename)(Code)
Saves the current schema to an XML file.
Parameters:
  filename - the system-dependent filename



save
public void save(OutputStream s)(Code)
Saves the current schema to an XML file.
Parameters:
  s - the output stream



setCatalog
public void setCatalog(DBIdentifier catalog) throws DBException(Code)
Sets the catalog name of this schema snapshot.
Parameters:
  id - the catalog name, or null
exception:
  DBException - if the operation cannot proceed



setDatabaseProductName
public void setDatabaseProductName(String databaseProductName) throws DBException(Code)
Setter for property databaseProductName.
Parameters:
  databaseProductName - New value of property databaseProductName.



setDatabaseProductVersion
public void setDatabaseProductVersion(String databaseProductVersion) throws DBException(Code)
Setter for property databaseProductVersion.
Parameters:
  databaseProductVersion - New value of property databaseProductVersion.



setDriver
public void setDriver(String driver)(Code)
Setter for property driver.
Parameters:
  driver - New value of property driver.



setDriverName
public void setDriverName(String driverName) throws DBException(Code)
Setter for property driverName.
Parameters:
  driverName - New value of property driverName.



setDriverVersion
public void setDriverVersion(String driverVersion) throws DBException(Code)
Setter for property driverVersion.
Parameters:
  driverVersion - New value of property driverVersion.



setLastSchema
protected static void setLastSchema(SchemaElement last)(Code)
Sets the last used schema.
Parameters:
  last - the last used schema



setSchema
public void setSchema(DBIdentifier schema) throws DBException(Code)
Sets the schema name of this schema snapshot.
Parameters:
  id - the schema name, or null
exception:
  DBException - if the operation cannot proceed



setTables
public void setTables(TableElement[] els) throws DBException(Code)
Sets the tables for this schema snapshot. Previous tables are removed.
Parameters:
  els - the new tables
throws:
  DBException - if impossible



setUrl
public void setUrl(String url) throws DBException(Code)
Setter for property url.
Parameters:
  url - New value of property url.



setUsername
public void setUsername(String username) throws DBException(Code)
Setter for property username.
Parameters:
  username - New value of property username.



setVersionNo
public void setVersionNo(int versionNo)(Code)
Setter for property versionNo.
Parameters:
  versionNo - New value of property versionNo.



Fields inherited from org.netbeans.modules.dbschema.DBElement
Impl impl(Code)(Java Doc)

Methods inherited from org.netbeans.modules.dbschema.DBElement
final public void addPropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
public int compareTo(Object obj)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
final public Impl getElementImpl()(Code)(Java Doc)
public DBIdentifier getName()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void removePropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
public void setElementImpl(DBElement.Impl anImpl)(Code)(Java Doc)
final public void setName(DBIdentifier name) throws DBException(Code)(Java Doc)
public String toString()(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)

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