|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.commands.AbstractCommandBase
com.sap.mdm.commands.AbstractCommand
com.sap.mdm.session.AbstractSessionCommand
com.sap.mdm.session.AbstractServerSessionCommand
com.sap.mdm.repository.commands.ArchiveRepositoryCommand
A command for archiving a repository. This is useful
for the purpose of making a backup or transferring a repository to another
DBMS. The archive file is SAP's proprietary format.
NOTE: This command used to take in a repository session. This command had be
changed to take in a server session. The setRepositoryIdentifier
is also required.
UnarchiveRepositoryCommand| Constructor Summary | |
ArchiveRepositoryCommand(ConnectionAccessor connection)
Creates a new instance of this command. |
|
ArchiveRepositoryCommand(ServerSessionContext ctx)
Creates a new instance of this command by context. |
|
| Method Summary | |
String |
getArchiveFileName()
Retrieves the archive file name. |
String |
getLogFileName()
Returns the operation log for the execution of this command. |
int[] |
getMaskIds()
Retrieves the mask IDs. |
int |
getMaskUse()
Indicates whether masks are used. |
RepositoryIdentifier |
getRepositoryIdentifier()
Returns the specified repository. |
int |
getSegmentSize()
Returns the segment size in megabytes. |
boolean |
isOverwrite()
Returns whether to overwrite the existing repository. |
boolean |
isSchemaOnly()
Returns whether to operate only on the schema. |
void |
setArchiveFileName(String fileName)
Sets the archive file name (required). |
void |
setMaskIds(int[] maskIds)
Specifies the masks to use (optional). |
void |
setMaskUse(int maskUse)
Specifies whether masks are used (optional). |
void |
setOverwrite(boolean overwrite)
Specifies whether to overwrite the existing repository (optional). |
void |
setRepositoryIdentifier(RepositoryIdentifier reposDef)
Specifies the repository to operate on (required). |
void |
setSchemaOnly(boolean schemaOnly)
Specifies whether to archive only the schema (optional). |
void |
setSegmentSize(int segmentSize)
Sets the segment size in megabytes (optional). |
| Methods inherited from class com.sap.mdm.commands.AbstractCommand |
getSession, setSession |
| Methods inherited from class com.sap.mdm.commands.AbstractCommandBase |
execute, getPassport, isCommandComplete, setPassport |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArchiveRepositoryCommand(ConnectionAccessor connection)
connection - the connections to the server.
public ArchiveRepositoryCommand(ServerSessionContext ctx)
throws ConnectionException,
SessionException
ctx - the repository session context.| Method Detail |
public void setSchemaOnly(boolean schemaOnly)
schemaOnly - true to archive only the schema,
otherwise false.public boolean isSchemaOnly()
public boolean isOverwrite()
true to overwrite existing repository, otherwise
false.public void setOverwrite(boolean overwrite)
overwrite - whether to overwrite existing repository.public int[] getMaskIds()
public void setMaskIds(int[] maskIds)
maskIds - the mask IDs.public int getMaskUse()
public void setMaskUse(int maskUse)
maskUse - whether masks are used.public String getLogFileName()
public String getArchiveFileName()
public void setArchiveFileName(String fileName)
fileName - the archive file name.public int getSegmentSize()
public void setSegmentSize(int segmentSize)
segmentSize - the segment size.public void setRepositoryIdentifier(RepositoryIdentifier reposDef)
reposDef - the repository.public RepositoryIdentifier getRepositoryIdentifier()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2004-2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.