Package com.wisecoders.dbs.schema
Class Index
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractUnit
com.wisecoders.dbs.schema.Index
- All Implemented Interfaces:
TreeUnit,Unit,DbUnit,Comparable<AbstractUnit>
Represent an index on columns
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an attribute to the current index.booleanstatic booleanattributesAreEqual(Collection<Column> collection1, Collection<Column> collection2) voidClears all attributes.getChildAt(int idx) intgetColumnOptions(Column column) getDbId()com.wisecoders.dbs.sys.fx.glyph.GlyphgetType()booleanhasColumnOption(Column column, String option) booleanisUnique()static StringlistAttributes(List<? extends Attribute> attributes) voidvoidrefresh()booleansameAs(AbstractUnit unit, boolean considerRenaming) voidsetColumnOptions(Column column, String property) voidsetOptions(String options) voidsetSpecificationOptions(String options) voidMethods inherited from class com.wisecoders.dbs.diagram.model.AbstractUnit
compareTo, fixNull, getByName, getByName, getComment, getCommentNotNull, getCommentTag, getCommentTags, getDefaultKey, getDisplayName, getKey, getName, getParentEntity, getPlainName, getPropertyAddOnFolder, getString, getSyncFolders, getTickId, getTouchId, getUnitProperty, has, is, is, isMarkedForDeletion, isVirtual, markForDeletion, matches, ref, removeUnitProperty, rename, sameAs, setComment, setCommentTag, setCommentTags, setTouchId, setUnitProperty, setVirtual, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.wisecoders.dbs.diagram.model.Unit
getComment, getCommentTag, getCommentTags, getDisplayName, getParentEntity, is, isMarkedForDeletion, markForDeletion, ref, setComment, setCommentTag, setCommentTags
-
Field Details
-
INCLUDE_COLUMN_OPTION
- See Also:
-
columns
-
-
Constructor Details
-
Index
-
Index
-
-
Method Details
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceUnit- Specified by:
getSymbolicNamein classAbstractUnit
-
getType
-
setType
-
setOptions
-
getOptions
-
setSpecificationOptions
-
getSpecificationOptions
-
getSymbolicIcon
- Specified by:
getSymbolicIconin classAbstractUnit
-
getSymbolicGlyph
public com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph()- Specified by:
getSymbolicGlyphin classAbstractUnit
-
isUnique
public boolean isUnique() -
refresh
public void refresh()- Specified by:
refreshin classAbstractUnit
-
areColumnsMandatory
public boolean areColumnsMandatory() -
getParent
- Specified by:
getParentin interfaceTreeUnit- Specified by:
getParentin classAbstractUnit
-
getChildrenCount
public int getChildrenCount()- Specified by:
getChildrenCountin interfaceTreeUnit- Overrides:
getChildrenCountin classAbstractUnit
-
getChildAt
- Specified by:
getChildAtin interfaceTreeUnit- Overrides:
getChildAtin classAbstractUnit
-
clearAttributes
public void clearAttributes()Clears all attributes. -
addColumn
Adds an attribute to the current index.- Parameters:
col- to be added
-
getColumns
-
sameAs
- Overrides:
sameAsin classAbstractUnit
-
merge
-
getEntity
-
attributesAreEqual
public static boolean attributesAreEqual(Collection<Column> collection1, Collection<Column> collection2) -
listAttributes
-
setColumnOptions
-
getColumnOptions
-
getColumnOptions
-
hasColumnOption
-
getDbId
-
getSchema
-