public abstract class Type extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Type.Category |
static class |
Type.Codec
A pair of related interface methods to encode/decode a type in a
specific format.
|
Constructor and Description |
---|
Type() |
Type(int id,
String name,
Short length,
Byte alignment,
Type.Category category,
char delimeter,
int arrayTypeId,
Type.Codec binaryCodec,
Type.Codec textCodec) |
public Type()
public Type(int id, String name, Short length, Byte alignment, Type.Category category, char delimeter, int arrayTypeId, Type.Codec binaryCodec, Type.Codec textCodec)
public int getId()
public void setId(int id)
public String getName()
public void setName(String name)
public String getNamespace()
public void setNamespace(String namespace)
public Short getLength()
public void setLength(Short length)
public Byte getAlignment()
public void setAlignment(Byte alignment)
public Type.Category getCategory()
public void setCategory(Type.Category category)
public char getDelimeter()
public void setDelimeter(char delimeter)
public int getArrayTypeId()
public void setArrayTypeId(int arrayTypeId)
public Type.Codec getBinaryCodec()
public void setBinaryCodec(Type.Codec binaryCodec)
public Type.Codec getTextCodec()
public void setTextCodec(Type.Codec textCodec)
public Type.Codec getCodec(ResultField.Format format)
public Modifiers.Parser getModifierParser()
public void setModifierParser(Modifiers.Parser modifierParser)
public int getRelationId()
public void setRelationId(int relationId)
public Type unwrap()
public PrimitiveType getPrimitiveType()
public Class<?> getJavaType(ResultField.Format format, Map<String,Class<?>> customizations)
public ResultField.Format getPreferredFormat()
public boolean isParameterFormatSupported(ResultField.Format format)
public ResultField.Format getParameterFormat()
public boolean isResultFormatSupported(ResultField.Format format)
public ResultField.Format getResultFormat()
public void load(PgType.Row source, Collection<PgAttribute.Row> attrs, Registry registry)
source
- The "pg_type" table entryattrs
- Associated "pg_attribute" table entries, if available.registry
- The registry that is loading the type.public static Byte getAlignment(Character align)
align
- Alignment IDCopyright © 2013–2017 impossibl.com. All rights reserved.