public class DdlImporter extends AbstractImporter
importType, OLD
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Constructor and Description |
---|
DdlImporter(Repository repository)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
executeImport(Repository.UnitOfWork transaction,
String content,
KomodoObject parentObject,
ImportOptions importOptions,
ImportMessages importMessages) |
protected boolean |
handleExistingNode(Repository.UnitOfWork transaction,
KomodoObject parentObject,
ImportOptions importOptions,
ImportMessages importMessages) |
void |
importDdl(Repository.UnitOfWork uow,
File ddlFile,
KomodoObject parentObject,
ImportOptions importOptions,
ImportMessages importMessages)
Perform the DDL import using the specified DDL File.
|
void |
importDdl(Repository.UnitOfWork uow,
InputStream ddlStream,
KomodoObject parentObject,
ImportOptions importOptions,
ImportMessages importMessages)
Perform the model import using the specified DDL Stream.
|
void |
importDdl(Repository.UnitOfWork uow,
String ddl,
KomodoObject parentObject,
ImportOptions importOptions,
ImportMessages importMessages)
Perform the model import using the specified DDL.
|
void |
setImportType(ImportType importType)
Set the import type.
|
determineNewName, doImport, getRepository, getWorkspace, toString, toString, validFile
public DdlImporter(Repository repository)
repository
- repository into which ddl should be importedprotected void executeImport(Repository.UnitOfWork transaction, String content, KomodoObject parentObject, ImportOptions importOptions, ImportMessages importMessages) throws KException
executeImport
in class AbstractImporter
KException
protected boolean handleExistingNode(Repository.UnitOfWork transaction, KomodoObject parentObject, ImportOptions importOptions, ImportMessages importMessages) throws KException
handleExistingNode
in class AbstractImporter
KException
public void importDdl(Repository.UnitOfWork uow, File ddlFile, KomodoObject parentObject, ImportOptions importOptions, ImportMessages importMessages)
uow
- the transactionddlFile
- the DDL fileparentObject
- the target parent object to place the new objectsimportOptions
- the options for the importimportMessages
- the messages recorded during the importpublic void importDdl(Repository.UnitOfWork uow, InputStream ddlStream, KomodoObject parentObject, ImportOptions importOptions, ImportMessages importMessages)
uow
- the transactionddlStream
- the DDL input streamparentObject
- the target parent object to place the new objectsimportOptions
- the options for the importimportMessages
- the messages recorded during the importpublic void importDdl(Repository.UnitOfWork uow, String ddl, KomodoObject parentObject, ImportOptions importOptions, ImportMessages importMessages)
uow
- the transactionddl
- the DDLparentObject
- the target parent object to place the new objectsimportOptions
- the options for the importimportMessages
- the messages recorded during the importpublic void setImportType(ImportType importType)
importType
- the type of importCopyright © 2013–2019. All rights reserved.