public class DataserviceImpl extends RelationalObjectImpl implements Dataservice
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
IDENTIFIER, NO_DATASERVICES, RESOLVER, TYPE_ID
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
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 |
---|
DataserviceImpl(Repository.UnitOfWork transaction,
Repository repository,
String path) |
getDescriptor, getDescriptors, getFilters, getParent, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, hasDescriptor, hasProperty, isChildRestricted, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, addChild, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getIndex, getName, getObjectFactory, getObjectProperty, getPrimaryType, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, getTypeId, handleError, hashCode, hasProperties, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, setProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName
getFilters, setFilters
accept, addChild, addDescriptor, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyFactory, getPropertyNames, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getTypeId, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getParent, getRepository
public DataserviceImpl(Repository.UnitOfWork transaction, Repository repository, String path) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)repository
- the repositorypath
- the pathKException
- if error occurspublic KomodoType getTypeIdentifier(Repository.UnitOfWork transaction)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
public byte[] export(Repository.UnitOfWork transaction, Properties exportProperties) throws KException
export
in interface Exportable
KException
public DocumentType getDocumentType(Repository.UnitOfWork transaction)
getDocumentType
in interface Exportable
public KomodoType[] getChildTypes()
getChildTypes
in interface KomodoObject
getChildTypes
in class ObjectImpl
ObjectImpl.getChildTypes()
public DataServiceEntry<?> getChild(Repository.UnitOfWork transaction, String name) throws KException
getChild
in interface Dataservice
getChild
in interface KomodoObject
getChild
in class RelationalObjectImpl
KException
RelationalObjectImpl.getChild(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public DataServiceEntry<?> getChild(Repository.UnitOfWork transaction, String name, String typeName) throws KException
getChild
in interface Dataservice
getChild
in interface KomodoObject
getChild
in class RelationalObjectImpl
KException
RelationalObjectImpl.getChild(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String, java.lang.String)
public DataServiceEntry<?>[] getChildren(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getChildren
in interface Dataservice
getChildren
in interface KomodoObject
getChildren
in class RelationalObjectImpl
KException
RelationalObjectImpl.getChildren(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public DataServiceEntry<?>[] getChildrenOfType(Repository.UnitOfWork transaction, String type, String... namePatterns) throws KException
getChildrenOfType
in interface Dataservice
getChildrenOfType
in interface KomodoObject
getChildrenOfType
in class RelationalObjectImpl
KException
RelationalObjectImpl.getChildrenOfType(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String, java.lang.String[])
public boolean hasChild(Repository.UnitOfWork transaction, String name) throws KException
hasChild
in interface KomodoObject
hasChild
in class RelationalObjectImpl
KException
RelationalObjectImpl.hasChild(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public boolean hasChild(Repository.UnitOfWork transaction, String name, String typeName) throws KException
hasChild
in interface KomodoObject
hasChild
in class RelationalObjectImpl
KException
RelationalObjectImpl.hasChild(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String, java.lang.String)
public boolean hasChildren(Repository.UnitOfWork transaction) throws KException
hasChildren
in interface KomodoObject
hasChildren
in class RelationalObjectImpl
KException
RelationalObjectImpl.hasChildren(org.komodo.spi.repository.Repository.UnitOfWork)
public String[] getVdbPlan(Repository.UnitOfWork transaction) throws KException
Dataservice
getVdbPlan
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)null
but can be empty)KException
- if an error occurspublic Vdb getServiceVdb(Repository.UnitOfWork transaction) throws KException
getServiceVdb
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)null
if not defined)KException
- if an error occursDataservice.getServiceVdb(org.komodo.spi.repository.Repository.UnitOfWork)
public DeployStatus deploy(Repository.UnitOfWork uow) throws KException
deploy
in interface Dataservice
uow
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)KException
public String[] getViewDefinitionNames(Repository.UnitOfWork uow) throws KException
getViewDefinitionNames
in interface Dataservice
uow
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occurspublic String getServiceViewModelName(Repository.UnitOfWork uow) throws KException
getServiceViewModelName
in interface Dataservice
uow
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)null
if not found)KException
- if an error occurspublic ConnectionEntry addConnection(Repository.UnitOfWork uow, Connection connection) throws KException
addConnection
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)connection
- the connection being added to the data service (cannot be null
or empty)null
)KException
- if an error occursDataservice.addConnection(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.connection.Connection)
public ConnectionEntry addConnectionEntry(Repository.UnitOfWork transaction, String connectionEntryName) throws KException
addConnectionEntry
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)connectionEntryName
- the name of the connection entry to create (cannot be null
or empty)null
)KException
- if an error occursDataservice.addConnectionEntry(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public DdlEntry addDdlEntry(Repository.UnitOfWork transaction, String ddlEntryName) throws KException
addDdlEntry
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)ddlEntryName
- the name of the DDL entry to create (cannot be empty)null
)KException
- if an error occursDataservice.addDdlEntry(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public DdlEntry addDdlFile(Repository.UnitOfWork uow, DdlFile ddlFile) throws KException
addDdlFile
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)ddlFile
- the DDL file being added to the data service (cannot be null
)null
)KException
- if an error occursDataservice.addDdlFile(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.resource.DdlFile)
public DriverEntry addDriverEntry(Repository.UnitOfWork transaction, String driverEntryName) throws KException
addDriverEntry
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)driverEntryName
- the name of the driver entry to create (cannot be empty)null
)KException
- if an error occursDataservice.addDriverEntry(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public DriverEntry addDriverFile(Repository.UnitOfWork uow, Driver driverFile) throws KException
addDriverFile
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)driverFile
- the driver file being added to the data service (cannot be null
)null
)KException
- if an error occursDataservice.addDriverFile(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.resource.Driver)
public ResourceEntry addResourceEntry(Repository.UnitOfWork transaction, String resourceEntryName) throws KException
addResourceEntry
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)resourceEntryName
- the name of the resource entry to create (cannot be empty)null
)KException
- if an error occursDataservice.addResourceEntry(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public ResourceEntry addResourceFile(Repository.UnitOfWork uow, ResourceFile resourceFile) throws KException
addResourceFile
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)resourceFile
- the resource file being added to the data service (cannot be null
)null
)KException
- if an error occursDataservice.addResourceFile(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.resource.ResourceFile)
public UdfEntry addUdfEntry(Repository.UnitOfWork transaction, String udfEntryName) throws KException
addUdfEntry
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)udfEntryName
- the name of the UDF entry to create (cannot be empty)null
)KException
- if an error occursDataservice.addUdfEntry(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public UdfEntry addUdfFile(Repository.UnitOfWork uow, UdfFile udfFile) throws KException
addUdfFile
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)udfFile
- the UDF being added to the data service (cannot be empty)null
)KException
- if an error occursDataservice.addUdfFile(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.resource.UdfFile)
public VdbEntry addVdb(Repository.UnitOfWork uow, Vdb vdb) throws KException
addVdb
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)vdb
- the VDB being added (cannot be null
)null
)KException
- if an error occursDataservice.addVdb(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.vdb.Vdb)
public VdbEntry addVdbEntry(Repository.UnitOfWork transaction, String vdbEntryName) throws KException
addVdbEntry
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)vdbEntryName
- the name of the VDB entry to create (cannot be empty)null
)KException
- if an error occursDataservice.addVdbEntry(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public ConnectionEntry[] getConnectionEntries(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getConnectionEntries
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getConnectionEntries(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String[])
public Connection[] getConnections(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getConnections
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getConnections(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public String[] getConnectionPlan(Repository.UnitOfWork transaction) throws KException
getConnectionPlan
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)null
but can be empty)KException
- if an error occursDataservice.getConnectionPlan(org.komodo.spi.repository.Repository.UnitOfWork)
public DdlEntry[] getDdlEntries(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getDdlEntries
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getDdlEntries(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public DdlFile[] getDdlFiles(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getDdlFiles
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getDdlFiles(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public String[] getDdlPlan(Repository.UnitOfWork transaction) throws KException
getDdlPlan
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)null
but can be empty)KException
- if an error occursDataservice.getDdlPlan(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDescription(Repository.UnitOfWork transaction) throws KException
getDescription
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)description
property (can be empty)KException
- if an error occursDataservice.getDescription(org.komodo.spi.repository.Repository.UnitOfWork)
public DriverEntry[] getDriverEntries(Repository.UnitOfWork uow, String... namePatterns) throws KException
getDriverEntries
in interface Dataservice
uow
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getDriverEntries(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public String[] getDriverPlan(Repository.UnitOfWork transaction) throws KException
getDriverPlan
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)null
but can be empty)KException
- if an error occursDataservice.getDriverPlan(org.komodo.spi.repository.Repository.UnitOfWork)
public Driver[] getDrivers(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getDrivers
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getDrivers(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public Calendar getLastModified(Repository.UnitOfWork transaction) throws KException
getLastModified
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if an error occursDataservice.getLastModified(org.komodo.spi.repository.Repository.UnitOfWork)
public String getModifiedBy(Repository.UnitOfWork transaction) throws KException
getModifiedBy
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)null
or empty)KException
- if an error occursDataservice.getModifiedBy(org.komodo.spi.repository.Repository.UnitOfWork)
public ResourceEntry[] getResourceEntries(Repository.UnitOfWork uow, String... namePatterns) throws KException
getResourceEntries
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getResourceEntries(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public ResourceFile[] getResourceFiles(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getResourceFiles
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getResourceFiles(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public String[] getResourcePlan(Repository.UnitOfWork transaction) throws KException
getResourcePlan
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)null
but can be empty)KException
- if an error occursDataservice.getResourcePlan(org.komodo.spi.repository.Repository.UnitOfWork)
public ServiceVdbEntry getServiceVdbEntry(Repository.UnitOfWork uow) throws KException
getServiceVdbEntry
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)null
if not defined)KException
- if an error occursDataservice.getServiceVdbEntry(org.komodo.spi.repository.Repository.UnitOfWork)
public UdfEntry[] getUdfEntries(Repository.UnitOfWork uow, String... namePatterns) throws KException
getUdfEntries
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getUdfEntries(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public UdfFile[] getUdfFiles(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getUdfFiles
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getUdfFiles(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public String[] getUdfPlan(Repository.UnitOfWork transaction) throws KException
getUdfPlan
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)null
but can be empty)KException
- if an error occursDataservice.getUdfPlan(org.komodo.spi.repository.Repository.UnitOfWork)
public VdbEntry[] getVdbEntries(Repository.UnitOfWork uow, String... namePatterns) throws KException
getVdbEntries
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getVdbEntries(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public Vdb[] getVdbs(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getVdbs
in interface Dataservice
transaction
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)namePatterns
- optional name patterns (can be null
or empty but cannot have null
or empty elements)null
but can be empty)KException
- if an error occursDataservice.getVdbs(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String[])
public void setDescription(Repository.UnitOfWork transaction, String newDescription) throws KException
setDescription
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newDescription
- the new value of the description
propertyKException
- if an error occursDataservice.setDescription(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setLastModified(Repository.UnitOfWork transaction, Calendar newLastModified) throws KException
setLastModified
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newLastModified
- the new value of the last modified date
propertyKException
- if an error occursDataservice.setLastModified(org.komodo.spi.repository.Repository.UnitOfWork,
java.util.Calendar)
public void setModifiedBy(Repository.UnitOfWork transaction, String newModifiedBy) throws KException
setModifiedBy
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newModifiedBy
- the new value of the modified by
propertyKException
- if an error occursDataservice.setModifiedBy(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public Vdb setServiceVdb(Repository.UnitOfWork uow, Vdb serviceVdb) throws KException
setServiceVdb
in interface Dataservice
uow
- the transaction (cannot be null
and must have a state of
Repository.UnitOfWork.State.NOT_STARTED
)serviceVdb
- the service VDB being set (can be null
when deleting current value)null
if one is not being replacedKException
- if an error occursDataservice.setServiceVdb(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.vdb.Vdb)
public void clone(Repository.UnitOfWork transaction, Dataservice dataservice) throws KException
Dataservice
Dataservice
's properties to the given Dataservice
clone
in interface Dataservice
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)dataservice
- the destination data serviceKException
- if an error occursCopyright © 2013–2019. All rights reserved.