|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.droplet.EmptyFormHandler atg.droplet.GenericFormHandler atg.droplet.sql.DBCopyFormHandler
public class DBCopyFormHandler
This form handler uses a DBCopier
to copy data from
one database to another.
DBCopier
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.droplet.GenericFormHandler |
---|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
DBCopyFormHandler()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class atg.droplet.EmptyFormHandler |
---|
afterGet, beforeGet |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public DBCopyFormHandler()
Method Detail |
---|
public 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()
sourceServer
public void setSourcePassword(java.lang.String pSourcePassword)
public java.lang.String getSourcePassword()
sourceServer
public void setDestinationServer(java.lang.String pDestinationServer)
public java.lang.String getDestinationServer()
public void setDestinationUser(java.lang.String pDestinationUser)
public java.lang.String getDestinationUser()
destinationServer
public void setDestinationPassword(java.lang.String pDestinationPassword)
public java.lang.String getDestinationPassword()
destinationServer
public int getStatus()
DBCopier.copy
public 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.ServletException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |