Class PgBaseType
java.lang.Object
org.pgcodekeeper.core.database.base.schema.AbstractStatement
org.pgcodekeeper.core.database.pg.schema.PgAbstractStatement
org.pgcodekeeper.core.database.pg.schema.PgAbstractType
org.pgcodekeeper.core.database.pg.schema.PgBaseType
- All Implemented Interfaces:
ISearchPath,IStatement,IType,ICompressOptionContainer,IHashable
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 interface org.pgcodekeeper.core.database.pg.schema.ICompressOptionContainer
DEFAULT_BLOCK_SIZE, DEFAULT_COMPRESS_LEVEL, DEFAULT_COMPRESS_TYPE -
Constructor Summary
Constructors -
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.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.database.pg.schema.PgAbstractType
appendAlterSQL, getCreationSQLMethods 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, appendComments, appendPrivileges, canDrop, canDropBeforeCreate, checkComments, clearPrivileges, compareChildren, deepCopy, equals, fillChildrenList, 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.ISearchPath
getContainingSchema, getDatabase, getSchemaName, toObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, 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.IType
getStatementType
-
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
-
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
-
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 classAbstractStatement
-