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 BasePassword
m_NewPassword
the new database password.protected String
m_NewURL
the new database URL.protected String
m_NewUser
the new database user.protected String
m_OldURL
the old database URL.protected boolean
m_OldURLIsRegExp
whether 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 void
defineOptions()
Adds options to the internal list of options.BasePassword
getNewPassword()
Returns the new password.String
getNewURL()
Returns the new URL to replace.String
getNewUser()
Returns the new database user to use.String
getOldURL()
Returns the old URL to replace.boolean
getOldURLIsRegExp()
Returns whether the old URL represents a regular expression.String
globalInfo()
Returns a string describing the object.String
newPasswordTipText()
Returns the tip text for this property.String
newURLTipText()
Returns the tip text for this property.String
newUserTipText()
Returns the tip text for this property.String
oldURLIsRegExpTipText()
Returns the tip text for this property.String
oldURLTipText()
Returns the tip text for this property.protected void
processActor(Actor actor)
Performs the actual processing.void
setNewPassword(BasePassword value)
Sets the new password.void
setNewURL(String value)
Sets the new URL to replace.void
setNewUser(String value)
Sets the new database user to use.void
setOldURL(String value)
Sets the old URL to replace.void
setOldURLIsRegExp(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:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in 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:
processActor
in classAbstractActorProcessor
- Parameters:
actor
- the actor to process (is a copy of original for processors implementing ModifyingProcessor)- See Also:
ModifyingProcessor
-
-