Java Doc for XPojoDataSourceEx.java in  » XML-UI » xui32 » com » xoetrope » data » pojo » 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 » XML UI » xui32 » com.xoetrope.data.pojo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.xoetrope.data.pojo.XPojoDataSourceEx

All known Subclasses:   com.xoetrope.data.pojo.XPersistentPojoDataSourceEx,
XPojoDataSourceEx
public class XPojoDataSourceEx extends XDataSource (Code)

A data source for working with POJOs in the data visualiser.

Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Xoetrope.



Field Summary
final protected static  String[]GETTER_PREFIXES
    
final protected static  String[]SETTER_PREFIXES
    
protected  Hashtableadapters
    
protected  ArrayListmodelListeners
    
protected  Hashtableoverrides
    
protected  ObjectpojoContext
    
protected  XModelpojoRootModel
    
protected  XPropertiesRetrieverpropertiesRetriever
    

Constructor Summary
public  XPojoDataSourceEx(XProject project)
    

Method Summary
public  XPojoModelVisadaptPojo(Object pojo, XModel parentNode)
    
public  XPojoModelVisadaptPojo(Method getter, Method setter, String propertyName, XModel parentNode)
     Adapts the POJO returned by method invoked on a parent object.
public  XPojoModelVisadaptPojo(Class pojoClass, String propertyName, XModel parentNode)
     Adapts the transient pojo of the specified type.
protected  XPojoAdapterExcreateAdapter(Class pojoClass)
    
protected  voidcustomizeProperty(XPojoAdapterEx adapter, XmlElement propertyElement)
    
public  XPojoAdapterExgetAdapter(Class pojoClass)
    
protected static  StringgetDispValue(Object pojo)
     Gets the pojo caption that will appear in the visualiser tree node.
public  ObjectgetPojoContext()
     Returns the pojo context object.
protected  XProjectClassLoadergetProjectClassLoader()
     Returns the class loader being used to load current project's classes.
public  XPropertiesRetrievergetPropertiesRetriever()
     Returns the finder arguments values holder.
public static  booleangetterSupported(Method method, boolean prefixes)
    
public  voidloadTable(XmlElement source, XModel model)
    
protected  voidoverrideAdapter(XPojoAdapterEx adapter)
     Overrides the adapter, adds the customization specified by the configuration.
public static  booleansetterSupported(Method method, boolean prefixes)
    

Field Detail
GETTER_PREFIXES
final protected static String[] GETTER_PREFIXES(Code)



SETTER_PREFIXES
final protected static String[] SETTER_PREFIXES(Code)



adapters
protected Hashtable adapters(Code)



modelListeners
protected ArrayList modelListeners(Code)



overrides
protected Hashtable overrides(Code)



pojoContext
protected Object pojoContext(Code)



pojoRootModel
protected XModel pojoRootModel(Code)



propertiesRetriever
protected XPropertiesRetriever propertiesRetriever(Code)




Constructor Detail
XPojoDataSourceEx
public XPojoDataSourceEx(XProject project)(Code)
Creates new instance of XPojoDataSource
Parameters:
  project - the owning project




Method Detail
adaptPojo
public XPojoModelVis adaptPojo(Object pojo, XModel parentNode)(Code)
Adapt a POJO for use in the model, applying any overrides to the POJO's API defined in the data source's configuration file (by default pojo.xml)
Parameters:
  pojo - the object being adapted
Parameters:
  parentNode - the parent model node the pojo model node encapsulating the pojo



adaptPojo
public XPojoModelVis adaptPojo(Method getter, Method setter, String propertyName, XModel parentNode)(Code)
Adapts the POJO returned by method invoked on a parent object.
Parameters:
  parentNode - parent model node
Parameters:
  method - the Method that returns the pojo which is to be adapted the pojo model node encapsulating the pojo



adaptPojo
public XPojoModelVis adaptPojo(Class pojoClass, String propertyName, XModel parentNode)(Code)
Adapts the transient pojo of the specified type.
Parameters:
  pojoClass - the type of the underlying pojo
Parameters:
  propertyName - the name of the transient property
Parameters:
  parentNode - parent model node



createAdapter
protected XPojoAdapterEx createAdapter(Class pojoClass)(Code)
Creates a new instance of XPojoAdapterEx
Parameters:
  pojoClass - the class to be adapted



customizeProperty
protected void customizeProperty(XPojoAdapterEx adapter, XmlElement propertyElement)(Code)



getAdapter
public XPojoAdapterEx getAdapter(Class pojoClass)(Code)
Gets the adapter for the specified class
Parameters:
  pojoClass - the class whose adapter isto be returned the adapter



getDispValue
protected static String getDispValue(Object pojo)(Code)
Gets the pojo caption that will appear in the visualiser tree node.
Parameters:
  pojo - Object the caption



getPojoContext
public Object getPojoContext()(Code)
Returns the pojo context object. pojo context object



getProjectClassLoader
protected XProjectClassLoader getProjectClassLoader()(Code)
Returns the class loader being used to load current project's classes. XProjectClassLoader of the current project



getPropertiesRetriever
public XPropertiesRetriever getPropertiesRetriever()(Code)
Returns the finder arguments values holder.



getterSupported
public static boolean getterSupported(Method method, boolean prefixes)(Code)
Determines whether the passed getter is supported
Parameters:
  method - the Method to be checked
Parameters:
  prefixes - indicates whether the getter prefixes should be checked true if the method is supported, false otherwise



loadTable
public void loadTable(XmlElement source, XModel model)(Code)
Recursively load the model data
Parameters:
  source - the source element
Parameters:
  model - the model node for the source element



overrideAdapter
protected void overrideAdapter(XPojoAdapterEx adapter)(Code)
Overrides the adapter, adds the customization specified by the configuration.
Parameters:
  adapter - the adapter to be customized



setterSupported
public static boolean setterSupported(Method method, boolean prefixes)(Code)
Determines whether the passed setter method is supported
Parameters:
  method - the method to be queried
Parameters:
  prefixes - indicates whether the getter prefixes should be checked true if the passed method is supported, falseotherwise



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