public class DBCopyFormHandler extends GenericFormHandler
DBCopier to copy data from
one database to another.DBCopier| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDSSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
DBCopyFormHandler() |
| Modifier and Type | Method and Description |
|---|---|
DBCopier |
getDBCopier()
This is the class that actually performs the copy.
|
java.lang.String |
getDestinationPassword()
The password to use when copying to
destinationServer |
java.lang.String |
getDestinationServer()
The name of the server to copy to
|
java.lang.String |
getDestinationUser()
The username to use when copying to
destinationServer |
java.lang.String |
getErrorURL()
where to go on error
|
java.lang.String |
getSourcePassword()
The password to use when copying from
sourceServer |
java.lang.String |
getSourceServer()
The name of the server to copy from.
|
java.lang.String |
getSourceUser()
The username to use when copying from
sourceServer |
int |
getStatus()
The result of
DBCopier.copy |
java.lang.String |
getSuccessURL()
Where to go on success
|
boolean |
handleCopy(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Uses the
DBCopier to copy the source database to the
destination. |
void |
setDBCopier(DBCopier pDBCopier) |
void |
setDestinationPassword(java.lang.String pDestinationPassword) |
void |
setDestinationServer(java.lang.String pDestinationServer) |
void |
setDestinationUser(java.lang.String pDestinationUser) |
void |
setErrorURL(java.lang.String pErrorURL) |
void |
setSourcePassword(java.lang.String pSourcePassword) |
void |
setSourceServer(java.lang.String pSourceServer) |
void |
setSourceUser(java.lang.String pSourceUser) |
void |
setSuccessURL(java.lang.String pSuccessURL) |
addFormException, addUncheckedFormException, afterSet, beforeSet, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwardsafterGet, beforeGetaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic void setDBCopier(DBCopier pDBCopier)
public DBCopier getDBCopier()
DBCopier that matches
the database you are using. If you are using Solid, then use
SolidDBCopier. If you are using Oracle, then use OracleDBCopier.
If you are using DB2, then use DB2DBCopier.public void setSourceServer(java.lang.String pSourceServer)
public java.lang.String getSourceServer()
public void setSourceUser(java.lang.String pSourceUser)
public java.lang.String getSourceUser()
sourceServerpublic void setSourcePassword(java.lang.String pSourcePassword)
public java.lang.String getSourcePassword()
sourceServerpublic void setDestinationServer(java.lang.String pDestinationServer)
public java.lang.String getDestinationServer()
public void setDestinationUser(java.lang.String pDestinationUser)
public java.lang.String getDestinationUser()
destinationServerpublic void setDestinationPassword(java.lang.String pDestinationPassword)
public java.lang.String getDestinationPassword()
destinationServerpublic int getStatus()
DBCopier.copypublic void setSuccessURL(java.lang.String pSuccessURL)
public java.lang.String getSuccessURL()
public void setErrorURL(java.lang.String pErrorURL)
public java.lang.String getErrorURL()
public boolean handleCopy(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
DBCopier to copy the source database to the
destination.pRequest - The request object.pResponse - The response object.javax.servlet.ServletExceptionjava.io.IOException