Java Doc for ForeignKey.java in  » Database-ORM » castor » org » castor » ddlgen » schemaobject » 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 » castor » org.castor.ddlgen.schemaobject 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.castor.ddlgen.schemaobject.AbstractSchemaObject
      org.castor.ddlgen.schemaobject.ForeignKey

All known Subclasses:   org.castor.ddlgen.engine.mysql.MysqlForeignKey,  org.castor.ddlgen.schemaobject.DefaultForeignKey,
ForeignKey
abstract public class ForeignKey extends AbstractSchemaObject (Code)
Abstract base class for all foreign keys.
author:
   Le Duc Bao
author:
   Ralf Joachim
version:
   $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
since:
   1.1


Field Summary
final public static  intMANY_MANY
     Relation type: many-many.
final public static  intONE_MANY
     Relation type: one-many.
final public static  intONE_ONE
     Relation type: one-one.


Method Summary
final public  voidaddField(Field field)
     Add given field to list of foreign key fields.
final public  voidaddReferenceField(Field field)
     Add given field to list of fields referenced by the foreign key.
final public  booleanequals(Object other)
    
final protected  voidfieldNames(DDLWriter writer)
     Concatenate all field names delimited by field delimiter and whitespace.
final public  FieldgetField(int index)
     Get foreign key field at given index.
Parameters:
  index - Index of foreign key field to return.
final public  intgetFieldCount()
     Get number of foreign key fields.
final public  FieldgetReferenceField(int index)
     Get field referenced by the foreign key at given index.
Parameters:
  index - Index of referenced field to return.
final public  intgetReferenceFieldCount()
     Get number of fields referenced by the foreign key.
final public  TablegetReferenceTable()
     Get table referenced by the foreign key.
final public  intgetRelationType()
     Get type of relation.
final public  TablegetTable()
     Get table that holds foreign key.
final public  inthashCode()
    
final public  voidmerge(ForeignKey fk)
     Check if given foreign key can be merged with this one.
final protected  voidreferencedFieldNames(DDLWriter writer)
     Concatenate all referenced field names delimited by field delimiter and whitespace.
final public  voidsetReferenceTable(Table table)
     Set table referenced by the foreign key.
final public  voidsetRelationType(int relationType)
     Set type of relation.
final public  voidsetTable(Table table)
     Set table that holds foreign key.
final public  voidtoDropDDL(DDLWriter writer)
    

Field Detail
MANY_MANY
final public static int MANY_MANY(Code)
Relation type: many-many.



ONE_MANY
final public static int ONE_MANY(Code)
Relation type: one-many.



ONE_ONE
final public static int ONE_ONE(Code)
Relation type: one-one.





Method Detail
addField
final public void addField(Field field)(Code)
Add given field to list of foreign key fields.
Parameters:
  field - Field to add to list of foreign key fields.



addReferenceField
final public void addReferenceField(Field field)(Code)
Add given field to list of fields referenced by the foreign key.
Parameters:
  field - Field to add to list of fields referenced by the foreign key.



equals
final public boolean equals(Object other)(Code)



fieldNames
final protected void fieldNames(DDLWriter writer)(Code)
Concatenate all field names delimited by field delimiter and whitespace.
Parameters:
  writer - DDLWriter to write schema objects to.



getField
final public Field getField(int index)(Code)
Get foreign key field at given index.
Parameters:
  index - Index of foreign key field to return. Foreign key field at given index.



getFieldCount
final public int getFieldCount()(Code)
Get number of foreign key fields. Number of foreign key fields.



getReferenceField
final public Field getReferenceField(int index)(Code)
Get field referenced by the foreign key at given index.
Parameters:
  index - Index of referenced field to return. Referneced field at given index.



getReferenceFieldCount
final public int getReferenceFieldCount()(Code)
Get number of fields referenced by the foreign key. Number of fields referenced by the foreign key.



getReferenceTable
final public Table getReferenceTable()(Code)
Get table referenced by the foreign key. Table referenced by the foreign key.



getRelationType
final public int getRelationType()(Code)
Get type of relation. Type of relation



getTable
final public Table getTable()(Code)
Get table that holds foreign key. Table that holds foreign key.



hashCode
final public int hashCode()(Code)



merge
final public void merge(ForeignKey fk) throws GeneratorException(Code)
Check if given foreign key can be merged with this one.
Parameters:
  fk - Foreign key to check if it is able to be merged.
throws:
  GeneratorException - If foreign keys cannot be merged.



referencedFieldNames
final protected void referencedFieldNames(DDLWriter writer)(Code)
Concatenate all referenced field names delimited by field delimiter and whitespace.
Parameters:
  writer - DDLWriter to write schema objects to.



setReferenceTable
final public void setReferenceTable(Table table)(Code)
Set table referenced by the foreign key.
Parameters:
  table - Table referenced by the foreign key.



setRelationType
final public void setRelationType(int relationType)(Code)
Set type of relation.
Parameters:
  relationType - Type of relation.



setTable
final public void setTable(Table table)(Code)
Set table that holds foreign key.
Parameters:
  table - Table that holds foreign key.



toDropDDL
final public void toDropDDL(DDLWriter writer)(Code)



Fields inherited from org.castor.ddlgen.schemaobject.AbstractSchemaObject
final protected static int HASHFACTOR(Code)(Java Doc)

Methods inherited from org.castor.ddlgen.schemaobject.AbstractSchemaObject
final protected static boolean equals(Object obj1, Object obj2)(Code)(Java Doc)
final public DDLGenConfiguration getConfiguration()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public void setConfiguration(DDLGenConfiguration config)(Code)(Java Doc)
final public void setName(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.