Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.Mirror
Copies the rows specified in one or more resultsets to a target Sites repository.
This method is commonly used to copy data from a staging system to a production system.There are two variants of the
Mirrormethod:
- Mirror (Variant 1) copies the rows specified in one or more resultsets to a target Sites repository
- Mirror (Variant 2) copies the rows specified in one or more resultsets to a target Sites repository and accepts a vector of tree nodes.
To use this tag, you need to have Admin rights. See the Sites Administrator's Guide for complete details.
ICS.Mirror
Copies the rows specified in one or more resultsets to a target Sites repository.
Syntax
public int Mirror(Vector vILists, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)Parameters
vILists- Vector of
IListobjects to mirror. The resultsets should contain all columns in the designated tables. Columns that exists in the target repository table that are not specified in the resultset are cleared. Columns that exist in the resultset, but not in the target repository table are dropped and no error occurs. You must mirror tree nodes using thevTreeListsparameter; mirroring tree nodes using thevIListsparameter will fail.
sTarget- Target server name.
sUsername- User name to use on the remote server. May be
null.
sPassword- Password to use on remote server. May be
null.
sCGIPrefix- CGI prefix string. May be
nullto indicate that the remote server is the same type as the source.
sTargetIniFile- Semicolon-separated list of string property files to push to target server. May be
nullto use the default property file.
nPort- Port to use for communication. Zero (0) is interpreted as the default HTTP port (80).
bUseProxytrueto use proxy server for connection.falseotherwise.
bUseHTTPStrueto use secure communication.falseotherwise.
nHTTPVersion- Version of HTTP protocol to be used to connect to remote server. Valid values are
HTTPVERSION10andHTTPVERSION11.
sbOutput- Output for return values; may contain error information. May be
null.
Description
The
Mirrormethod copies the rows specified in one or more resultsets to a target Sites repository. This method is commonly used to copy data from a staging system to a production system.Error Numbers
Use
to view the error.GetErrno()Possible values of
errno:
Value Description -618 Mirror bad response. -619 Temporary table cannot be generated.
ICS.Mirror
Copies the rows specified in one or more resultsets to a target Sites repository.
Syntax
public int Mirror(Vector vILists, Vector vTreeNodes, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)Parameters
vILists- Vector of
IListobjects to mirror.
- The resultsets should contain all columns in the designated catalogs. Columns that exists in the target repository table that are not specified in the resultset are cleared. Columns that exist in the resultset, but not in the target repository table are dropped and no error occurs. You must mirror tree nodes using the
vTreeListsparameter; mirroring tree nodes using thevIListsparameter will fail.
vTreeNodes- Vector of
FTTreeNodeobjects that describe root nodes of trees to be mirrored. You must mirror tree nodes using this parameter; mirroring tree nodes using thevIListsparameter will fail. Themirrormethod will only mirror the hierarchy; it will not mirror the objects that the nodes point at in the object table.
sTarget- Target server name.
sUsername- User name to use on the remote server. May be
null.
sPassword- Password to use on remote server. May be
null.
sCGIPrefix- CGI prefix string. May be
nullto indicate that the remote server is the same type as the source.
sTargetIniFile- Semicolon-separated list of string property files to push to target server. May be
nullto use the default property file.
nPort- Port to use for communication. Zero (0) is interpreted as the default HTTP port (80).
bUseProxytrueto use proxy server for connection.falseotherwise.
bUseHTTPStrueto use secure communication;falseotherwise.
nHTTPVersion- Version of HTTP protocol to be used to connect to remote server. Valid values are
HTTPVERSION10andHTTPVERSION11.
sbOutput- Output for return values; may contain error information. May be
null.
Description
The
Mirrormethod copies the rows specified in one or more resultsets to a target Sites repository. This method is commonly used to copy data from a staging system to a production system.Error Numbers
Use
to view the error. Possible values ofGetErrno()errno:
Value Description -618 Mirror bad response. -619 Temporary table cannot be generated.
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.