Package org.pgcodekeeper.core.schema.pg
Class PgBaseType
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.AbstractType
org.pgcodekeeper.core.schema.pg.PgBaseType
- All Implemented Interfaces:
IHashable,ICompressOptionContainer,ISearchPath,IStatement
PostgreSQL base type implementation.
Represents user-defined base types with input/output functions,
storage properties, and optional Greenplum compression options.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GOFields inherited from interface org.pgcodekeeper.core.schema.ICompressOptionContainer
DEFAULT_BLOCK_SIZE, DEFAULT_COMPESS_LEVEL, DEFAULT_COMPESS_TYPE -
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.voidsetAlignment(String alignment) voidsetAnalyzeFunction(String analyzeFunction) voidsetBlockSize(int blockSize) Sets the block size for this object.voidsetCategory(String category) voidsetCollatable(String collatable) voidsetCompressLevel(int compressLvl) Sets the compression level for this object.voidsetCompressType(String compressType) Sets the compression type for this object.voidsetDefaultValue(String defaultValue) voidsetDelimiter(String delimiter) voidsetElement(String element) voidsetInputFunction(String inputFunction) voidsetInternalLength(String internalLength) voidsetLikeType(String likeType) voidsetOutputFunction(String outputFunction) voidsetPassedByValue(boolean passedByValue) voidsetPreferred(String preferred) voidsetReceiveFunction(String receiveFunction) voidsetSendFunction(String sendFunction) voidsetStorage(String storage) voidsetSubscriptFunction(String subscriptFunction) voidsetTypmodInputFunction(String typmodInputFunction) voidsetTypmodOutputFunction(String typmodOutputFunction) 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
-
PgBaseType
Creates a new PostgreSQL base type.- Parameters:
name- type name
-
-
Method Details
-
setInputFunction
-
setOutputFunction
-
setReceiveFunction
-
setSendFunction
-
setTypmodInputFunction
-
setTypmodOutputFunction
-
setAnalyzeFunction
-
setSubscriptFunction
-
setInternalLength
-
setPassedByValue
public void setPassedByValue(boolean passedByValue) -
setAlignment
-
setStorage
-
setLikeType
-
setCategory
-
setPreferred
-
setDefaultValue
-
setElement
-
setDelimiter
-
setCollatable
-
setCompressType
Description copied from interface:ICompressOptionContainerSets the compression type for this object.- Specified by:
setCompressTypein interfaceICompressOptionContainer- Parameters:
compressType- the compression type to set
-
setCompressLevel
public void setCompressLevel(int compressLvl) Description copied from interface:ICompressOptionContainerSets the compression level for this object.- Specified by:
setCompressLevelin interfaceICompressOptionContainer- Parameters:
compressLvl- the compression level to set
-
setBlockSize
public void setBlockSize(int blockSize) Description copied from interface:ICompressOptionContainerSets the block size for this object.- Specified by:
setBlockSizein interfaceICompressOptionContainer- Parameters:
blockSize- the block size to set
-
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.- Specified by:
computeHashin interfaceIHashable- Parameters:
hasher- the hasher instance to use for hash computation
-