Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.upgrade.tasks
Class UpdateRootCategoryLocale

java.lang.Object
  extended by com.jivesoftware.forum.upgrade.tasks.UpdateRootCategoryLocale
All Implemented Interfaces:
UpgradeTask

public class UpdateRootCategoryLocale
extends java.lang.Object
implements UpgradeTask

Nullifies the LOCALECODE column for the root category in the jiveCategory table. In the jive_startup_data.sql (.inc) it was improperly set to "en_US". The result is that some pages do not pick up the system default local when it is anything other than english.

Since this is a one line query, using a PreparedStatement was preferred rather than extending AbstractDatabaseUpgradeTask and creating database specific scripts.


Constructor Summary
UpdateRootCategoryLocale()
           
 
Method Summary
 void doTask()
          Executes the upgrade task
 java.lang.String getDescription()
          Upgrade task description
 java.lang.String getEstimatedRunTime()
          Upgrade task estimated run time
 java.lang.String getInstructionsFile()
          Returns the name of the manual instructions file that will be displayed if the task fails.
 java.lang.String getName()
          Upgrade task name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateRootCategoryLocale

public UpdateRootCategoryLocale()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: UpgradeTask
Upgrade task name

Specified by:
getName in interface UpgradeTask

getDescription

public java.lang.String getDescription()
Description copied from interface: UpgradeTask
Upgrade task description

Specified by:
getDescription in interface UpgradeTask

getEstimatedRunTime

public java.lang.String getEstimatedRunTime()
Description copied from interface: UpgradeTask
Upgrade task estimated run time

Specified by:
getEstimatedRunTime in interface UpgradeTask

getInstructionsFile

public java.lang.String getInstructionsFile()
Description copied from interface: UpgradeTask
Returns the name of the manual instructions file that will be displayed if the task fails. All instructions files will be loaded from com/jivesoftware/forum/upgrade/instructions/ and will have .txt appended to the end of the name.

Specified by:
getInstructionsFile in interface UpgradeTask

doTask

public void doTask()
            throws java.sql.SQLException
Description copied from interface: UpgradeTask
Executes the upgrade task

Specified by:
doTask in interface UpgradeTask
Throws:
java.sql.SQLException

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.