public interface Connection extends Exportable, RelationalObject
RelationalObject.Filter
Modifier and Type | Field and Description |
---|---|
static String |
CONNECTION_ENTRY_SUFFIX
The required connection entry suffix.
|
static boolean |
DEFAULT_JDBC
The default value for the
jdbc property. |
static boolean |
DEFAULT_PREVIEW
The default value for the
preview property. |
static DocumentType |
DOC_TYPE
The file extension of connections.
|
static KomodoType |
IDENTIFIER
Identifier of this object
|
static Connection[] |
NO_CONNECTIONS
An empty array of connections.
|
static TypeResolver<Connection> |
RESOLVER
The resolver of a
Connection . |
static int |
TYPE_ID
The type identifier.
|
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
export, getName
getFilters, setFilters
accept, addChild, addDescriptor, getChild, getChild, getChildren, getChildrenOfType, getChildTypes, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyFactory, getPropertyNames, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getTypeId, getTypeIdentifier, hasChild, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getParent, getRepository
static final String CONNECTION_ENTRY_SUFFIX
static final DocumentType DOC_TYPE
static final int TYPE_ID
static final KomodoType IDENTIFIER
static final Connection[] NO_CONNECTIONS
static final boolean DEFAULT_JDBC
jdbc
property. Value is true .static final boolean DEFAULT_PREVIEW
preview
property. Value is false .static final TypeResolver<Connection> RESOLVER
Connection
.default DocumentType getDocumentType(Repository.UnitOfWork transaction)
getDocumentType
in interface Exportable
Exportable.getDocumentType(org.komodo.spi.repository.Repository.UnitOfWork)
String getId(Repository.UnitOfWork uow) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
String getDescription(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursvoid setDescription(Repository.UnitOfWork transaction, String description) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)description
- description of this connectionKException
- if error occursString getExternalLocation(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursvoid setExternalLocation(Repository.UnitOfWork transaction, String extLoc) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)extLoc
- external location of this connectionKException
- if error occursString getJndiName(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursvoid setJndiName(Repository.UnitOfWork transaction, String jndiName) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)jndiName
- jndi name of this connectionKException
- if error occursString getDriverName(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursvoid setDriverName(Repository.UnitOfWork transaction, String driverName) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)driverName
- driver name of this connectionKException
- if error occursString getClassName(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursvoid setClassName(Repository.UnitOfWork transaction, String className) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)className
- class name of this connectionKException
- if error occursboolean isJdbc(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if error occursvoid setJdbc(Repository.UnitOfWork transaction, boolean isJdbc) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)isJdbc
- 'true' if source is JDBC, 'false' if not.KException
- if error occursProperties getPropertiesForServerDeployment(Repository.UnitOfWork transaction) throws Exception
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)Exception
- if error occursDeployStatus deploy(Repository.UnitOfWork uow)
uow
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)Copyright © 2013–2019. All rights reserved.