Java Doc for DatabaseEdit.java in  » J2EE » Enhydra-Application-Framework » org » enhydra » server » 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 » Enhydra Application Framework » org.enhydra.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.server.DatabaseEdit

DatabaseEdit
public class DatabaseEdit (Code)
Instances of this class are used in manipulation and editing of DatabaseManager section parameters, defined in application configuration file. Also this class contains method saveState which provides saving changed configuration onto disk.



Constructor Summary
public  DatabaseEdit(Config config)
     Construction of DatabaseEdit object for particular application with given configuration file.

Method Summary
public  booleanaddDatabase(String dBname)
     Adds database name to list of databases used by application.
public  booleanexistDbName(String dBname)
     Checks existence of given database name in the list of already defined databases for application.
Parameters:
  dBname - the name of the database.
public  StringgetDBnameClassType(String dBname)
     Gets value of ClassType parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set.
public  StringgetDBnameConnectionAllocationTimeout(String dBname)
     Gets value of Connection.
public  StringgetDBnameConnectionLogging(String dBname)
     Gets value of Connection.Logging parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set.
public  StringgetDBnameConnectionMaxPoolSize(String dBname)
     Gets value of Connection.MaxPoolSize parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set.
public  StringgetDBnameConnectionPassword(String dBname)
     Gets value of Connection.Password parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set.
public  StringgetDBnameConnectionUrl(String dBname)
     Gets value of Connection.Url parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set.
public  StringgetDBnameConnectionUser(String dBname)
     Gets value of Connection.User parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set.
public  StringgetDBnameJdbcDriver(String dBname)
     Gets value of JdbcDriver parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set.
public  StringgetDBnameObjectIdCacheSize(String dBname)
     Gets value of ObjectId.CacheSize parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set.
public  StringgetDBnameObjectIdMinValue(String dBname)
     Gets value of ObjectId.MinValue parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set.
public  String[]getDatabases()
     Gets list of available database names.
public  StringgetDebug()
     Gets value of Debug parameter in Config object of application. value of parameter represented as String.
public  StringgetDefaultDatabase()
     Gets value of DefaultDatabase parameter in Config object of application.
public  voidrefreshAllDbParameters(String dBname)
     Finds all parameters for specified database in configuration file and sets they to temporary object arguments.
public  booleanremoveDatabase(String dBname)
     Removes database name from array of databases used by application.
public  booleansaveState()
     Save state of DatabaseManager configuration parameters into application configuration file.
public  voidsetDBnameClassType(String value, String dBname)
     Sets value of ClassType parameter for given database name in Config object of application.
public  voidsetDBnameConnectionAllocationTimeout(String value, String dBname)
     Sets value of Connection.AllocationTimeout parameter for given database name in Config object of application.
public  voidsetDBnameConnectionLogging(String value, String dBname)
     Sets value of Connection.Logging parameter for given database name in Config object of application.
Parameters:
  value - given value of Connection.Logging parameter represented as String.Allowable values for this parameter are "true" and "false".
public  voidsetDBnameConnectionMaxPoolSize(String value, String dBname)
     Sets value of Connection.MaxPoolSize parameter for given database name in Config object of application.
public  voidsetDBnameConnectionPassword(String value, String dBname)
     Sets value of Connection.Password parameter for given database name in Config object of application.
public  voidsetDBnameConnectionUrl(String value, String dBname)
     Sets value of Connection.Url parameter for given database name in Config object of application.
public  voidsetDBnameConnectionUser(String value, String dBname)
     Sets value of Connection.User parameter for given database name in Config object of application.
public  voidsetDBnameJdbcDriver(String value, String dBname)
     Sets value of JdbcDriver parameter for given database name in Config object of application.
public  voidsetDBnameObjectIdCacheSize(String value, String dBname)
     Sets value of ObjectId.CacheSize parameter for given database name in Config object of application.
public  voidsetDBnameObjectIdMinValue(String value, String dBname)
     Sets value of ObjectId.MinValue parameter for given database name in Config object of application.
public  voidsetDatabases(String[] databases)
     Sets list of database names.
public  voidsetDebug(String debug)
     Sets value of Debug parameter in Config object of application.
Parameters:
  debug - value of parameter represented as String.
public  voidsetDefaultDatabase(String dBname)
     Sets value of DefaultDatabase parameter in Config object of application.


Constructor Detail
DatabaseEdit
public DatabaseEdit(Config config) throws ConfigException, KeywordValueException(Code)
Construction of DatabaseEdit object for particular application with given configuration file.
Parameters:
  config - configuration file of the application represented as Configobject.
exception:
  ConfigException -
exception:
  KeywordValueException -




Method Detail
addDatabase
public boolean addDatabase(String dBname) throws KeywordValueException(Code)
Adds database name to list of databases used by application. This list is represented by "Datasbase" parameter in configuration file of the application.
Parameters:
  dBname - the name of the database. true = database name is sucessfuly added, false = database name isnot added.
exception:
  KeywordValueException -



existDbName
public boolean existDbName(String dBname)(Code)
Checks existence of given database name in the list of already defined databases for application.
Parameters:
  dBname - the name of the database. true = database name already exists, false = database name does notexist.



getDBnameClassType
public String getDBnameClassType(String dBname) throws KeywordValueException(Code)
Gets value of ClassType parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String
throws:
  KeywordValueException -



getDBnameConnectionAllocationTimeout
public String getDBnameConnectionAllocationTimeout(String dBname) throws KeywordValueException(Code)
Gets value of Connection. AllocationTimeout parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String
throws:
  KeywordValueException -



getDBnameConnectionLogging
public String getDBnameConnectionLogging(String dBname) throws KeywordValueException(Code)
Gets value of Connection.Logging parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String. It could has values "true","false" or "N/A" in case of parameter absence.
throws:
  KeywordValueException -



getDBnameConnectionMaxPoolSize
public String getDBnameConnectionMaxPoolSize(String dBname) throws KeywordValueException(Code)
Gets value of Connection.MaxPoolSize parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String
throws:
  KeywordValueException -



getDBnameConnectionPassword
public String getDBnameConnectionPassword(String dBname) throws KeywordValueException(Code)
Gets value of Connection.Password parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String
throws:
  KeywordValueException -



getDBnameConnectionUrl
public String getDBnameConnectionUrl(String dBname) throws KeywordValueException(Code)
Gets value of Connection.Url parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String
throws:
  KeywordValueException -



getDBnameConnectionUser
public String getDBnameConnectionUser(String dBname) throws KeywordValueException(Code)
Gets value of Connection.User parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String
throws:
  KeywordValueException -



getDBnameJdbcDriver
public String getDBnameJdbcDriver(String dBname) throws KeywordValueException(Code)
Gets value of JdbcDriver parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String
throws:
  KeywordValueException -



getDBnameObjectIdCacheSize
public String getDBnameObjectIdCacheSize(String dBname) throws KeywordValueException(Code)
Gets value of ObjectId.CacheSize parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String
throws:
  KeywordValueException -



getDBnameObjectIdMinValue
public String getDBnameObjectIdMinValue(String dBname) throws KeywordValueException(Code)
Gets value of ObjectId.MinValue parameter for given database name from Config object of application.
Parameters:
  dBname - name of database which parameter's value is changed or set. value of parameter represented as String
throws:
  KeywordValueException -



getDatabases
public String[] getDatabases()(Code)
Gets list of available database names. list of available databases represented as String array
exception:
  KeywordValueException -



getDebug
public String getDebug() throws KeywordValueException(Code)
Gets value of Debug parameter in Config object of application. value of parameter represented as String. It could has values"true", "false" or "N/A" in case of parameter absence.
throws:
  KeywordValueException -



getDefaultDatabase
public String getDefaultDatabase() throws KeywordValueException(Code)
Gets value of DefaultDatabase parameter in Config object of application. value of parameter represented as String.
throws:
  KeywordValueException -



refreshAllDbParameters
public void refreshAllDbParameters(String dBname) throws KeywordValueException(Code)
Finds all parameters for specified database in configuration file and sets they to temporary object arguments.
Parameters:
  dBname - name of database which parameters are searched.
exception:
  KeywordValueException -



removeDatabase
public boolean removeDatabase(String dBname) throws KeywordValueException(Code)
Removes database name from array of databases used by application. This list is represented by "Datasbase" parameter in configuration file of the application.
Parameters:
  dBname - the name of the database. true = database name is sucessfuly removed, false = database name isnot removed.
exception:
  KeywordValueException -



saveState
public boolean saveState()(Code)
Save state of DatabaseManager configuration parameters into application configuration file. true = state is successfully saved, false = otherwise



setDBnameClassType
public void setDBnameClassType(String value, String dBname) throws KeywordValueException(Code)
Sets value of ClassType parameter for given database name in Config object of application.
Parameters:
  value - given value of ClassType parameter represented as String
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDBnameConnectionAllocationTimeout
public void setDBnameConnectionAllocationTimeout(String value, String dBname) throws KeywordValueException(Code)
Sets value of Connection.AllocationTimeout parameter for given database name in Config object of application.
Parameters:
  value - given value of Connection.AllocationTimeout parameter representedas String.
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDBnameConnectionLogging
public void setDBnameConnectionLogging(String value, String dBname) throws KeywordValueException(Code)
Sets value of Connection.Logging parameter for given database name in Config object of application.
Parameters:
  value - given value of Connection.Logging parameter represented as String.Allowable values for this parameter are "true" and "false". Any other valuewill be treated as N/A (not available).
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDBnameConnectionMaxPoolSize
public void setDBnameConnectionMaxPoolSize(String value, String dBname) throws KeywordValueException(Code)
Sets value of Connection.MaxPoolSize parameter for given database name in Config object of application.
Parameters:
  value - given value of Connection.MaxPoolSize parameter represented as String
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDBnameConnectionPassword
public void setDBnameConnectionPassword(String value, String dBname) throws KeywordValueException(Code)
Sets value of Connection.Password parameter for given database name in Config object of application.
Parameters:
  value - given value of Connection.Password parameter represented as String
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDBnameConnectionUrl
public void setDBnameConnectionUrl(String value, String dBname) throws KeywordValueException(Code)
Sets value of Connection.Url parameter for given database name in Config object of application.
Parameters:
  value - given value of Connection.Url parameter represented as String
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDBnameConnectionUser
public void setDBnameConnectionUser(String value, String dBname) throws KeywordValueException(Code)
Sets value of Connection.User parameter for given database name in Config object of application.
Parameters:
  value - given value of Connection.User parameter represented as String
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDBnameJdbcDriver
public void setDBnameJdbcDriver(String value, String dBname) throws KeywordValueException(Code)
Sets value of JdbcDriver parameter for given database name in Config object of application.
Parameters:
  value - given value of JdbcDriver parameter represented as String.
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDBnameObjectIdCacheSize
public void setDBnameObjectIdCacheSize(String value, String dBname) throws KeywordValueException(Code)
Sets value of ObjectId.CacheSize parameter for given database name in Config object of application.
Parameters:
  value - given value of ObjectId.CacheSize parameter represented as String.
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDBnameObjectIdMinValue
public void setDBnameObjectIdMinValue(String value, String dBname) throws KeywordValueException(Code)
Sets value of ObjectId.MinValue parameter for given database name in Config object of application.
Parameters:
  value - given value of ObjectId.MinValue parameter represented as String
Parameters:
  dBname - name of database which parameter's value is changed or set.
throws:
  KeywordValueException -



setDatabases
public void setDatabases(String[] databases) throws KeywordValueException(Code)
Sets list of database names. Old settings are remowed and are swapped with given new list. All corresponding database parameters, for given database names in list, with its default initial values will be added too
Parameters:
  databases - list of database names.
exception:
  KeywordValueException -



setDebug
public void setDebug(String debug) throws KeywordValueException(Code)
Sets value of Debug parameter in Config object of application.
Parameters:
  debug - value of parameter represented as String. It can takes values"true" or "false". If wrong value is specified, it will be treated as "false".Also if values are null or empty String, or "N/A" DatabaseManager.Debug parameterwill be removed.
throws:
  KeywordValueException -



setDefaultDatabase
public void setDefaultDatabase(String dBname) throws KeywordValueException(Code)
Sets value of DefaultDatabase parameter in Config object of application.
Parameters:
  dBname - given value of parameter DefaultDatabase represented as String.
throws:
  KeywordValueException -



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.