Class PgTypedTable
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
org.pgcodekeeper.core.database.pg.schema.PgTypedTable
- All Implemented Interfaces:
IOptionContainer,IRelation,ISearchPath,ISimpleOptionContainer,IStatement,IStatementContainer,ITable,IHashable
PostgreSQL typed table implementation.
Typed tables are based on a composite type and inherit the structure
of that type, allowing for type-safe table definitions.
- Since:
- 4.1.1
- Author:
- galiev_mr
-
Constructor Summary
ConstructorsConstructorDescriptionPgTypedTable(String name, String ofType) Creates a new PostgreSQL typed 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 composite type this table is based on.Methods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractRegularTable
getPartitionBy, isLogged, setDistribution, setForceSecurity, setLogged, setMethod, setPartitionBy, setRowSecurity, setTablespaceMethods inherited from class org.pgcodekeeper.core.database.pg.schema.PgAbstractTable
addChild, addColumn, addInherits, addOption, appendAlterSQL, appendComments, appendMoveDataSql, 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, 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
-
Constructor Details
-
PgTypedTable
Creates a new PostgreSQL typed table.- Parameters:
name- table nameofType- composite type name this table is based on
-
-
Method Details
-
getOfType
Gets the composite type this table is based on.- Returns:
- composite type 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 classPgAbstractRegularTable- 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
-