Class PgMaterializedView
java.lang.Object
org.pgcodekeeper.core.database.base.schema.AbstractStatement
org.pgcodekeeper.core.database.pg.schema.PgAbstractStatement
org.pgcodekeeper.core.database.pg.schema.PgAbstractStatementContainer
org.pgcodekeeper.core.database.pg.schema.PgAbstractView
org.pgcodekeeper.core.database.pg.schema.PgMaterializedView
- All Implemented Interfaces:
IOptionContainer,IRelation,ISearchPath,ISimpleOptionContainer,IStatement,IStatementContainer,IView,IHashable
PostgreSQL materialized view implementation.
Materialized views are database objects that contain the results of a query
and can be refreshed periodically to update the cached data.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractView
CHECK_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(IStatement obj) This method does not account for nested child PgStatements.voidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.Gets the type name of this statement for SQL generation.voidsetDistribution(String distribution) voidsetIsWithData(Boolean isWithData) voidvoidsetTablespace(String tablespace) Methods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractView
addColumnComment, addColumnName, addOption, appendAlterComments, appendAlterSQL, appendComments, canDropBeforeCreate, getConstraints, getCreationSQL, getOptions, getRelationColumns, setQueryMethods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractStatementContainer
addChild, compareChildren, computeChildrenHash, fillChildrenList, getChild, getChildrenByType, getIndex, getIndexes, getPolicies, getPolicy, getRule, getTrigger, getTriggers, isClusteredMethods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractStatement
addPrivilege, appendDefaultPrivileges, appendOwnerSQL, formatSql, getQuoter, getRenameCommand, isOwnedMethods inherited from class org.pgcodekeeper.core.database.base.schema.AbstractStatement
addDependency, appendPrivileges, canDrop, checkComments, clearPrivileges, deepCopy, equals, fillDescendantsList, getAuthor, getBareName, getChildren, getComment, getDependencies, getDescendants, getDropSQL, getDropSQL, getLibName, getLocation, getName, getObjectState, getObjectState, getOwner, getParent, getPrivileges, getQualifiedName, getSeparator, getSQL, getTwin, hasChildren, hashCode, isLib, setAuthor, setComment, setLibName, setLocation, setOwner, setParent, shallowCopy, toStringMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISearchPath
getContainingSchema, getDatabase, getSchemaName, toObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISimpleOptionContainer
appendOptions, compareOptionsMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendOwnerSQL, canDrop, clearPrivileges, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getTwin, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopyMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatementContainer
addChild, getChild, getChildrenByTypeMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IView
getStatementType
-
Constructor Details
-
PgMaterializedView
Creates a new materialized view.- Parameters:
name- view name
-
-
Method Details
-
getTypeName
Description copied from interface:IStatementGets the type name of this statement for SQL generation.- Returns:
- the type name
-
setMethod
-
setDistribution
-
setIsWithData
-
setTablespace
-
computeHash
Description copied from interface:IHashableComputes the hash of the implementing object using the provided hasher. The implementation should call appropriateputmethods on the hasher for all fields that should contribute to the hash value.- Specified by:
computeHashin interfaceIHashable- Overrides:
computeHashin classPgAbstractView- Parameters:
hasher- the hasher instance to use for hash computation
-
compare
Description copied from class:AbstractStatementThis method does not account for nested child PgStatements. Shallow version ofAbstractStatement.equals(Object)- Specified by:
comparein interfaceIStatement- Overrides:
comparein classPgAbstractView
-