public abstract class RelationalObjectImpl extends ObjectImpl implements RelationalObject
RelationalObject.Filter
Modifier and Type | Field and Description |
---|---|
protected static KLog |
LOGGER |
static boolean |
VALIDATE_INITIAL_STATE
Indicates if the initial state after construction should be validated.
|
index, path
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
Modifier | Constructor and Description |
---|---|
protected |
RelationalObjectImpl(Repository.UnitOfWork uow,
Repository repository,
String path) |
protected |
RelationalObjectImpl(Repository.UnitOfWork transaction,
Repository repository,
String path,
int index) |
accept, addChild, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getChildTypes, getIndex, getName, getObjectFactory, getObjectProperty, getPrimaryType, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, getTypeId, getTypeIdentifier, handleError, hashCode, hasProperties, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, setProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, addChild, addDescriptor, getChildTypes, getIndex, getObjectFactory, getPrimaryType, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getTypeId, getTypeIdentifier, hasProperties, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, remove, removeChild, rename, setProperty
getAbsolutePath, getName, getRepository
protected static final KLog LOGGER
public static final boolean VALIDATE_INITIAL_STATE
protected RelationalObjectImpl(Repository.UnitOfWork uow, Repository repository, String path) throws KException
KException
protected RelationalObjectImpl(Repository.UnitOfWork transaction, Repository repository, String path, int index) throws KException
KException
public KomodoObject getChild(Repository.UnitOfWork transaction, String name) throws KException
getChild
in interface KomodoObject
getChild
in class ObjectImpl
KException
ObjectImpl.getChild(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public KomodoObject getChild(Repository.UnitOfWork transaction, String name, String typeName) throws KException
getChild
in interface KomodoObject
getChild
in class ObjectImpl
KException
ObjectImpl.getChild(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String,
java.lang.String)
public KomodoObject[] getChildren(Repository.UnitOfWork transaction, String... namePatterns) throws KException
getChildren
in interface KomodoObject
getChildren
in class ObjectImpl
KException
ObjectImpl.getChildren(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String[])
public KomodoObject[] getChildrenOfType(Repository.UnitOfWork transaction, String type, String... namePatterns) throws KException
getChildrenOfType
in interface KomodoObject
getChildrenOfType
in class ObjectImpl
KException
ObjectImpl.getChildrenOfType(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String,
java.lang.String[])
public Descriptor getDescriptor(Repository.UnitOfWork transaction, String typeName) throws KException
getDescriptor
in interface KomodoObject
getDescriptor
in class ObjectImpl
KException
ObjectImpl.getDescriptor(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public Descriptor[] getDescriptors(Repository.UnitOfWork transaction) throws KException
getDescriptors
in interface KomodoObject
getDescriptors
in class ObjectImpl
KException
ObjectImpl.getDescriptors(org.komodo.spi.repository.Repository.UnitOfWork)
public RelationalObject.Filter[] getFilters()
getFilters
in interface RelationalObject
properties
and descriptors
are
valid for this object (never null
but can be empty)RelationalObject.getFilters()
public KomodoObject getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface KNode
getParent
in class ObjectImpl
KException
ObjectImpl.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
public Property getProperty(Repository.UnitOfWork transaction, String name) throws KException
getProperty
in interface KomodoObject
getProperty
in class ObjectImpl
KException
ObjectImpl.getProperty(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public PropertyDescriptor getPropertyDescriptor(Repository.UnitOfWork transaction, String propName) throws KException
getPropertyDescriptor
in interface KomodoObject
getPropertyDescriptor
in class ObjectImpl
KException
ObjectImpl.getPropertyDescriptor(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public PropertyDescriptor[] getPropertyDescriptors(Repository.UnitOfWork transaction) throws KException
getPropertyDescriptors
in interface KomodoObject
getPropertyDescriptors
in class ObjectImpl
KException
ObjectImpl.getPropertyDescriptors(org.komodo.spi.repository.Repository.UnitOfWork)
public String[] getPropertyNames(Repository.UnitOfWork transaction) throws KException
getPropertyNames
in interface KomodoObject
getPropertyNames
in class ObjectImpl
KException
ObjectImpl.getPropertyNames(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean hasChild(Repository.UnitOfWork transaction, String name) throws KException
hasChild
in interface KomodoObject
hasChild
in class ObjectImpl
KException
ObjectImpl.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 ObjectImpl
KException
ObjectImpl.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 ObjectImpl
KException
ObjectImpl.hasChildren(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean hasDescriptor(Repository.UnitOfWork transaction, String descriptorName) throws KException
hasDescriptor
in interface KomodoObject
hasDescriptor
in class ObjectImpl
KException
ObjectImpl.hasDescriptor(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public boolean hasProperty(Repository.UnitOfWork transaction, String name) throws KException
hasProperty
in interface KomodoObject
hasProperty
in class ObjectImpl
KException
ObjectImpl.hasProperty(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public boolean isChildRestricted()
isChildRestricted
in interface KomodoObject
isChildRestricted
in class ObjectImpl
KomodoObject.isChildRestricted()
public void removeDescriptor(Repository.UnitOfWork transaction, String... descriptorNames) throws KException
removeDescriptor
in interface KomodoObject
removeDescriptor
in class ObjectImpl
KException
ObjectImpl.removeDescriptor(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String[])
protected KomodoObject resolveType(Repository.UnitOfWork transaction, KomodoObject kobject) throws KException
KException
public void setFilters(RelationalObject.Filter[] newFilters)
setFilters
in interface RelationalObject
newFilters
- the new set of filters to use when deciding which properties
and descriptors
are valid for this object (can be null
)RelationalObject.setFilters(org.komodo.relational.RelationalObject.Filter[])
public final void setPrimaryType(Repository.UnitOfWork uow, String typeName)
setPrimaryType
in interface KomodoObject
setPrimaryType
in class ObjectImpl
UnsupportedOperationException
- if calledObjectImpl.setPrimaryType(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public String toString()
toString
in class ObjectImpl
ObjectImpl.toString()
protected void validateInitialState(Repository.UnitOfWork transaction, KomodoObject kobject) throws KException
uow
- the rollback only transaction (never null
)kobject
- the object being checked (cannot be null
)KException
- if an error occursCopyright © 2013–2019. All rights reserved.