Java Doc for CmsUpdateDBUpdateOU.java in  » Content-Management-System » opencms » org » opencms » setup » update6to7 » generic » 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 » Content Management System » opencms » org.opencms.setup.update6to7.generic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.opencms.setup.update6to7.A_CmsUpdateDBPart
      org.opencms.setup.update6to7.generic.CmsUpdateDBUpdateOU

All known Subclasses:   org.opencms.setup.update6to7.mysql.CmsUpdateDBUpdateOU,  org.opencms.setup.update6to7.postgresql.CmsUpdateDBUpdateOU,  org.opencms.setup.update6to7.oracle.CmsUpdateDBUpdateOU,
CmsUpdateDBUpdateOU
public class CmsUpdateDBUpdateOU extends A_CmsUpdateDBPart (Code)
This class upgrades the database tables containing new OU columns.

These tables are cms_groups cms_history_principals cms_history_projects cms_projects cms_users
author:
   Roland Metzler
version:
   $Revision: 1.2 $
since:
   7.0.0



Field Summary
final protected static  StringGROUP_OU_COLUMN
    
final protected static  StringPROJECT_OU_COLUMN
    
final protected static  StringQUERY_ADD_OUS_TO_TABLE
    
final protected static  StringQUERY_KEY_ALTER_TABLE
    
final protected static  StringREPLACEMENT_COLUMNNAME
    
final protected static  StringREPLACEMENT_TABLENAME
    
final protected static  StringTABLE_BACKUP_PROJECTS
    
final protected static  StringTABLE_CMS_GROUPS
    
final protected static  StringTABLE_CMS_USERS
    
final protected static  StringTABLE_PROJECTS
    
final protected static  StringUSER_OU_COLUMN
    

Constructor Summary
public  CmsUpdateDBUpdateOU()
    

Method Summary
protected  booleanfindOUColumn(CmsSetupDb dbCon, String table, String ouColumn)
     Checks if the column USER_OU is found in the resultset.


Parameters:
  dbCon - the db connection interface
Parameters:
  table - the table to check
Parameters:
  ouColumn - the type of OU to find (e.g.

protected  voidinternalExecute(CmsSetupDb dbCon)
    
protected  intupdateOUs(CmsSetupDb dbCon, String table, String ouColumn)
    

Field Detail
GROUP_OU_COLUMN
final protected static String GROUP_OU_COLUMN(Code)
Constant for the GROUP_OU column.




PROJECT_OU_COLUMN
final protected static String PROJECT_OU_COLUMN(Code)
Constant for the PROJECT_OU column.




QUERY_ADD_OUS_TO_TABLE
final protected static String QUERY_ADD_OUS_TO_TABLE(Code)
Constant for the query that adds the ous to the table.




QUERY_KEY_ALTER_TABLE
final protected static String QUERY_KEY_ALTER_TABLE(Code)
Constant for the alteration of the table.




REPLACEMENT_COLUMNNAME
final protected static String REPLACEMENT_COLUMNNAME(Code)
Constant for the replacement in the SQL query for the columnname.




REPLACEMENT_TABLENAME
final protected static String REPLACEMENT_TABLENAME(Code)
Constant for the replacement in the SQL query for the tablename.




TABLE_BACKUP_PROJECTS
final protected static String TABLE_BACKUP_PROJECTS(Code)
Constant for the CMS_BACKUP_PROJECTS table.




TABLE_CMS_GROUPS
final protected static String TABLE_CMS_GROUPS(Code)
Constant for the CMS_GROUPS table.




TABLE_CMS_USERS
final protected static String TABLE_CMS_USERS(Code)
Constant for the CMS_USERS table.




TABLE_PROJECTS
final protected static String TABLE_PROJECTS(Code)
Constant for the CMS_PROJECTS table.




USER_OU_COLUMN
final protected static String USER_OU_COLUMN(Code)
Constant for the USER_OU column.





Constructor Detail
CmsUpdateDBUpdateOU
public CmsUpdateDBUpdateOU() throws IOException(Code)
Constructor.


throws:
  IOException - if the sql queries properties file could not be read





Method Detail
findOUColumn
protected boolean findOUColumn(CmsSetupDb dbCon, String table, String ouColumn)(Code)
Checks if the column USER_OU is found in the resultset.


Parameters:
  dbCon - the db connection interface
Parameters:
  table - the table to check
Parameters:
  ouColumn - the type of OU to find (e.g. USER_OU or GROUP_OU) true if the column is in the result set, false if not




internalExecute
protected void internalExecute(CmsSetupDb dbCon)(Code)

See Also:   org.opencms.setup.update6to7.A_CmsUpdateDBPart.internalExecute(org.opencms.setup.CmsSetupDb)



updateOUs
protected int updateOUs(CmsSetupDb dbCon, String table, String ouColumn)(Code)
Updates the database tables with the new OUs if necessary for the given table.


Parameters:
  dbCon - the db connection interface
Parameters:
  table - the table to update
Parameters:
  ouColumn - the column to insert true if everything worked fine, false if not




Fields inherited from org.opencms.setup.update6to7.A_CmsUpdateDBPart
final protected static String QUERY_PROPERTIES_PREFIX(Code)(Java Doc)
protected Map m_poolData(Code)(Java Doc)
protected Map m_queries(Code)(Java Doc)

Methods inherited from org.opencms.setup.update6to7.A_CmsUpdateDBPart
public void execute()(Code)(Java Doc)
public I_CmsUpdateDBPart getDbInstance(String dbName, Map dbPoolData)(Code)(Java Doc)
public Map getPoolData()(Code)(Java Doc)
abstract protected void internalExecute(CmsSetupDb setupDb) throws SQLException(Code)(Java Doc)
protected boolean isKeepHistory()(Code)(Java Doc)
protected void loadQueryProperties(String propertyFilename) throws IOException(Code)(Java Doc)
public String readQuery(String queryKey)(Code)(Java Doc)
public void setPoolData(Map poolData)(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.