Java Doc for MetaData.java in  » Database-ORM » JPOX » org » jpox » 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 » JPOX » org.jpox.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jpox.metadata.MetaData

All known Subclasses:   org.jpox.metadata.InheritanceMetaData,  org.jpox.metadata.TableGeneratorMetaData,  org.jpox.metadata.DiscriminatorMetaData,  org.jpox.metadata.QueryResultMetaData,  org.jpox.metadata.AbstractElementMetaData,  org.jpox.metadata.AbstractConstraintMetaData,  org.jpox.metadata.JoinMetaData,  org.jpox.metadata.IdentityMetaData,  org.jpox.metadata.PersistenceUnitMetaData,  org.jpox.metadata.ContainerMetaData,  org.jpox.metadata.OrderMetaData,  org.jpox.metadata.SequenceMetaData,  org.jpox.metadata.QueryMetaData,  org.jpox.metadata.PersistenceFileMetaData,  org.jpox.metadata.FetchPlanMetaData,  org.jpox.metadata.PrimaryKeyMetaData,  org.jpox.metadata.FetchGroupMetaData,  org.jpox.metadata.PackageMetaData,  org.jpox.metadata.EmbeddedMetaData,  org.jpox.metadata.AbstractMemberMetaData,  org.jpox.metadata.AbstractClassMetaData,  org.jpox.metadata.EventListenerMetaData,  org.jpox.metadata.FileMetaData,  org.jpox.metadata.VersionMetaData,  org.jpox.metadata.ColumnMetaData,  org.jpox.metadata.ImplementsMetaData,
MetaData
public class MetaData implements Serializable(Code)
Base class for all MetaData.

MetaData Lifecycle

The states represent the lifecycle of a MetaData object. The lifecycle goes as follows :
  1. MetaData object is created (values passed in from a parsed file, or manually generated)
  2. MetaData object is populated (maybe pass in a class that it represents, creating any additional information that wasn't in the initial data).
  3. MetaData object is initialised (any internal arrays are set up, and additions of data is blocked from this point).
  4. MetaData object is added to with runtime information like actual column names and types in use.

MetaData Extensability

All MetaData elements are extensible with extensions for a "vendor-name". Extensions take the form of a key and a value.
version:
   $Revision: 1.12 $



Field Summary
final public static  StringJPOX_VENDOR_NAME
     Vendor name used by JPOX for extensions.
protected static  LocaliserLOCALISER
    
final public static  intMETADATA_CREATED_STATE
     State representing the start state of MetaData, representing the initial values passed in.
final public static  intMETADATA_INITIALISED_STATE
     State reflecting that MetaData object has been initialised with any internal info required.
final public static  intMETADATA_POPULATED_STATE
     State reflecting that MetaData has been populated with real class definition adding any defaulted info.
final public static  intMETADATA_USED_STATE
     State reflecting that MetaData object has been modified with usage information (e.g defaulted column names).
protected  Collectionextensions
     List of extensions for this MetaData element.
protected  intmetaDataState
     State of the MetaData.
protected  MetaDataparent
     Parent MetaData object, allowing hierarchical MetaData structure.

Constructor Summary
public  MetaData(MetaData parent)
     Constructor.

Method Summary
public  voidaddExtension(String vendor, String key, String value)
     Append new Extension (for the specified vendor).
public  voidaddExtension(String key, String value)
     Append new Extension (for JPOX).
public  ExtensionMetaData[]getExtensions()
     Accessor for the extensions.
public  intgetNoOfExtensions()
     Accessor for the number of extensions.
public  MetaDatagetParent()
     Accessor for the parent MetaData object.
public  StringgetValueForExtension(String key)
     Accessor for the value of a particular extension (for JPOX).
public  String[]getValuesForExtension(String key)
     Accessor for the value of a particular extension (for JPOX), but splitting it into separate parts.
public  booleanhasExtension(String key)
     Accessor for whether an extension exists (for JPOX).
public  voidinitialise()
     Method to initialise the object.
public  booleanisInitialised()
     Accessor for whether the object state is "initialised" (at least).
public  booleanisPopulated()
     Accessor for whether the object state is "populated" (at least).
public  booleanisUsed()
     Accessor for whether the object state is "used" (has been modified with usage info).
public  voidpopulate()
     Method to populate the object.
public  voidremoveExtension(String key)
     Method to remove a (JPOX) MetaData extension.
public  voidsetInitialised()
     Utility to set the state as initialised.
public  voidsetParent(MetaData md)
     Convenience method to set the parent of this MetaData element.
public  voidsetPopulated()
     Utility to set the state as populated.
public  voidsetUsed()
     Utility to set the state as used.
public  StringtoString()
     Accessor for a string representation of the object.
public  StringtoString(String prefix, String indent)
     Returns a string representation of the object.

Field Detail
JPOX_VENDOR_NAME
final public static String JPOX_VENDOR_NAME(Code)
Vendor name used by JPOX for extensions.



LOCALISER
protected static Localiser LOCALISER(Code)



METADATA_CREATED_STATE
final public static int METADATA_CREATED_STATE(Code)
State representing the start state of MetaData, representing the initial values passed in.



METADATA_INITIALISED_STATE
final public static int METADATA_INITIALISED_STATE(Code)
State reflecting that MetaData object has been initialised with any internal info required.



METADATA_POPULATED_STATE
final public static int METADATA_POPULATED_STATE(Code)
State reflecting that MetaData has been populated with real class definition adding any defaulted info.



METADATA_USED_STATE
final public static int METADATA_USED_STATE(Code)
State reflecting that MetaData object has been modified with usage information (e.g defaulted column names).



extensions
protected Collection extensions(Code)
List of extensions for this MetaData element.



metaDataState
protected int metaDataState(Code)
State of the MetaData.



parent
protected MetaData parent(Code)
Parent MetaData object, allowing hierarchical MetaData structure.




Constructor Detail
MetaData
public MetaData(MetaData parent)(Code)
Constructor. Taking the parent MetaData object (if any).
Parameters:
  parent - The parent MetaData object.




Method Detail
addExtension
public void addExtension(String vendor, String key, String value)(Code)
Append new Extension (for the specified vendor). Will throw an InvalidMetaDataException if the input is invalid.
Parameters:
  vendor - vendor-name tag value
Parameters:
  key - key tag value
Parameters:
  value - value tag value



addExtension
public void addExtension(String key, String value)(Code)
Append new Extension (for JPOX). Will throw an InvalidMetaDataException if the input is invalid.
Parameters:
  key - key tag value
Parameters:
  value - value tag value



getExtensions
public ExtensionMetaData[] getExtensions()(Code)
Accessor for the extensions. The extensions.



getNoOfExtensions
public int getNoOfExtensions()(Code)
Accessor for the number of extensions. Number of extensions



getParent
public MetaData getParent()(Code)
Accessor for the parent MetaData object. Parent MetaData object.



getValueForExtension
public String getValueForExtension(String key)(Code)
Accessor for the value of a particular extension (for JPOX).
Parameters:
  key - The key of the extension The value of the extension (null if not existing)



getValuesForExtension
public String[] getValuesForExtension(String key)(Code)
Accessor for the value of a particular extension (for JPOX), but splitting it into separate parts. This is for extension tags that have a value as comma separated.
Parameters:
  key - The key of the extension The value(s) of the extension (null if not existing)



hasExtension
public boolean hasExtension(String key)(Code)
Accessor for whether an extension exists (for JPOX).
Parameters:
  key - The key of the extension Whether the extension exists



initialise
public void initialise()(Code)
Method to initialise the object. The state changes to "INITIALISED" after this call.



isInitialised
public boolean isInitialised()(Code)
Accessor for whether the object state is "initialised" (at least). Whether it is initialised



isPopulated
public boolean isPopulated()(Code)
Accessor for whether the object state is "populated" (at least). Whether it is populated.



isUsed
public boolean isUsed()(Code)
Accessor for whether the object state is "used" (has been modified with usage info). Whether it is used.



populate
public void populate()(Code)
Method to populate the object. The state changes to "POPULATED" after this call.



removeExtension
public void removeExtension(String key)(Code)
Method to remove a (JPOX) MetaData extension.
Parameters:
  key - Key of the tag



setInitialised
public void setInitialised()(Code)
Utility to set the state as initialised.



setParent
public void setParent(MetaData md)(Code)
Convenience method to set the parent of this MetaData element. Only valid for calling until the MetaData is populated/initialised and throws a JPOXException thereafter.
Parameters:
  md - The parent



setPopulated
public void setPopulated()(Code)
Utility to set the state as populated.



setUsed
public void setUsed()(Code)
Utility to set the state as used.



toString
public String toString()(Code)
Accessor for a string representation of the object. a string representation of the object.



toString
public String toString(String prefix, String indent)(Code)
Returns a string representation of the object.
Parameters:
  prefix - prefix string
Parameters:
  indent - indent string 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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.