public interface ModelSource extends RelationalObject
RelationalObject.Filter
Modifier and Type | Field and Description |
---|---|
static KomodoType |
IDENTIFIER
Identifier of this object
|
static ModelSource[] |
NO_SOURCES
An empty array of model sources.
|
static TypeResolver<ModelSource> |
RESOLVER
The resolver of a
ModelSource . |
static int |
TYPE_ID
The type identifier.
|
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
String |
getJndiName(Repository.UnitOfWork transaction) |
Connection |
getOriginConnection(Repository.UnitOfWork transaction) |
Model |
getParent(Repository.UnitOfWork transaction) |
String |
getTranslatorName(Repository.UnitOfWork transaction) |
void |
setAssociatedConnection(Repository.UnitOfWork transaction,
Connection connection) |
void |
setJndiName(Repository.UnitOfWork transaction,
String newJndiName) |
void |
setTranslatorName(Repository.UnitOfWork transaction,
String newTranslatorName) |
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, getRepository
static final int TYPE_ID
static final KomodoType IDENTIFIER
static final ModelSource[] NO_SOURCES
static final TypeResolver<ModelSource> RESOLVER
ModelSource
.Model getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface KNode
KException
KNode.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
String getJndiName(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)JNDI name
property (can be empty)KException
- if an error occursString getTranslatorName(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)translator name
property (can be empty)KException
- if an error occursConnection getOriginConnection(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 an error occursvoid setJndiName(Repository.UnitOfWork transaction, String newJndiName) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newJndiName
- the new value of the JNDI name
property (can only be empty when removing)KException
- if an error occursvoid setTranslatorName(Repository.UnitOfWork transaction, String newTranslatorName) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newTranslatorName
- the new value of the translator name
property (can only be empty when removing)KException
- if an error occursvoid setAssociatedConnection(Repository.UnitOfWork transaction, Connection connection) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)connection
- the connection that this model source referencesKException
- if an error occursCopyright © 2013–2019. All rights reserved.