Top Description Methods
org.postgresql.jdbc2

public Interface ArrayAssistant

Known Direct Implementers
org.postgresql.jdbc.UUIDArrayAssistant

Implement this interface and register the its instance to ArrayAssistantRegistry, to let Postgres driver to support more array type.
Author
Minglei Tu

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

array base type
baseType
()

get array base type.

public Object

Returns:

array element from its binary bytes
buildElement
(byte[]
input bytes
bytes
,
int
position in input array
pos
,
int
length of the element
len
)

build a array element from its binary bytes.

public Object

Returns:

array element
buildElement
(String
string representation of array element
literal
)

build an array element from its literal string.

Method Detail

baseTypeback to summary
public Class<?> baseType()

get array base type.

Returns:Class<?>

array base type

buildElementback to summary
public Object buildElement(byte[] bytes, int pos, int len)

build a array element from its binary bytes.

Parameters
bytes:byte[]

input bytes

pos:int

position in input array

len:int

length of the element

Returns:Object

array element from its binary bytes

buildElementback to summary
public Object buildElement(String literal)

build an array element from its literal string.

Parameters
literal:String

string representation of array element

Returns:Object

array element