public final class ColumnImpl extends RelationalChildRestrictedObject implements Column
Column.Searchable
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
DEFAULT_AUTO_INCREMENTED, DEFAULT_CASE_SENSITIVE, DEFAULT_CHAR_OCTET_LENGTH, DEFAULT_CURRENCY, DEFAULT_DISTINCT_VALUES, DEFAULT_FIXED_LENGTH, DEFAULT_NULL_VALUE_COUNT, DEFAULT_RADIX, DEFAULT_SELECTABLE, DEFAULT_SIGNED, DEFAULT_UPDATABLE, IDENTIFIER, NO_COLUMNS, 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 |
---|
ColumnImpl(Repository.UnitOfWork uow,
Repository repository,
String workspacePath) |
addChild, getChildren, getChildrenOfType, getChildTypes, hasChild, hasChildren, isChildRestricted
getChild, getChild, getDescriptor, getDescriptors, getFilters, getPropertyDescriptors, hasChild, hasDescriptor, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getIndex, getName, getObjectFactory, getObjectProperty, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, handleError, hashCode, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFilters, setFilters
accept, addChild, addDescriptor, getChild, getChild, getChildren, getChildrenOfType, getChildTypes, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPropertyDescriptors, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, hasChild, hasChild, hasChildren, hasDescriptor, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType
getAbsolutePath, getName, getRepository
public ColumnImpl(Repository.UnitOfWork uow, Repository repository, String workspacePath) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)repository
- the repository where the relational object exists (cannot be null
)workspacePath
- the workspace relative path (cannot be empty)KException
- if an error occurs or if node at specified path is not a columnpublic long getCharOctetLength(Repository.UnitOfWork transaction) throws KException
getCharOctetLength
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)char octet length
propertyKException
- if an error occursColumn.getCharOctetLength(org.komodo.spi.repository.Repository.UnitOfWork)
public String getCollationName(Repository.UnitOfWork uow) throws KException
getCollationName
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)collation name
property (can be empty)KException
- if an error occursColumn.getCollationName(org.komodo.spi.repository.Repository.UnitOfWork)
public StatementOption[] getCustomOptions(Repository.UnitOfWork transaction) throws KException
getCustomOptions
in interface OptionContainer
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 occursOptionContainer.getCustomOptions(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDatatypeName(Repository.UnitOfWork uow) throws KException
getDatatypeName
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype name
property (can be empty)KException
- if an error occursColumn.getDatatypeName(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDefaultValue(Repository.UnitOfWork uow) throws KException
getDefaultValue
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)default value
property (can be empty)KException
- if an error occursColumn.getDefaultValue(org.komodo.spi.repository.Repository.UnitOfWork)
public String getDescription(Repository.UnitOfWork transaction) throws KException
getDescription
in interface Column
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 occursColumn.getDescription(org.komodo.spi.repository.Repository.UnitOfWork)
public long getDistinctValues(Repository.UnitOfWork transaction) throws KException
getDistinctValues
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if an error occursColumn.getDistinctValues(org.komodo.spi.repository.Repository.UnitOfWork)
public long getLength(Repository.UnitOfWork uow) throws KException
getLength
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype length
propertyKException
- if an error occursColumn.getLength(org.komodo.spi.repository.Repository.UnitOfWork)
public String getMaxValue(Repository.UnitOfWork transaction) throws KException
getMaxValue
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)maximum value
property (can be empty)KException
- if an error occursColumn.getMaxValue(org.komodo.spi.repository.Repository.UnitOfWork)
public String getMinValue(Repository.UnitOfWork transaction) throws KException
getMinValue
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)minimum value
property (can be empty)KException
- if an error occursColumn.getMinValue(org.komodo.spi.repository.Repository.UnitOfWork)
public String getNameInSource(Repository.UnitOfWork transaction) throws KException
getNameInSource
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)name in source
property (can be empty)KException
- if an error occursColumn.getNameInSource(org.komodo.spi.repository.Repository.UnitOfWork)
public String getNativeType(Repository.UnitOfWork transaction) throws KException
getNativeType
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)native type
property (can be empty)KException
- if an error occursColumn.getNativeType(org.komodo.spi.repository.Repository.UnitOfWork)
public RelationalConstants.Nullable getNullable(Repository.UnitOfWork uow) throws KException
getNullable
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)nullable
property (never null
)KException
- if an error occursColumn.getNullable(org.komodo.spi.repository.Repository.UnitOfWork)
public long getNullValueCount(Repository.UnitOfWork transaction) throws KException
getNullValueCount
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)null value count
propertyKException
- if an error occursColumn.getNullValueCount(org.komodo.spi.repository.Repository.UnitOfWork)
public long getPrecision(Repository.UnitOfWork uow) throws KException
getPrecision
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype precision
propertyKException
- if an error occursColumn.getPrecision(org.komodo.spi.repository.Repository.UnitOfWork)
public Descriptor getPrimaryType(Repository.UnitOfWork transaction) throws KException
getPrimaryType
in interface KomodoObject
getPrimaryType
in class ObjectImpl
KException
ObjectImpl.getPrimaryType(org.komodo.spi.repository.Repository.UnitOfWork)
public Property getProperty(Repository.UnitOfWork transaction, String name) throws KException
getProperty
in interface KomodoObject
getProperty
in class RelationalObjectImpl
KException
RelationalObjectImpl.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 RelationalObjectImpl
KException
RelationalObjectImpl.getPropertyDescriptor(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public String[] getPropertyNames(Repository.UnitOfWork transaction) throws KException
getPropertyNames
in interface KomodoObject
getPropertyNames
in class RelationalObjectImpl
KException
RelationalObjectImpl.getPropertyNames(org.komodo.spi.repository.Repository.UnitOfWork)
public long getRadix(Repository.UnitOfWork transaction) throws KException
getRadix
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype radix
propertyKException
- if an error occursColumn.getRadix(org.komodo.spi.repository.Repository.UnitOfWork)
public long getScale(Repository.UnitOfWork uow) throws KException
getScale
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)datatype scale
propertyKException
- if an error occursColumn.getScale(org.komodo.spi.repository.Repository.UnitOfWork)
public Column.Searchable getSearchable(Repository.UnitOfWork transaction) throws KException
getSearchable
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)searchable
property (never null
)KException
- if an error occursColumn.getSearchable(org.komodo.spi.repository.Repository.UnitOfWork)
public Map<String,String> getStandardOptions()
getStandardOptions
in interface OptionContainer
null
but can be empty)OptionContainer.getStandardOptions()
public String[] getStatementOptionNames(Repository.UnitOfWork transaction) throws KException
getStatementOptionNames
in interface OptionContainer
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 occursOptionContainer.getStatementOptionNames(org.komodo.spi.repository.Repository.UnitOfWork)
public StatementOption[] getStatementOptions(Repository.UnitOfWork transaction) throws KException
getStatementOptions
in interface OptionContainer
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 occursOptionContainer.getStatementOptions(org.komodo.spi.repository.Repository.UnitOfWork)
public int getTypeId()
getTypeId
in interface KomodoObject
getTypeId
in class ObjectImpl
KomodoObject.getTypeId()
public KomodoType getTypeIdentifier(Repository.UnitOfWork uow)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
ObjectImpl.getTypeIdentifier(org.komodo.spi.repository.Repository.UnitOfWork)
public String getUuid(Repository.UnitOfWork transaction) throws KException
getUuid
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)UUID
option (can be empty)KException
- if an error occursColumn.getUuid(org.komodo.spi.repository.Repository.UnitOfWork)
public Table getParent(Repository.UnitOfWork transaction) throws KException
getParent
in interface Column
getParent
in interface KNode
getParent
in class RelationalObjectImpl
KException
RelationalObjectImpl.getParent(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean hasProperties(Repository.UnitOfWork transaction) throws KException
hasProperties
in interface KomodoObject
hasProperties
in class ObjectImpl
KException
ObjectImpl.hasProperties(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean hasProperty(Repository.UnitOfWork transaction, String name) throws KException
hasProperty
in interface KomodoObject
hasProperty
in class RelationalObjectImpl
KException
RelationalObjectImpl.hasProperty(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public boolean isAutoIncremented(Repository.UnitOfWork uow) throws KException
isAutoIncremented
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if auto-incrementedKException
- if an error occursColumn.isAutoIncremented(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isCaseSensitive(Repository.UnitOfWork transaction) throws KException
isCaseSensitive
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if case-sensitiveKException
- if an error occursColumn.isCaseSensitive(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isCurrency(Repository.UnitOfWork transaction) throws KException
isCurrency
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if this column holds a currency valueKException
- if an error occursColumn.isCurrency(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isCustomOption(Repository.UnitOfWork transaction, String name) throws KException
isCustomOption
in interface OptionContainer
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)name
- the name of the option being checked (cannot be empty)true
if the custom option existsKException
- if an error occursOptionContainer.isCustomOption(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public boolean isFixedLength(Repository.UnitOfWork transaction) throws KException
isFixedLength
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if this column has a fixed lengthKException
- if an error occursColumn.isFixedLength(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isSelectable(Repository.UnitOfWork transaction) throws KException
isSelectable
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if this column is selectableKException
- if an error occursColumn.isSelectable(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isSigned(Repository.UnitOfWork transaction) throws KException
isSigned
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if this column's value is signedKException
- if an error occursColumn.isSigned(org.komodo.spi.repository.Repository.UnitOfWork)
public boolean isStandardOption(String name)
isStandardOption
in interface OptionContainer
name
- the name of the option being checked (cannot be empty)true
if a standard optionOptionContainer.isStandardOption(java.lang.String)
public boolean isUpdatable(Repository.UnitOfWork transaction) throws KException
isUpdatable
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)true
if this column is updatableKException
- if an error occursColumn.isUpdatable(org.komodo.spi.repository.Repository.UnitOfWork)
public void removeStatementOption(Repository.UnitOfWork transaction, String optionToRemove) throws KException
removeStatementOption
in interface OptionContainer
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)optionToRemove
- the name of the statement option being removed (cannot be empty)KException
- if an error occursOptionContainer.removeStatementOption(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String)
public void setAutoIncremented(Repository.UnitOfWork uow, boolean newAutoIncremented) throws KException
setAutoIncremented
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newAutoIncremented
- the new value for the auto-incremented
propertyKException
- if an error occursColumn.setAutoIncremented(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setCaseSensitive(Repository.UnitOfWork transaction, boolean newCaseSensitive) throws KException
setCaseSensitive
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newCaseSensitive
- the new value for the case-sensitive
propertyKException
- if an error occursColumn.setCaseSensitive(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setCharOctetLength(Repository.UnitOfWork transaction, long newCharOctetLength) throws KException
setCharOctetLength
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newCharOctetLength
- the new value of the char octet length
propertyKException
- if an error occursColumn.setCharOctetLength(org.komodo.spi.repository.Repository.UnitOfWork, long)
public void setCollationName(Repository.UnitOfWork uow, String newCollationName) throws KException
setCollationName
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newCollationName
- the new value of the collation name
property (can be empty)KException
- if an error occursColumn.setCollationName(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setCurrency(Repository.UnitOfWork transaction, boolean newCurrency) throws KException
setCurrency
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newCurrency
- the new value for the currency
propertyKException
- if an error occursColumn.setCurrency(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setDatatypeName(Repository.UnitOfWork uow, String newTypeName) throws KException
setDatatypeName
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newTypeName
- the new value of the datatype name
propertyKException
- if an error occursColumn.setDatatypeName(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setDefaultValue(Repository.UnitOfWork uow, String newDefaultValue) throws KException
setDefaultValue
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newDefaultValue
- the new value of the default value
property (can be empty)KException
- if an error occursColumn.setDefaultValue(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setDescription(Repository.UnitOfWork transaction, String newDescription) throws KException
setDescription
in interface Column
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
property (can only be empty when removing)KException
- if an error occursColumn.setDescription(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setDistinctValues(Repository.UnitOfWork transaction, long newDistinctValues) throws KException
setDistinctValues
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newDistinctValues
- the new value for the distinct values
propertyKException
- if an error occursColumn.DEFAULT_DISTINCT_VALUES
public void setFixedLength(Repository.UnitOfWork transaction, boolean newFixedLength) throws KException
setFixedLength
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newFixedLength
- the new value for the fixed length
propertyKException
- if an error occursColumn.setFixedLength(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setLength(Repository.UnitOfWork uow, long newLength) throws KException
setLength
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newLength
- the new value of the datatype length
propertyKException
- if an error occursColumn.setLength(org.komodo.spi.repository.Repository.UnitOfWork, long)
public void setMaxValue(Repository.UnitOfWork transaction, String newMaxValue) throws KException
setMaxValue
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newMaxValue
- the new maximum value (can only be empty when removing)KException
- if an error occursColumn.setMaxValue(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setMinValue(Repository.UnitOfWork transaction, String newMinValue) throws KException
setMinValue
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newMinValue
- the new minimum value (can only be empty when removing)KException
- if an error occursColumn.setMinValue(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setNameInSource(Repository.UnitOfWork transaction, String newNameInSource) throws KException
setNameInSource
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newNameInSource
- the new name in source (can only be empty when removing)KException
- if an error occursColumn.setNameInSource(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setNativeType(Repository.UnitOfWork transaction, String newNativeType) throws KException
setNativeType
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newNativeType
- the new value of the native type
property (can only be empty when removing)KException
- if an error occursColumn.setNativeType(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
public void setNullable(Repository.UnitOfWork uow, RelationalConstants.Nullable newNullable) throws KException
setNullable
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newNullable
- the new value of the nullable
property (can be null
)KException
- if an error occursColumn.setNullable(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.RelationalConstants.Nullable)
public void setNullValueCount(Repository.UnitOfWork transaction, long newNullValueCount) throws KException
setNullValueCount
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newNullValueCount
- the new value of the null value count
propertyKException
- if an error occursColumn.setNullValueCount(org.komodo.spi.repository.Repository.UnitOfWork, long)
public void setPrecision(Repository.UnitOfWork uow, long newPrecision) throws KException
setPrecision
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newPrecision
- the new value of the datatype precision
propertyKException
- if an error occursColumn.setPrecision(org.komodo.spi.repository.Repository.UnitOfWork, long)
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 void setRadix(Repository.UnitOfWork transaction, long newRadix) throws KException
setRadix
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newRadix
- the new value of the datatype radix
propertyKException
- if an error occursColumn.setRadix(org.komodo.spi.repository.Repository.UnitOfWork, long)
public void setScale(Repository.UnitOfWork uow, long newScale) throws KException
setScale
in interface Column
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newScale
- the new value of the datatype scale
propertyKException
- if an error occursColumn.setScale(org.komodo.spi.repository.Repository.UnitOfWork, long)
public void setSearchable(Repository.UnitOfWork transaction, Column.Searchable newSearchable) throws KException
setSearchable
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newSearchable
- the new value of the searchable
property (can be null
)KException
- if an error occursColumn.setSearchable(org.komodo.spi.repository.Repository.UnitOfWork,
org.komodo.relational.model.Column.Searchable)
public void setSelectable(Repository.UnitOfWork transaction, boolean newSelectable) throws KException
setSelectable
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newSelectable
- the new value for the selectable
propertyKException
- if an error occursColumn.setSelectable(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setSigned(Repository.UnitOfWork transaction, boolean newSigned) throws KException
setSigned
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newSigned
- the new value for the signed
propertyKException
- if an error occursColumn.setSigned(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public StatementOption setStatementOption(Repository.UnitOfWork transaction, String optionName, String optionValue) throws KException
setStatementOption
in interface OptionContainer
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)optionName
- the name of the statement option being added (cannot be empty)optionValue
- the statement option value (can be empty if removing the option)null
if removed)KException
- if an error occursOptionContainer.setStatementOption(org.komodo.spi.repository.Repository.UnitOfWork,
java.lang.String, java.lang.String)
public void setUpdatable(Repository.UnitOfWork transaction, boolean newUpdatable) throws KException
setUpdatable
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newUpdatable
- the new value for the updatable
propertyKException
- if an error occursColumn.setUpdatable(org.komodo.spi.repository.Repository.UnitOfWork, boolean)
public void setUuid(Repository.UnitOfWork transaction, String newUuid) throws KException
setUuid
in interface Column
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)newUuid
- the new value of the UUID
option (can only be empty when removing)KException
- if an error occursColumn.setUuid(org.komodo.spi.repository.Repository.UnitOfWork, java.lang.String)
Copyright © 2013–2019. All rights reserved.