public class ConnectionImpl extends RelationalObjectImpl implements Connection, EventManager
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
CONNECTION_ENTRY_SUFFIX, DEFAULT_JDBC, DEFAULT_PREVIEW, DOC_TYPE, IDENTIFIER, NO_CONNECTIONS, RESOLVER, TYPE_ID
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
EVENT_MANAGER_ADAPTER
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 |
---|
ConnectionImpl(Repository.UnitOfWork uow,
Repository repository,
String path) |
getChild, getChild, getChildren, getChildrenOfType, getDescriptor, getDescriptors, getFilters, getParent, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, hasChild, hasChild, hasChildren, hasDescriptor, hasProperty, isChildRestricted, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, addChild, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getChildTypes, getIndex, getName, getObjectFactory, getObjectProperty, getPrimaryType, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, handleError, hashCode, hasProperties, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDocumentType
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, hasChild, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType
getAbsolutePath, getName, getParent, getRepository
public ConnectionImpl(Repository.UnitOfWork uow, Repository repository, String path) throws KException
uow
- 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 uow)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
public String getId(Repository.UnitOfWork transaction) throws KException
getId
in interface Connection
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if error occurspublic int getTypeId()
getTypeId
in interface KomodoObject
getTypeId
in class ObjectImpl
KomodoObject.getTypeId()
public String getJndiName(Repository.UnitOfWork uow) throws KException
getJndiName
in interface Connection
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursConnection.getJndiName(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDescription(Repository.UnitOfWork uow) throws KException
getDescription
in interface Connection
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursConnection.getDescription(org.komodo.spi.repository.Repository.UnitOfWork)
public String getExternalLocation(Repository.UnitOfWork uow) throws KException
getExternalLocation
in interface Connection
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursConnection.getExternalLocation(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDriverName(Repository.UnitOfWork uow) throws KException
getDriverName
in interface Connection
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursConnection.getDriverName(org.komodo.spi.repository.Repository.UnitOfWork)
public String getClassName(Repository.UnitOfWork uow) throws KException
getClassName
in interface Connection
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if error occursConnection.getClassName(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isJdbc(Repository.UnitOfWork uow) throws KException
isJdbc
in interface Connection
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if error occursConnection.isJdbc(org.komodo.spi.repository.Repository.UnitOfWork)
public void setDriverName(Repository.UnitOfWork uow, String driverName) throws KException
setDriverName
in interface Connection
uow
- 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 occursConnection.setDriverName(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setJndiName(Repository.UnitOfWork uow, String jndiName) throws KException
setJndiName
in interface Connection
uow
- 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 occursConnection.setJndiName(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setDescription(Repository.UnitOfWork uow, String description) throws KException
setDescription
in interface Connection
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)description
- description of this connectionKException
- if error occursConnection.setDescription(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setExternalLocation(Repository.UnitOfWork uow, String extLoc) throws KException
setExternalLocation
in interface Connection
uow
- 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 occursConnection.setExternalLocation(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setClassName(Repository.UnitOfWork uow, String className) throws KException
setClassName
in interface Connection
uow
- 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 occursConnection.setClassName(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setJdbc(Repository.UnitOfWork uow, boolean isJdbc) throws KException
setJdbc
in interface Connection
uow
- 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 occursConnection.setJdbc(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public Properties getPropertiesForServerDeployment(Repository.UnitOfWork transaction) throws Exception
getPropertiesForServerDeployment
in interface Connection
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)Exception
- if error occurspublic byte[] export(Repository.UnitOfWork transaction, Properties exportProperties) throws KException
export
in interface Exportable
KException
public void setProperty(Repository.UnitOfWork transaction, String propertyName, Object... values) throws KException
setProperty
in interface KomodoObject
setProperty
in class ObjectImpl
KException
ObjectImpl.setProperty(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String,
java.lang.Object[])
public DeployStatus deploy(Repository.UnitOfWork uow)
deploy
in interface Connection
uow
- the transaction (cannot be null
or have a state that is not
Repository.UnitOfWork.State.NOT_STARTED
)public boolean addListener(ExecutionConfigurationListener listener)
addListener
in interface EventManager
public void permitListeners(boolean enable)
permitListeners
in interface EventManager
public void notifyListeners(ExecutionConfigurationEvent event)
notifyListeners
in interface EventManager
public boolean removeListener(ExecutionConfigurationListener listener)
removeListener
in interface EventManager
Copyright © 2013–2019. All rights reserved.