Java Doc for FieldDescriptor.java in  » Database-ORM » db-ojb » org » apache » ojb » broker » 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 » Database ORM » db ojb » org.apache.ojb.broker.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.ojb.broker.metadata.DescriptorBase
      org.apache.ojb.broker.metadata.AttributeDescriptorBase
         org.apache.ojb.broker.metadata.FieldDescriptor

All known Subclasses:   org.apache.ojb.broker.metadata.AnonymousFieldDescriptor,
FieldDescriptor
public class FieldDescriptor extends AttributeDescriptorBase implements XmlCapable,Serializable(Code)
A FieldDescriptor holds the mapping information for a specific member-variable of a persistent object.
Note: Be careful when use references of this class or caching instances of this class, because instances could become invalid (see MetadataManager ).
author:
   Thomas Mahler
version:
   $Id: FieldDescriptor.java,v 1.36.2.3 2005/12/21 22:26:10 tomdz Exp $


Field Summary
final public static  StringACCESS_ANONYMOUS
    
final public static  StringACCESS_READONLY
    
final public static  StringACCESS_READWRITE
    

Constructor Summary
public  FieldDescriptor(ClassDescriptor cld, int id)
    

Method Summary
public  Objectclone()
    
public  StringgetAccess()
    
public  intgetColNo()
    
public  StringgetColumnName()
    
public  StringgetColumnType()
    
public static  ComparatorgetComparator()
     returns a comparator that allows to sort a Vector of FieldMappingDecriptors according to their m_Order entries.
public  FieldConversiongetFieldConversion()
     Gets the fieldConversion.
public  StringgetFullColumnName()
    
public  JdbcTypegetJdbcType()
     Returns the corresponding database JdbcType ) of this field, defined by the JDBC 3.0 specification, e.g.
public  intgetLength()
    
public  intgetPrecision()
    
public  intgetScale()
    
public  StringgetSequenceName()
    
public  booleanisAccessReadOnly()
    
public  booleanisAnonymous()
     Returns true if this field is declared as anonymous field.
public  booleanisAutoIncrement()
    
public  booleanisIndexed()
    
public  booleanisLengthSpecified()
    
public  booleanisLocking()
     Gets the locking.
public  booleanisPrecisionSpecified()
    
public  booleanisPrimaryKey()
    
public  booleanisRequired()
    
public  booleanisScaleSpecified()
    
public  booleanisUpdateLock()
     Gets the updateLock updateLock controls whether the lock fields should be updated by OJB when a row is saved If false then the dbms needs to update the lock fields.
public  voidsetAccess(String access)
    
public  voidsetAutoIncrement(boolean autoIncrement)
    
public  voidsetColumnName(String str)
    
public  voidsetColumnType(String str)
    
public  voidsetFieldConversion(FieldConversion fieldConversion)
     Sets the fieldConversion.
public  voidsetFieldConversionClassName(String fieldConversionClassName)
     Sets the fieldConversion.
public  voidsetIndexed(boolean indexed)
    
public  voidsetLength(int length)
    
public  voidsetLengthSpecified(boolean lengthSpecified)
    
public  voidsetLocking(boolean locking)
     Sets the locking.
public  voidsetPrecision(int precision)
    
public  voidsetPrecisionSpecified(boolean precisionSpecified)
    
public  voidsetPrimaryKey(boolean b)
    
public  voidsetRequired(boolean required)
    
public  voidsetScale(int scale)
    
public  voidsetScaleSpecified(boolean scaleSpecified)
    
public  voidsetSequenceName(String sequenceName)
    
public  voidsetUpdateLock(boolean updateLock)
     Sets the updateLock updateLock controls whether the lock fields should be updated by OJB when a row is saved.
public  StringtoString()
     Returns a string representation of this class.
public  StringtoXML()
    

Field Detail
ACCESS_ANONYMOUS
final public static String ACCESS_ANONYMOUS(Code)



ACCESS_READONLY
final public static String ACCESS_READONLY(Code)



ACCESS_READWRITE
final public static String ACCESS_READWRITE(Code)




Constructor Detail
FieldDescriptor
public FieldDescriptor(ClassDescriptor cld, int id)(Code)
Constructor declaration
Parameters:
  cld - The parent ClassDescriptor
Parameters:
  id - A field id - unique against all other fields in the ClassDescriptor




Method Detail
clone
public Object clone()(Code)



getAccess
public String getAccess()(Code)



getColNo
public int getColNo()(Code)



getColumnName
public String getColumnName()(Code)



getColumnType
public String getColumnType()(Code)



getComparator
public static Comparator getComparator()(Code)
returns a comparator that allows to sort a Vector of FieldMappingDecriptors according to their m_Order entries.



getFieldConversion
public FieldConversion getFieldConversion()(Code)
Gets the fieldConversion. Returns a FieldConversion



getFullColumnName
public String getFullColumnName()(Code)
Answer the qualified ColumnName
ie: myTab.name



getJdbcType
public JdbcType getJdbcType()(Code)
Returns the corresponding database JdbcType ) of this field, defined by the JDBC 3.0 specification, e.g. VARCHAR, VARBINARY ...

The complement class is FieldType ) which manage the java field type, e.g. a String, byte[] ... Returns the mapped jdbc type of this field (see complement FieldType ), defined by the JDBC specification. The jdbc database type of this field.




getLength
public int getLength()(Code)



getPrecision
public int getPrecision()(Code)



getScale
public int getScale()(Code)



getSequenceName
public String getSequenceName()(Code)



isAccessReadOnly
public boolean isAccessReadOnly()(Code)



isAnonymous
public boolean isAnonymous()(Code)
Returns true if this field is declared as anonymous field.



isAutoIncrement
public boolean isAutoIncrement()(Code)



isIndexed
public boolean isIndexed()(Code)



isLengthSpecified
public boolean isLengthSpecified()(Code)



isLocking
public boolean isLocking()(Code)
Gets the locking. Returns a boolean



isPrecisionSpecified
public boolean isPrecisionSpecified()(Code)



isPrimaryKey
public boolean isPrimaryKey()(Code)



isRequired
public boolean isRequired()(Code)



isScaleSpecified
public boolean isScaleSpecified()(Code)



isUpdateLock
public boolean isUpdateLock()(Code)
Gets the updateLock updateLock controls whether the lock fields should be updated by OJB when a row is saved If false then the dbms needs to update the lock fields. The default is true Returns a boolean



setAccess
public void setAccess(String access)(Code)



setAutoIncrement
public void setAutoIncrement(boolean autoIncrement)(Code)



setColumnName
public void setColumnName(String str)(Code)



setColumnType
public void setColumnType(String str)(Code)



setFieldConversion
public void setFieldConversion(FieldConversion fieldConversion)(Code)
Sets the fieldConversion.
Parameters:
  fieldConversion - The fieldConversion to set



setFieldConversionClassName
public void setFieldConversionClassName(String fieldConversionClassName)(Code)
Sets the fieldConversion.
Parameters:
  fieldConversionClassName - The fieldConversion to set



setIndexed
public void setIndexed(boolean indexed)(Code)



setLength
public void setLength(int length)(Code)



setLengthSpecified
public void setLengthSpecified(boolean lengthSpecified)(Code)



setLocking
public void setLocking(boolean locking)(Code)
Sets the locking.
Parameters:
  locking - The locking to set



setPrecision
public void setPrecision(int precision)(Code)



setPrecisionSpecified
public void setPrecisionSpecified(boolean precisionSpecified)(Code)



setPrimaryKey
public void setPrimaryKey(boolean b)(Code)



setRequired
public void setRequired(boolean required)(Code)



setScale
public void setScale(int scale)(Code)



setScaleSpecified
public void setScaleSpecified(boolean scaleSpecified)(Code)



setSequenceName
public void setSequenceName(String sequenceName)(Code)



setUpdateLock
public void setUpdateLock(boolean updateLock)(Code)
Sets the updateLock updateLock controls whether the lock fields should be updated by OJB when a row is saved. If false then the dbms needs to update the lock fields. The default is true
Parameters:
  updateLock - The updateLock to set



toString
public String toString()(Code)
Returns a string representation of this class.



toXML
public String toXML()(Code)



Fields inherited from org.apache.ojb.broker.metadata.AttributeDescriptorBase
protected ClassDescriptor m_ClassDescriptor(Code)(Java Doc)
protected PersistentField m_PersistentField(Code)(Java Doc)

Methods inherited from org.apache.ojb.broker.metadata.AttributeDescriptorBase
public String getAttributeName()(Code)(Java Doc)
public ClassDescriptor getClassDescriptor()(Code)(Java Doc)
public PersistentField getPersistentField()(Code)(Java Doc)
public void setClassDescriptor(ClassDescriptor classDescriptor)(Code)(Java Doc)
public void setPersistentField(Class c, String fieldname)(Code)(Java Doc)
public void setPersistentField(PersistentField pf)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from org.apache.ojb.broker.metadata.DescriptorBase
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from org.apache.ojb.broker.metadata.DescriptorBase
public void addAttribute(String attributeName, String attributeValue)(Code)(Java Doc)
public String getAttribute(String attributeName, String defaultValue)(Code)(Java Doc)
public String getAttribute(String attributeName)(Code)(Java Doc)
public String[] getAttributeNames()(Code)(Java Doc)
public Map getAttributes()(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.