Java Doc for Datasources.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » database » 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 » Web Framework » rife 1.6.1 » com.uwyn.rife.database 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.uwyn.rife.database.Datasources

Datasources
public class Datasources (Code)
Contains a collection of Datasource instances that have been created from an XML definition. A Datasources instance can either be created by calling the public constructor or by executing the ParticipantDatasources which participates in the application-wide repository.
author:
   Geert Bevin (gbevin[remove] at uwyn dot com)
version:
   $Revision: 3634 $
See Also:   com.uwyn.rife.database.Datasource
See Also:   com.uwyn.rife.database.Xml2Datasources
See Also:   com.uwyn.rife.rep.Rep
See Also:   com.uwyn.rife.rep.participants.ParticipantDatasources
since:
   1.0


Field Summary
final public static  StringDEFAULT_PARTICIPANT_NAME
    

Constructor Summary
public  Datasources()
     Creates a new empty Datasources instance.
public  Datasources(String xmlPath, ResourceFinder resourceFinder)
     Creates a new Datasources instance from the definitions in an XML file.

Method Summary
public  voidcleanup()
     Cleans up all connections that have been reserved by this datasource.
public  DatasourcegetDatasource(String name)
     Retrieves the Datasource that corresponds to a provided name.
public  Collection<String>getDatasourceNames()
     Retrieves a collection of all the Datasource names that are known by this Datasources instance.
public static  DatasourcesgetRepInstance()
     Retrieves the Datasources instance that is initialized by the ParticipantDatasources participant in the application-wide repository.
public  StringgetXmlPath()
    
public static  booleanhasRepInstance()
     Checks if a ParticipantDatasources participant has been initialized and is available from the application-wide repository.
public  voidsetDatasource(String name, Datasource datasource)
     Stores a Datasource with a provided name to be able to reference it later.
public  voidstoreToXml()
     Stores the XML document with all the data in the current Datasources instance to the same file that populated this instance.
public synchronized  voidstoreToXml(File destination)
     Stores the XML document with all the data in the current Datasources instance to the provided file.
public  StringtoXml()
    

Field Detail
DEFAULT_PARTICIPANT_NAME
final public static String DEFAULT_PARTICIPANT_NAME(Code)




Constructor Detail
Datasources
public Datasources() throws DatasourcesException(Code)
Creates a new empty Datasources instance.
since:
   1.0



Datasources
public Datasources(String xmlPath, ResourceFinder resourceFinder) throws DatasourcesException, DatasourceNotFoundException(Code)
Creates a new Datasources instance from the definitions in an XML file.
Parameters:
  xmlPath - the path of the XML resource that will be used for thepopulation
Parameters:
  resourceFinder - a ResourceFinder instance that will beused to find the file that corresponds to the providedxmlPath
throws:
  DatasourcesException - when an exception occured during theobtainance of the resource's modification time or during the processingof the XML file
since:
   1.0




Method Detail
cleanup
public void cleanup() throws DatabaseException(Code)
Cleans up all connections that have been reserved by this datasource.
throws:
  DatabaseException - when an error occured during the cleanup
since:
   1.0



getDatasource
public Datasource getDatasource(String name)(Code)
Retrieves the Datasource that corresponds to a provided name.
Parameters:
  name - a String that identifies theDatasource that has to be retrieved the requested Datasource instance; or

null if name isn't known
since:
   1.0




getDatasourceNames
public Collection<String> getDatasourceNames()(Code)
Retrieves a collection of all the Datasource names that are known by this Datasources instance. the requested Collection
since:
   1.0



getRepInstance
public static Datasources getRepInstance()(Code)
Retrieves the Datasources instance that is initialized by the ParticipantDatasources participant in the application-wide repository. the requested Datasources instances; or

null if the ParticipantDatasources couldn't befound
See Also:   Datasources.hasRepInstance()
since:
   1.0




getXmlPath
public String getXmlPath()(Code)
Retrieves the path of the XML document that populated this DataSources instance the path of the XML document that populated thisDataSources instance
since:
   1.0



hasRepInstance
public static boolean hasRepInstance()(Code)
Checks if a ParticipantDatasources participant has been initialized and is available from the application-wide repository. true if this participant is available; or

false otherwise
See Also:   Datasources.getRepInstance()
since:
   1.0




setDatasource
public void setDatasource(String name, Datasource datasource)(Code)
Stores a Datasource with a provided name to be able to reference it later.
Parameters:
  name - a String that identifies theDatasource
Parameters:
  datasource - the Datasource instance that has to bestored
since:
   1.0



storeToXml
public void storeToXml() throws DatasourcesException(Code)
Stores the XML document with all the data in the current Datasources instance to the same file that populated this instance.
throws:
  DatasourcesException - when an error occurred during thestorage
since:
   1.0



storeToXml
public synchronized void storeToXml(File destination) throws DatasourcesException(Code)
Stores the XML document with all the data in the current Datasources instance to the provided file.
Parameters:
  destination - the File in which the data will be stored
throws:
  DatasourcesException - when an error occurred during thestorage



toXml
public String toXml()(Code)
Creates an XML document with all the data in the current Datasources instance the constructed XML document as a String
since:
   1.0



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.