Interface IIndex
- All Superinterfaces:
IOptionContainer,ISearchPath,ISimpleColumnContainer,ISimpleOptionContainer,IStatement,ISubElement
Interface for database index
-
Method Summary
Modifier and TypeMethodDescriptionbooleancompareColumns(Collection<String> refs) Compares the columns of this index with a collection of column references.default DbObjTypeGets the type of this database object.booleanisUnique()default ObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IOptionContainer
addOption, getOptionsMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISearchPath
getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISimpleColumnContainer
addColumn, addIncludeMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISimpleOptionContainer
appendOptions, compareOptionsMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopyMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISubElement
getContainingSchema
-
Method Details
-
getStatementType
Description copied from interface:IStatementGets the type of this database object.- Specified by:
getStatementTypein interfaceIStatement- Returns:
- the database object type
-
toObjectReference
- Specified by:
toObjectReferencein interfaceISearchPath- Specified by:
toObjectReferencein interfaceIStatement- Specified by:
toObjectReferencein interfaceISubElement
-
isUnique
boolean isUnique()- Returns:
- true if unique index
-
compareColumns
Compares the columns of this index with a collection of column references.- Parameters:
refs- the collection of column references to compare against- Returns:
- true if the columns match in order and count
-