Java Doc for JDBCRelationMetaData.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » ejb » plugins » cmp » jdbc » metadata » 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 » EJB Server JBoss 4.2.1 » server » org.jboss.ejb.plugins.cmp.jdbc.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData

JDBCRelationMetaData
final public class JDBCRelationMetaData (Code)
This class represents one ejb-relation element in the ejb-jar.xml file. Most properties of this class are immutable. The mutable properties have set methods.
author:
   Dain Sundstrom
author:
   Heiko W. Rupp
version:
   $Revision: 57209 $



Constructor Summary
public  JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication, RelationMetaData relationMetaData)
     Constructs jdbc relation meta data with the data from the relation metadata loaded from the ejb-jar.xml file.
public  JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication, Element element, JDBCRelationMetaData defaultValues)
     Constructs relation meta data with the data contained in the ejb-relation element or the defaults element from a jbosscmp-jdbc xml file.

Method Summary
public  booleangetAlterTable()
     Should the relation table be altered on deploy.
public  booleangetCreateTable()
     Should the relation table be created on startup.
public synchronized  DataSourcegetDataSource()
    
public  StringgetDefaultTableName()
     Gets the name of the relation table.
public  ArrayListgetDefaultTablePostCreateCmd()
     Gets the (user-defined) SQL commands that should be issued to the db after table creation.
public  JDBCRelationshipRoleMetaDatagetLeftRelationshipRole()
     Gets the left jdbc relationship role.
public  JDBCRelationshipRoleMetaDatagetOtherRelationshipRole(JDBCRelationshipRoleMetaData role)
     Gets the relationship role related to the specified role.
Parameters:
  role - the relationship role that the related role is desired the relationship role related to the specified role.
public  intgetReadTimeOut()
     Gets the read time out length.
public  StringgetRelationName()
     Gets the relation name.
public  booleangetRemoveTable()
     Should the relation table be removed on shutdown.
public  JDBCRelationshipRoleMetaDatagetRightRelationshipRole()
     Gets the right jdbc relationship role.
public  JDBCTypeMappingMetaDatagetTypeMapping()
    
public  booleanhasPrimaryKeyConstraint()
     When the relation table is created, should it have a primary key constraint.
public  booleanhasRowLocking()
    
public  booleanisForeignKeyMappingStyle()
     Should this relation use foreign keys for storage.
public  booleanisReadOnly()
    
public  booleanisTableCreated()
     Does the table exist yet? This does not mean that table has been created by the appilcation, or the the database metadata has been checked for the existance of the table, but that at this point the table is assumed to exist.
public  booleanisTableDropped()
    
public  booleanisTableMappingStyle()
     Should this relation be mapped to a relation table.
public  voidsetTableCreated()
    
public  voidsetTableDropped()
     Sets table dropped flag.


Constructor Detail
JDBCRelationMetaData
public JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication, RelationMetaData relationMetaData) throws DeploymentException(Code)
Constructs jdbc relation meta data with the data from the relation metadata loaded from the ejb-jar.xml file.
Parameters:
  jdbcApplication - used to retrieve the entities of this relation
Parameters:
  relationMetaData - relation meta data loaded from the ejb-jar.xmlfile



JDBCRelationMetaData
public JDBCRelationMetaData(JDBCApplicationMetaData jdbcApplication, Element element, JDBCRelationMetaData defaultValues) throws DeploymentException(Code)
Constructs relation meta data with the data contained in the ejb-relation element or the defaults element from a jbosscmp-jdbc xml file. Optional values of the xml element that are not present are loaded from the defaultValues parameter.
Parameters:
  jdbcApplication - used to retrieve type mappings in table mappingstyle
Parameters:
  element - the xml Element which contains the metadata about thisrelation
Parameters:
  defaultValues - the JDBCApplicationMetaData which contains thevalues for optional elements of the element
throws:
  DeploymentException - if the xml element is not semanticallycorrect




Method Detail
getAlterTable
public boolean getAlterTable()(Code)
Should the relation table be altered on deploy.



getCreateTable
public boolean getCreateTable()(Code)
Should the relation table be created on startup. true if the store mananager should attempt to create the relationtable



getDataSource
public synchronized DataSource getDataSource()(Code)



getDefaultTableName
public String getDefaultTableName()(Code)
Gets the name of the relation table. the name of the relation table to which is relation is mapped



getDefaultTablePostCreateCmd
public ArrayList getDefaultTablePostCreateCmd()(Code)
Gets the (user-defined) SQL commands that should be issued to the db after table creation. the SQL command



getLeftRelationshipRole
public JDBCRelationshipRoleMetaData getLeftRelationshipRole()(Code)
Gets the left jdbc relationship role. The relationship role is loaded from an ejb-relationship-role. Left/right assignment is completely arbitrary. the left JDBCRelationshipRoleMetaData



getOtherRelationshipRole
public JDBCRelationshipRoleMetaData getOtherRelationshipRole(JDBCRelationshipRoleMetaData role)(Code)
Gets the relationship role related to the specified role.
Parameters:
  role - the relationship role that the related role is desired the relationship role related to the specified role. right roleof this relation



getReadTimeOut
public int getReadTimeOut()(Code)
Gets the read time out length.



getRelationName
public String getRelationName()(Code)
Gets the relation name. Relation name is loaded from the ejb-relation-name element. the name of this relation



getRemoveTable
public boolean getRemoveTable()(Code)
Should the relation table be removed on shutdown. true if the store mananager should attempt to remove the relationtable



getRightRelationshipRole
public JDBCRelationshipRoleMetaData getRightRelationshipRole()(Code)
Gets the right jdbc relationship role. The relationship role is loaded from an ejb-relationship-role. Left/right assignment is completely arbitrary. the right JDBCRelationshipRoleMetaData



getTypeMapping
public JDBCTypeMappingMetaData getTypeMapping() throws DeploymentException(Code)
Gets the jdbc type mapping for this entity the jdbc type mapping for this entity



hasPrimaryKeyConstraint
public boolean hasPrimaryKeyConstraint()(Code)
When the relation table is created, should it have a primary key constraint. true if the store mananager should add a primary key constraintto the the create table sql statement



hasRowLocking
public boolean hasRowLocking()(Code)
Should select queries do row locking



isForeignKeyMappingStyle
public boolean isForeignKeyMappingStyle()(Code)
Should this relation use foreign keys for storage. true if this relation is mapped to foreign keys



isReadOnly
public boolean isReadOnly()(Code)
Is this relation read-only?



isTableCreated
public boolean isTableCreated()(Code)
Does the table exist yet? This does not mean that table has been created by the appilcation, or the the database metadata has been checked for the existance of the table, but that at this point the table is assumed to exist. true if the table exists



isTableDropped
public boolean isTableDropped()(Code)



isTableMappingStyle
public boolean isTableMappingStyle()(Code)
Should this relation be mapped to a relation table. true if this relation is mapped to a table



setTableCreated
public void setTableCreated()(Code)



setTableDropped
public void setTableDropped()(Code)
Sets table dropped flag.



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)

w___w___w_.j__a_v___a___2___s_.___c__om___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.