Package org.pgcodekeeper.core.schema.pg
Class PgRangeType
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.AbstractType
org.pgcodekeeper.core.schema.pg.PgRangeType
- All Implemented Interfaces:
IHashable,ISearchPath,IStatement
PostgreSQL range type implementation.
Range types store ranges of values for a given subtype, such as int4range for integers
or tsrange for timestamps. They support inclusion/exclusion bounds and various operations.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(PgStatement 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 underlying data type for this range.voidsetCanonical(String canonical) voidsetCollation(String collation) voidsetMultirange(String multirange) voidsetSubtype(String subtype) voidsetSubtypeDiff(String subtypeDiff) voidsetSubtypeOpClass(String subtypeOpClass) Methods inherited from class org.pgcodekeeper.core.schema.AbstractType
appendAlterSQL, getContainingSchema, getCreationSQL, getStatementType, shallowCopyMethods inherited from class org.pgcodekeeper.core.schema.PgStatement
addAllDeps, addDep, addPrivilege, appendAlterComments, appendComments, appendOwnerSQL, canDrop, canDropBeforeCreate, checkComments, clearPrivileges, compareChildren, deepCopy, equals, getAuthor, getBareName, getChildren, getComment, 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.schema.ISearchPath
getDatabase, getSchemaNameMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getName, getParent, getQualifiedName
-
Constructor Details
-
PgRangeType
Creates a new PostgreSQL range type.- Parameters:
name- range type name
-
-
Method Details
-
getSubtype
Gets the underlying data type for this range.- Returns:
- subtype name
-
setSubtype
-
setSubtypeOpClass
-
setCollation
-
setCanonical
-
setSubtypeDiff
-
setMultirange
-
compare
Description copied from class:PgStatementThis method does not account for nested child PgStatements. Shallow version ofPgStatement.equals(Object)- Overrides:
comparein classAbstractType
-
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.- Parameters:
hasher- the hasher instance to use for hash computation
-