Class PgPartitionForeignTable
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.PgAbstractForeignTable
org.pgcodekeeper.core.database.pg.schema.PgPartitionForeignTable
- All Implemented Interfaces:
IForeignTable,IOptionContainer,IPartitionTable,IRelation,ISearchPath,IStatement,IStatementContainer,ITable,PgForeignOptionContainer,IHashable
Partition foreign table object for PostgreSQL.
Represents a partition of a foreign table, which allows partitioning
of data across foreign servers while maintaining the partitioning structure.
- Since:
- 4.1.1
- Author:
- galiev_mr
-
Field Summary
Fields inherited from interface org.pgcodekeeper.core.database.pg.schema.PgForeignOptionContainer
ALTER_FOREIGN_OPTION, DELIM -
Constructor Summary
ConstructorsConstructorDescriptionPgPartitionForeignTable(String name, String serverName, String partitionBounds) Creates a new partition foreign table. -
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 name of the parent table that this partition belongs to.Gets the partition bounds specification for this partition.Methods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractForeignTable
appendMoveDataSql, appendOptions, getAlterHeader, getTypeNameMethods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractTable
addChild, addColumn, addInherits, addOption, appendAlterSQL, appendComments, 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.IRelation
getRelationColumnsMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISearchPath
getContainingSchema, getDatabase, getSchemaName, toObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, 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.IStatementContainer
addChild, getChild, getChildrenByTypeMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ITable
appendMoveDataSql, compareIgnoringColumnOrder, getColumn, getColumns, getConstraints, getStatementType, isRecreatedMethods inherited from interface org.pgcodekeeper.core.database.pg.schema.PgForeignOptionContainer
compareOptions
-
Constructor Details
-
PgPartitionForeignTable
Creates a new partition foreign table.- Parameters:
name- table nameserverName- foreign server namepartitionBounds- partition bounds definition
-
-
Method Details
-
getPartitionBounds
Description copied from interface:IPartitionTableGets the partition bounds specification for this partition.- Specified by:
getPartitionBoundsin interfaceIPartitionTable- Returns:
- the partition bounds as SQL string
-
getParentTable
Description copied from interface:IPartitionTableGets the name of the parent table that this partition belongs to.- Specified by:
getParentTablein interfaceIPartitionTable- Returns:
- the parent table name
-
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 classPgAbstractForeignTable- 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 classPgAbstractTable
-