Java Doc for JDBCCMPFieldMetaData.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.JDBCCMPFieldMetaData

JDBCCMPFieldMetaData
final public class JDBCCMPFieldMetaData (Code)
Imutable class which holds all the information jbosscmp-jdbc needs to know about a CMP field It loads its data from standardjbosscmp-jdbc.xml and jbosscmp-jdbc.xml
author:
   Dain Sundstrom
author:
   Sebastien Alborini
author:
   Dirk Zimmermann
author:
   Vincent Harcq
author:
   Alex Loubyansky
author:
   Heiko W.Rupp
version:
   $Revision: 57209 $


Field Summary
final public static  byteCHECK_DIRTY_AFTER_GET_FALSE
    
final public static  byteCHECK_DIRTY_AFTER_GET_NOT_PRESENT
    
final public static  byteCHECK_DIRTY_AFTER_GET_TRUE
    

Constructor Summary
public  JDBCCMPFieldMetaData(JDBCEntityMetaData entity)
    
public  JDBCCMPFieldMetaData(JDBCEntityMetaData entity, String fieldName)
     Constructs cmp field meta data for a field on the specified entity with the specified fieldName.
public  JDBCCMPFieldMetaData(JDBCEntityMetaData entity, JDBCCMPFieldMetaData defaultValues)
    
public  JDBCCMPFieldMetaData(JDBCEntityMetaData entity, Element element, JDBCCMPFieldMetaData defaultValues)
     Constructs cmp field meta data with the data contained in the cmp-field xml element from a jbosscmp-jdbc xml file.
public  JDBCCMPFieldMetaData(JDBCEntityMetaData entity, Element element, JDBCCMPFieldMetaData defaultValues, boolean primaryKeyMember, boolean notNull, boolean readOnly, int readTimeOut, boolean relationTableField)
     Constructs cmp field meta data with the data contained in the cmp-field xml element from a jbosscmp-jdbc xml file.
public  JDBCCMPFieldMetaData(JDBCEntityMetaData entity, JDBCCMPFieldMetaData defaultValues, String columnName, boolean primaryKeyMember, boolean notNull, boolean readOnly, int readTimeOut, boolean relationTableField)
     Constructs a foreign key or a relation table key field.
public  JDBCCMPFieldMetaData(JDBCEntityMetaData entity, String fieldName, Class fieldType, String columnName, int jdbcType, String sqlType)
    

Method Summary
public  booleanequals(Object o)
     Compares this JDBCCMPFieldMetaData against the specified object.
public  bytegetCheckDirtyAfterGet()
    
public  StringgetColumnName()
     Gets the column name the property should use or null if the column name is not overriden.
public  JDBCEntityMetaDatagetEntity()
    
public  StringgetFieldName()
     Gets the name of the field.
public  ClassgetFieldType()
     Gets the java Class type of this field.
public  intgetJDBCType()
     Gets the JDBC type the property should use or Integer.MIN_VALUE if not overriden.
public  FieldgetPrimaryKeyField()
     Gets the Field of the primary key object which contains the value of this field.
public  ListgetPropertyOverrides()
     Gets the property overrides.
public  intgetReadTimeOut()
    
public  StringgetSQLType()
     Gets the SQL type the property should use or null if not overriden.
public  StringgetStateFactory()
    
public  inthashCode()
     Returns a hashcode for this JDBCCMPFieldMetaData.
public  booleanisAutoIncrement()
    
public  booleanisIndexed()
    
public  booleanisNotNull()
    
public  booleanisPrimaryKeyMember()
    
public  booleanisReadOnly()
     Is this field read only.
public  booleanisRelationTableField()
    
public  booleanisUnknownPkField()
    
public static  bytereadCheckDirtyAfterGet(Element element)
    
public  StringtoString()
     Returns a string describing this JDBCCMPFieldMetaData.

Field Detail
CHECK_DIRTY_AFTER_GET_FALSE
final public static byte CHECK_DIRTY_AFTER_GET_FALSE(Code)



CHECK_DIRTY_AFTER_GET_NOT_PRESENT
final public static byte CHECK_DIRTY_AFTER_GET_NOT_PRESENT(Code)



CHECK_DIRTY_AFTER_GET_TRUE
final public static byte CHECK_DIRTY_AFTER_GET_TRUE(Code)




Constructor Detail
JDBCCMPFieldMetaData
public JDBCCMPFieldMetaData(JDBCEntityMetaData entity)(Code)
This constructor is added especially for unknown primary key field



JDBCCMPFieldMetaData
public JDBCCMPFieldMetaData(JDBCEntityMetaData entity, String fieldName) throws DeploymentException(Code)
Constructs cmp field meta data for a field on the specified entity with the specified fieldName.
Parameters:
  fieldName - name of the field for which the meta data will be loaded
Parameters:
  entity - entity on which this field is defined
throws:
  DeploymentException - if data in the entity is inconsistent with field type



JDBCCMPFieldMetaData
public JDBCCMPFieldMetaData(JDBCEntityMetaData entity, JDBCCMPFieldMetaData defaultValues)(Code)



JDBCCMPFieldMetaData
public JDBCCMPFieldMetaData(JDBCEntityMetaData entity, Element element, JDBCCMPFieldMetaData defaultValues) throws DeploymentException(Code)
Constructs cmp field meta data with the data contained in the cmp-field xml element from a jbosscmp-jdbc xml file. Optional values of the xml element that are not present are instead loaded from the defalutValues parameter.
Parameters:
  element - the xml Element which contains the metadata aboutthis field
Parameters:
  defaultValues - the JDBCCMPFieldMetaData which contains the valuesfor optional elements of the element
throws:
  DeploymentException - if the xml element is not semantically correct



JDBCCMPFieldMetaData
public JDBCCMPFieldMetaData(JDBCEntityMetaData entity, Element element, JDBCCMPFieldMetaData defaultValues, boolean primaryKeyMember, boolean notNull, boolean readOnly, int readTimeOut, boolean relationTableField) throws DeploymentException(Code)
Constructs cmp field meta data with the data contained in the cmp-field xml element from a jbosscmp-jdbc xml file. Optional values of the xml element that are not present are instead loaded from the defalutValues parameter. This constructor form is used to create cmp field meta data for use as foreign keys. The primaryKeyMember parameter is very important in this context because a foreign key is not a primary key member but used a pk member as the default value. If we did not have the primary key member parameter this JDBCCMPFieldMetaData would get the value from the defaultValues and be declared a memeber.



JDBCCMPFieldMetaData
public JDBCCMPFieldMetaData(JDBCEntityMetaData entity, JDBCCMPFieldMetaData defaultValues, String columnName, boolean primaryKeyMember, boolean notNull, boolean readOnly, int readTimeOut, boolean relationTableField)(Code)
Constructs a foreign key or a relation table key field.



JDBCCMPFieldMetaData
public JDBCCMPFieldMetaData(JDBCEntityMetaData entity, String fieldName, Class fieldType, String columnName, int jdbcType, String sqlType) throws DeploymentException(Code)
Constructs a field that is used as an optimistic lock




Method Detail
equals
public boolean equals(Object o)(Code)
Compares this JDBCCMPFieldMetaData against the specified object. Returns true if the objects are the same. Two JDBCCMPFieldMetaData are the same if they both have the same name and are defined on the same entity.
Parameters:
  o - the reference object with which to compare true if this object is the same as the object argument; falseotherwise



getCheckDirtyAfterGet
public byte getCheckDirtyAfterGet()(Code)



getColumnName
public String getColumnName()(Code)
Gets the column name the property should use or null if the column name is not overriden. the name to which this field is persisted or null if thecolumn name is not overriden



getEntity
public JDBCEntityMetaData getEntity()(Code)
Gets the entity on which this field is defined the entity on which this field is defined



getFieldName
public String getFieldName()(Code)
Gets the name of the field. the name of this field



getFieldType
public Class getFieldType()(Code)
Gets the java Class type of this field. the Class type of this field



getJDBCType
public int getJDBCType()(Code)
Gets the JDBC type the property should use or Integer.MIN_VALUE if not overriden. the jdbc type of this field



getPrimaryKeyField
public Field getPrimaryKeyField()(Code)
Gets the Field of the primary key object which contains the value of this field. Returns null, if this field is not a member of the primary key, or if the primray key is single valued. the Field of the primary key which contains thevalue of this field



getPropertyOverrides
public List getPropertyOverrides()(Code)
Gets the property overrides. Property overrides change the default mapping of Dependent Value Object properties. If there are no property overrides this method returns an empty list. an unmodifiable list of the property overrides.



getReadTimeOut
public int getReadTimeOut()(Code)
Gets the length of time (ms) that a read valid or -1 if data must always be reread from the database the length of time that data read database is valid, or -1if data must always be reread from the database



getSQLType
public String getSQLType()(Code)
Gets the SQL type the property should use or null if not overriden. the sql data type string used in create table statements



getStateFactory
public String getStateFactory()(Code)



hashCode
public int hashCode()(Code)
Returns a hashcode for this JDBCCMPFieldMetaData. The hashcode is computed based on the hashCode of the declaring entity and the hashCode of the fieldName a hash code value for this object



isAutoIncrement
public boolean isAutoIncrement()(Code)
true if the key is auto incremented by the database



isIndexed
public boolean isIndexed()(Code)
Should an index for this field be generated? Normally this should be false for primary key fields But it seems there are databases that do not automatically put indices on primary keys *sigh* true if an index should be generated on this field



isNotNull
public boolean isNotNull()(Code)
Should this field allow null values? true if this field will not allow a null value.



isPrimaryKeyMember
public boolean isPrimaryKeyMember()(Code)
Is this field one of the primary key fields? true if this field is one of the primary key fields



isReadOnly
public boolean isReadOnly()(Code)
Is this field read only. A read only field will never be persisted true if this field is read only



isRelationTableField
public boolean isRelationTableField()(Code)



isUnknownPkField
public boolean isUnknownPkField()(Code)
Is this field an unknown primary key field? true if the field is an unknown primary key field



readCheckDirtyAfterGet
public static byte readCheckDirtyAfterGet(Element element) throws DeploymentException(Code)



toString
public String toString()(Code)
Returns a string describing this JDBCCMPFieldMetaData. The exact details of the representation are unspecified and subject to change, but the following may be regarded as typical: "[JDBCCMPFieldMetaData: fieldName=name, [JDBCEntityMetaData: entityName=UserEJB]]" a string representation of the object



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.___ja__v__a2___s_._co___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.