Package org.pgcodekeeper.core.schema
Class AbstractView
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.PgStatementContainer
org.pgcodekeeper.core.schema.AbstractView
- All Implemented Interfaces:
IHashable,IRelation,ISearchPath,IStatement,IStatementContainer
- Direct Known Subclasses:
AbstractPgView,ChView,MsView
Abstract base class for database views.
Provides common functionality for views across different database types including.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GO -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstraint(AbstractConstraint constraint) Adds a constraint to this container.booleancompare(PgStatement obj) This method does not account for nested child PgStatements.getConstraint(String name) Finds constraint according to specified constraintname.Gets the columns of this relation as name-type pairs.Gets the type of this database object.Methods inherited from class org.pgcodekeeper.core.schema.PgStatementContainer
addChild, addIndex, addPolicy, addRule, addTrigger, compareChildren, computeChildrenHash, getChild, getContainingSchema, getIndex, getIndexes, getPolicies, getPolicy, getRule, getRules, getTrigger, getTriggers, isClustered, shallowCopyMethods inherited from class org.pgcodekeeper.core.schema.PgStatement
addAllDeps, addDep, addPrivilege, appendAlterComments, appendAlterSQL, appendComments, appendOwnerSQL, canDrop, canDropBeforeCreate, checkComments, clearPrivileges, deepCopy, equals, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDbType, getDeps, getDescendants, getDropSQL, getDropSQL, getLibName, getLocation, getName, getObjectState, getObjectState, getOwner, getParent, getPrivileges, getQualifiedName, getSQL, getTwin, getTypeName, hasChildren, hashCode, isLib, isOwned, isSubElement, setAuthor, setComment, setLibName, setLocation, setOwner, setParent, toStringMethods inherited from interface org.pgcodekeeper.core.hasher.IHashable
computeHashMethods inherited from interface org.pgcodekeeper.core.schema.ISearchPath
getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getName, getParent, getQualifiedName
-
Method Details
-
getStatementType
Description copied from interface:IStatementGets the type of this database object.- Returns:
- the database object type
-
addConstraint
Description copied from class:PgStatementContainerAdds a constraint to this container.- Specified by:
addConstraintin classPgStatementContainer- Parameters:
constraint- the constraint to add
-
getConstraint
Description copied from class:PgStatementContainerFinds constraint according to specified constraintname.- Specified by:
getConstraintin classPgStatementContainer- Parameters:
name- name of the constraint to be searched- Returns:
- found constraint or null if no such constraint has been found
-
getConstraints
- Specified by:
getConstraintsin classPgStatementContainer
-
getRelationColumns
Description copied from interface:IRelationGets the columns of this relation as name-type pairs.- Returns:
- a stream of column name and type pairs
-
compare
Description copied from class:PgStatementThis method does not account for nested child PgStatements. Shallow version ofPgStatement.equals(Object)- Overrides:
comparein classPgStatement
-