Home > Contents > 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
Mirror
method:
- 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
IList
objects 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 thevTreeLists
parameter; mirroring tree nodes using thevILists
parameter 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
null
to 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
null
to use the default property file.
nPort
- Port to use for communication. Zero (0) is interpreted as the default HTTP port (80).
bUseProxy
true
to use proxy server for connection.false
otherwise.
bUseHTTPS
true
to use secure communication.false
otherwise.
nHTTPVersion
- Version of HTTP protocol to be used to connect to remote server. Valid values are
HTTPVERSION10
andHTTPVERSION11
.
sbOutput
- Output for return values; may contain error information. May be
null
.
Description
The
Mirror
method 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
IList
objects 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
vTreeLists
parameter; mirroring tree nodes using thevILists
parameter will fail.
vTreeNodes
- Vector of
FTTreeNode
objects that describe root nodes of trees to be mirrored. You must mirror tree nodes using this parameter; mirroring tree nodes using thevILists
parameter will fail. Themirror
method 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
null
to 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
null
to use the default property file.
nPort
- Port to use for communication. Zero (0) is interpreted as the default HTTP port (80).
bUseProxy
true
to use proxy server for connection.false
otherwise.
bUseHTTPS
true
to use secure communication;false
otherwise.
nHTTPVersion
- Version of HTTP protocol to be used to connect to remote server. Valid values are
HTTPVERSION10
andHTTPVERSION11
.
sbOutput
- Output for return values; may contain error information. May be
null
.
Description
The
Mirror
method 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 of
GetErrno
()errno
:
Value Description -618 Mirror bad response. -619 Temporary table cannot be generated.
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.