Class SimpleColumn
java.lang.Object
org.pgcodekeeper.core.database.base.schema.SimpleColumn
- All Implemented Interfaces:
Serializable,IHashable
Represents a simple column reference with ordering and operator class information.
Used primarily for index column definitions and similar contexts where column
attributes like sorting, collation, and operator classes are needed.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOpClassParam(String key, String value) Adds an operator class parameter.voidcomputeHash(Hasher hasher) Computes the hash of the implementing object using the provided hasher.booleangetName()inthashCode()booleanisDesc()voidsetCollation(String collation) voidsetDesc(boolean isDesc) voidsetNullsOrdering(String nullsOrdering) voidsetOpClass(String opClass) voidsetOperator(String operator)
-
Constructor Details
-
SimpleColumn
-
-
Method Details
-
addOpClassParam
Adds an operator class parameter.- Parameters:
key- the parameter keyvalue- the parameter value
-
getOpClassParams
-
setCollation
-
getCollation
-
setOperator
-
getOperator
-
setOpClass
-
getOpClass
-
setNullsOrdering
-
getNullsOrdering
-
isDesc
public boolean isDesc() -
setDesc
public void setDesc(boolean isDesc) -
getName
-
hashCode
public int hashCode() -
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
-
equals
-