Package adams.flow.processor
Class ChangeDatabaseConnection
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<ActorProcessor>,SizeOfHandler,ActorProcessor,ModifyingProcessor,Serializable,Comparable<ActorProcessor>
public class ChangeDatabaseConnection extends AbstractModifyingProcessor
Processor that updates database connections.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BasePasswordm_NewPasswordthe new database password.protected Stringm_NewURLthe new database URL.protected Stringm_NewUserthe new database user.protected Stringm_OldURLthe old database URL.protected booleanm_OldURLIsRegExpwhether the old database URL is a regular expression.-
Fields inherited from class adams.flow.processor.AbstractModifyingProcessor
m_Modified, m_ModifiedActor, m_NoCopy
-
Fields inherited from class adams.flow.processor.AbstractActorProcessor
m_Errors
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ChangeDatabaseConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.BasePasswordgetNewPassword()Returns the new password.StringgetNewURL()Returns the new URL to replace.StringgetNewUser()Returns the new database user to use.StringgetOldURL()Returns the old URL to replace.booleangetOldURLIsRegExp()Returns whether the old URL represents a regular expression.StringglobalInfo()Returns a string describing the object.StringnewPasswordTipText()Returns the tip text for this property.StringnewURLTipText()Returns the tip text for this property.StringnewUserTipText()Returns the tip text for this property.StringoldURLIsRegExpTipText()Returns the tip text for this property.StringoldURLTipText()Returns the tip text for this property.protected voidprocessActor(Actor actor)Performs the actual processing.voidsetNewPassword(BasePassword value)Sets the new password.voidsetNewURL(String value)Sets the new URL to replace.voidsetNewUser(String value)Sets the new database user to use.voidsetOldURL(String value)Sets the old URL to replace.voidsetOldURLIsRegExp(boolean value)Sets whether the old URL represents a regular expression.-
Methods inherited from class adams.flow.processor.AbstractModifyingProcessor
getModifiedActor, getNoCopy, initialize, isModified, process, setNoCopy
-
Methods inherited from class adams.flow.processor.AbstractActorProcessor
addError, addError, checkData, compareTo, equals, getErrors, hasErrors, reset, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.flow.processor.ActorProcessor
compareTo, getErrors, hasErrors, shallowCopy, shallowCopy
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_OldURL
protected String m_OldURL
the old database URL.
-
m_OldURLIsRegExp
protected boolean m_OldURLIsRegExp
whether the old database URL is a regular expression.
-
m_NewURL
protected String m_NewURL
the new database URL.
-
m_NewUser
protected String m_NewUser
the new database user.
-
m_NewPassword
protected BasePassword m_NewPassword
the new database password.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setOldURL
public void setOldURL(String value)
Sets the old URL to replace.- Parameters:
value- the old URL
-
getOldURL
public String getOldURL()
Returns the old URL to replace.- Returns:
- the old URL
-
oldURLTipText
public String oldURLTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setOldURLIsRegExp
public void setOldURLIsRegExp(boolean value)
Sets whether the old URL represents a regular expression.- Parameters:
value- true if the old URL is a regular expression
-
getOldURLIsRegExp
public boolean getOldURLIsRegExp()
Returns whether the old URL represents a regular expression.- Returns:
- true if the old URL is a regular expression
-
oldURLIsRegExpTipText
public String oldURLIsRegExpTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setNewURL
public void setNewURL(String value)
Sets the new URL to replace.- Parameters:
value- the new URL
-
getNewURL
public String getNewURL()
Returns the new URL to replace.- Returns:
- the new URL
-
newURLTipText
public String newURLTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setNewUser
public void setNewUser(String value)
Sets the new database user to use.- Parameters:
value- the new user
-
getNewUser
public String getNewUser()
Returns the new database user to use.- Returns:
- the new user
-
newUserTipText
public String newUserTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setNewPassword
public void setNewPassword(BasePassword value)
Sets the new password.- Parameters:
value- the new password
-
getNewPassword
public BasePassword getNewPassword()
Returns the new password.- Returns:
- the new password
-
newPasswordTipText
public String newPasswordTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
processActor
protected void processActor(Actor actor)
Performs the actual processing.- Specified by:
processActorin classAbstractActorProcessor- Parameters:
actor- the actor to process (is a copy of original for processors implementing ModifyingProcessor)- See Also:
ModifyingProcessor
-
-