Java Doc for DataContext.java in  » J2EE » Expresso » com » jcorporate » expresso » kernel » 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 » J2EE » Expresso » com.jcorporate.expresso.kernel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jcorporate.expresso.kernel.ComponentBase
      com.jcorporate.expresso.kernel.ContainerComponentBase
         com.jcorporate.expresso.kernel.DataContext

DataContext
public class DataContext extends ContainerComponentBase implements ComponentLifecycle(Code)
This class is the code equivilant of the original <context> tag in the older expresso-config files. It is basically a container used to map components to their underlying data sources.

Each data context will have at most one Persistence engine. It could be JDBC, or in the future, EJB, or even CSV files for persistence.

Each data context can use other data contexts for security. This is set via the securityContext property.
author:
   Michael Rimov
since:
   Expresso 5.1



Field Summary
static  Loggerlog
    

Constructor Summary
public  DataContext()
     The default constructor.

Method Summary
public synchronized  voidconfigure(Configuration newConfig)
     This is the implementation of the ExpressoComponent configure() component event lifecycle.
public synchronized  voiddestroy()
     Destroy event of the ComponentLifecycle interface.
public synchronized  StringgetContextDescription()
    
public synchronized  MapgetCustomProperties()
     Custom Properties Map that was identical to that of the customProperties in the old Expresso 5 config file.
public synchronized  StringgetCustomProperty(String key)
     Retrieves the custom property by key.
public synchronized  BooleangetHasSetupTables()
     Returns a Boolean object value equivilant to the tranditional javabean naming convention.
public synchronized  StringgetSecurityContext()
     Retrieve the name of the security context to use for objects in this data context.
public synchronized  StringgetSetupValue(String key)
     Retrieve a 'setup value'.
public synchronized  MapgetSetupValues()
     Retrieves a map of all setup values for this data context.
public synchronized  voidinitialize()
     Implementation of the ExpressoComponent initialize() component lifecycle event.
public  booleanisMailDebug()
    
public synchronized  booleanisSetupTables()
     Returns a boolean value equivilant to the tranditional javabean naming convention.
public synchronized  voidreconfigure(Configuration newConfig)
     Reconfiguration implementation of the Expresso event lifecycles.
public synchronized  voidsetContextDescription(String contextDescription)
     Sets the context description.
public synchronized  voidsetHasSetupTables(Boolean hasSetupTables)
     Sets the 'Has Setup Tables' parameter.
public  voidsetMailDebug(Boolean mailDebug)
     Sets whether emailings performed from the system should be debugged or not.
public  voidsetMailDebug(boolean mailDebug)
    
public synchronized  voidsetSecurityContext(String newValue)
     Sets the security context for this data context.
public synchronized  voidsetSetupValue(String key, String object)
     Sets the particular setup value to the specified string.

Field Detail
log
static Logger log(Code)




Constructor Detail
DataContext
public DataContext()(Code)
The default constructor. Should do nothing.




Method Detail
configure
public synchronized void configure(Configuration newConfig) throws ConfigurationException(Code)
This is the implementation of the ExpressoComponent configure() component event lifecycle.
Parameters:
  newConfig - The 'read only' configuration bean that provides allthe seutp values.
throws:
  ConfigurationException - upon error.



destroy
public synchronized void destroy()(Code)
Destroy event of the ComponentLifecycle interface. The underlying container implementation does the acutal destroying of all subcomponents before this component is itself destroyed.



getContextDescription
public synchronized String getContextDescription()(Code)
Retrieves the context description java.lang.String



getCustomProperties
public synchronized Map getCustomProperties()(Code)
Custom Properties Map that was identical to that of the customProperties in the old Expresso 5 config file. It is recommended that you no longer use this. java.util.Map



getCustomProperty
public synchronized String getCustomProperty(String key)(Code)
Retrieves the custom property by key.
Parameters:
  key - the key of the property name to look up java.lang.String, the value of the key.



getHasSetupTables
public synchronized Boolean getHasSetupTables()(Code)
Returns a Boolean object value equivilant to the tranditional javabean naming convention. Boolean.



getSecurityContext
public synchronized String getSecurityContext()(Code)
Retrieve the name of the security context to use for objects in this data context. java.lang.String



getSetupValue
public synchronized String getSetupValue(String key)(Code)
Retrieve a 'setup value'. This is a String property identical to the old Setup table, but any setup values here are context-wide... as opposed to Setup values for the root container have runtime scope.
Parameters:
  key - the key of the context. java.lang.String, the value of the property



getSetupValues
public synchronized Map getSetupValues()(Code)
Retrieves a map of all setup values for this data context. The setup values map is read only and will not allow any modifications. java.util.Map that is unmodifiable.



initialize
public synchronized void initialize()(Code)
Implementation of the ExpressoComponent initialize() component lifecycle event.



isMailDebug
public boolean isMailDebug()(Code)



isSetupTables
public synchronized boolean isSetupTables()(Code)
Returns a boolean value equivilant to the tranditional javabean naming convention. boolean true if this context has setup tables in it.



reconfigure
public synchronized void reconfigure(Configuration newConfig) throws ConfigurationException(Code)
Reconfiguration implementation of the Expresso event lifecycles.
Parameters:
  newConfig - The 'read only' configuration bean that provides allthe seutp values.
throws:
  ConfigurationException - upon error



setContextDescription
public synchronized void setContextDescription(String contextDescription)(Code)
Sets the context description.
Parameters:
  contextDescription - The name of the context



setHasSetupTables
public synchronized void setHasSetupTables(Boolean hasSetupTables)(Code)
Sets the 'Has Setup Tables' parameter. This may disappear in the future since it merely designates that the ExpressoSchema should be included in this particular data context.
Parameters:
  hasSetupTables - Boolean value if it does.



setMailDebug
public void setMailDebug(Boolean mailDebug)(Code)
Sets whether emailings performed from the system should be debugged or not.
Parameters:
  mailDebug - boolean if mail should be debugged



setMailDebug
public void setMailDebug(boolean mailDebug)(Code)



setSecurityContext
public synchronized void setSecurityContext(String newValue)(Code)
Sets the security context for this data context. The security context is the context used for any of the traditional 'setup tables'
Parameters:
  newValue - The name of the Security Context to map to



setSetupValue
public synchronized void setSetupValue(String key, String object)(Code)
Sets the particular setup value to the specified string.
Parameters:
  key - the key of the setup value
Parameters:
  object - the value of the setup value.



Methods inherited from com.jcorporate.expresso.kernel.ContainerComponentBase
public synchronized ComponentContainer getContainerImplementation()(Code)(Java Doc)
public synchronized ExpressoComponent locateComponent(String componentName)(Code)(Java Doc)
public synchronized void setContainerImplementation(ComponentContainer newContainer)(Code)(Java Doc)

Methods inherited from com.jcorporate.expresso.kernel.ComponentBase
public synchronized ComponentMetadata getMetaData()(Code)(Java Doc)
public synchronized URL getMetadataLocation()(Code)(Java Doc)
public synchronized Containable getParent()(Code)(Java Doc)
public synchronized void setMetaData(ComponentMetadata metadata)(Code)(Java Doc)
public synchronized void setParent(Containable parent)(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.