Java Doc for SchemaGroup.java in  » Database-ORM » openjpa » org » apache » openjpa » jdbc » schema » 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 » Database ORM » openjpa » org.apache.openjpa.jdbc.schema 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.openjpa.jdbc.schema.NameSet
      org.apache.openjpa.jdbc.schema.SchemaGroup

All known Subclasses:   org.apache.openjpa.jdbc.schema.DynamicSchemaFactory,  org.apache.openjpa.jdbc.schema.LazySchemaFactory,
SchemaGroup
public class SchemaGroup extends NameSet implements Cloneable(Code)
Represents a grouping of schemas used in a database.
author:
   Abe White




Method Summary
public  SchemaaddSchema()
     Add a schema to the group.
public  SchemaaddSchema(String name)
     Add a schema to the group.
public  Objectclone()
    
protected  voidcopy(SchemaGroup group)
     Copy cloneable state from the given instance.
public  ForeignKey[]findExportedForeignKeys(PrimaryKey pk)
     Find all foreign keys exported by a given primary key (all foreign keys that link to the primary key).
public  SequencefindSequence(Sequence seq)
     Find the equivalent of the given sequence in this schema group.
public  SequencefindSequence(String name)
     Find the sequence with the given name in the group, using '.' as the catalog separator.
public  SequencefindSequence(Schema inSchema, String name)
     Find the sequence with the given name in the group, using '.' as the catalog separator.
public  TablefindTable(Table table)
     Find the equivalent of the given table in this schema group.
public  TablefindTable(String name)
     Find the table with the given name in the group, using '.' as the catalog separator.
public  TablefindTable(Schema inSchema, String name)
     Find the table with the given name in the group, using '.' as the catalog separator.
public  SchemagetSchema(String name)
     Return the schema with the given name, or null if none.
public  Schema[]getSchemas()
     Return all schemas.
public  SchemaimportSchema(Schema schema)
     Import a schema from another group.
public  booleanisKnownSequence(Sequence seq)
     Return true if the given sequence is known to exist.
public  booleanisKnownSequence(String name)
     Return true if the given sequence is known to exist.
public  booleanisKnownTable(Table table)
     Return true if the given table is known to exist.
public  booleanisKnownTable(String name)
     Return true if the given table is known to exist.
protected  ColumnnewColumn(String name, Table table)
     Return a new column with the given name and owner table.
protected  ForeignKeynewForeignKey(String name, Table table)
     Return a new foreign key with the given name and owner table.
protected  IndexnewIndex(String name, Table table)
     Return a new index with the given name and owner table.
protected  SchemaGroupnewInstance()
     Create a new instance of this class.
protected  PrimaryKeynewPrimaryKey(String name, Table table)
     Return a new primary key with the given name and owner table.
protected  SchemanewSchema(String name)
     Return a new schema with the given name.
protected  SequencenewSequence(String name, Schema schema)
     Return a new sequence with the given name and owner schema.
protected  TablenewTable(String name, Schema schema)
     Return a new table with the given name and owner schema.
protected  UniquenewUnique(String name, Table table)
     Return a new unique constraint with the given name and owner table.
public  booleanremoveSchema(Schema schema)
     Remove the given schema from the group.
public  voidremoveUnusedComponents()
     Remove unreferenced or emtpy components from the schema.



Method Detail
addSchema
public Schema addSchema()(Code)
Add a schema to the group.



addSchema
public Schema addSchema(String name)(Code)
Add a schema to the group.



clone
public Object clone()(Code)



copy
protected void copy(SchemaGroup group)(Code)
Copy cloneable state from the given instance.



findExportedForeignKeys
public ForeignKey[] findExportedForeignKeys(PrimaryKey pk)(Code)
Find all foreign keys exported by a given primary key (all foreign keys that link to the primary key).



findSequence
public Sequence findSequence(Sequence seq)(Code)
Find the equivalent of the given sequence in this schema group. The given sequence that may have come from another schema group.



findSequence
public Sequence findSequence(String name)(Code)
Find the sequence with the given name in the group, using '.' as the catalog separator. Returns null if no sequence found.



findSequence
public Sequence findSequence(Schema inSchema, String name)(Code)
Find the sequence with the given name in the group, using '.' as the catalog separator. Returns null if no sequence found.



findTable
public Table findTable(Table table)(Code)
Find the equivalent of the given table in this schema group. The given table that may have come from another schema group.



findTable
public Table findTable(String name)(Code)
Find the table with the given name in the group, using '.' as the catalog separator. Returns null if no table found.



findTable
public Table findTable(Schema inSchema, String name)(Code)
Find the table with the given name in the group, using '.' as the catalog separator. Returns null if no table found.



getSchema
public Schema getSchema(String name)(Code)
Return the schema with the given name, or null if none.



getSchemas
public Schema[] getSchemas()(Code)
Return all schemas.



importSchema
public Schema importSchema(Schema schema)(Code)
Import a schema from another group. Foreign keys are not imported.



isKnownSequence
public boolean isKnownSequence(Sequence seq)(Code)
Return true if the given sequence is known to exist. While SchemaGroup.findSequence may exhibit dynamic behavior in some schema group implementations, this method only returns true if the sequence has been added to this group or is known to exist in the database.



isKnownSequence
public boolean isKnownSequence(String name)(Code)
Return true if the given sequence is known to exist. While SchemaGroup.findSequence may exhibit dynamic behavior in some schema group implementations, this method only returns true if the sequence has been added to this group or is known to exist in the database.



isKnownTable
public boolean isKnownTable(Table table)(Code)
Return true if the given table is known to exist. While SchemaGroup.findTable may exhibit dynamic behavior in some schema group implementations, this method only returns true if the table has been added to this group or is known to exist in the database.



isKnownTable
public boolean isKnownTable(String name)(Code)
Return true if the given table is known to exist. While SchemaGroup.findTable may exhibit dynamic behavior in some schema group implementations, this method only returns true if the table has been added to this group or is known to exist in the database.



newColumn
protected Column newColumn(String name, Table table)(Code)
Return a new column with the given name and owner table.



newForeignKey
protected ForeignKey newForeignKey(String name, Table table)(Code)
Return a new foreign key with the given name and owner table.



newIndex
protected Index newIndex(String name, Table table)(Code)
Return a new index with the given name and owner table.



newInstance
protected SchemaGroup newInstance()(Code)
Create a new instance of this class.



newPrimaryKey
protected PrimaryKey newPrimaryKey(String name, Table table)(Code)
Return a new primary key with the given name and owner table.



newSchema
protected Schema newSchema(String name)(Code)
Return a new schema with the given name.



newSequence
protected Sequence newSequence(String name, Schema schema)(Code)
Return a new sequence with the given name and owner schema.



newTable
protected Table newTable(String name, Schema schema)(Code)
Return a new table with the given name and owner schema.



newUnique
protected Unique newUnique(String name, Table table)(Code)
Return a new unique constraint with the given name and owner table.



removeSchema
public boolean removeSchema(Schema schema)(Code)
Remove the given schema from the group. true if the schema was removed, false if not in the group



removeUnusedComponents
public void removeUnusedComponents()(Code)
Remove unreferenced or emtpy components from the schema.



Methods inherited from org.apache.openjpa.jdbc.schema.NameSet
protected void addName(String name, boolean validate)(Code)(Java Doc)
public boolean isNameTaken(String name)(Code)(Java Doc)
protected void removeName(String name)(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.