Class PgAbstractRegularTable
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.PgAbstractTable
org.pgcodekeeper.core.database.pg.schema.PgAbstractRegularTable
- All Implemented Interfaces:
IOptionContainer,IRelation,ISearchPath,ISimpleOptionContainer,IStatement,IStatementContainer,ITable,IHashable
- Direct Known Subclasses:
GpPartitionTable,PgPartitionTable,PgSimpleTable,PgTypedTable
public abstract class PgAbstractRegularTable
extends PgAbstractTable
implements ISimpleOptionContainer
Base PostgreSQL regular table implementation.
Provides common functionality for standard PostgreSQL tables including
logging, tablespace, row-level security, partitioning, and Greenplum distribution options.
- Since:
- 4.1.1
- Author:
- galiev_mr
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.Gets the partition specification for this table.booleanisLogged()Checks if this table is logged (writes to WAL).voidsetDistribution(String distribution) voidsetForceSecurity(boolean isForceSecurity) voidsetLogged(boolean isLogged) voidvoidsetPartitionBy(String partitionBy) voidsetRowSecurity(boolean isRowSecurity) voidsetTablespace(String tablespace) Methods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractTable
addChild, addColumn, addInherits, addOption, appendAlterSQL, appendComments, appendMoveDataSql, compare, compareChildren, compareIgnoringColumnOrder, computeChildrenHash, fillChildrenList, getChild, getChildrenByType, getColumn, getColumns, getConstraint, getConstraints, getCreationSQL, getInherits, getOptions, getRelationColumns, hasInherits, isClustered, isRecreated, putTriggerState, setHasOids, sortColumnsMethods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractStatementContainer
getIndex, getIndexes, getPolicies, getPolicy, getRule, getTrigger, getTriggersMethods 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, appendAlterComments, appendPrivileges, canDrop, canDropBeforeCreate, 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.IOptionContainer
addOption, getOptionsMethods 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, 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.ITable
getStatementType
-
Method Details
-
setMethod
-
isLogged
public boolean isLogged()Checks if this table is logged (writes to WAL).- Returns:
- true if logged, false if unlogged
-
setLogged
public void setLogged(boolean isLogged) -
setTablespace
-
setRowSecurity
public void setRowSecurity(boolean isRowSecurity) -
setForceSecurity
public void setForceSecurity(boolean isForceSecurity) -
getPartitionBy
Gets the partition specification for this table.- Returns:
- partition by clause or null if not partitioned
-
setPartitionBy
-
setDistribution
-
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 classPgAbstractTable- Parameters:
hasher- the hasher instance to use for hash computation
-