public class ArrayTuple extends PostgresTuple
| Modifier and Type | Class and Description |
|---|---|
static interface |
ArrayTuple.RecordParser<T> |
| Modifier and Type | Field and Description |
|---|---|
static PostgresTuple |
EMPTY |
static PostgresTuple |
NULL |
threadWriter| Modifier and Type | Method and Description |
|---|---|
void |
buildTuple(PostgresWriter sw,
boolean quote) |
static PostgresTuple |
create(boolean[] elements,
Function<Boolean,PostgresTuple> converter) |
static <T> PostgresTuple |
create(Collection<T> elements,
Function<T,PostgresTuple> converter) |
static PostgresTuple |
create(double[] elements,
Function<Double,PostgresTuple> converter) |
static PostgresTuple |
create(float[] elements,
Function<Float,PostgresTuple> converter) |
static PostgresTuple |
create(int[] elements,
Function<Integer,PostgresTuple> converter) |
static <T> PostgresTuple |
create(List<T> elements,
Function<T,PostgresTuple> converter) |
static PostgresTuple |
create(long[] elements,
Function<Long,PostgresTuple> converter) |
static <T> PostgresTuple |
create(T[] elements,
Function<T,PostgresTuple> converter) |
static PostgresTuple |
from(PostgresTuple[] elements) |
void |
insertArray(PostgresWriter sw,
String escaping,
org.revenj.database.postgres.converters.PostgresTuple.Mapping mappings) |
void |
insertRecord(PostgresWriter sw,
String escaping,
org.revenj.database.postgres.converters.PostgresTuple.Mapping mappings) |
boolean |
mustEscapeArray() |
boolean |
mustEscapeRecord() |
static <T> List<T> |
parse(PostgresReader reader,
int context,
ArrayTuple.RecordParser<T> converter) |
buildQuoteEscape, buildSlashEscape, buildTuplepublic static final PostgresTuple EMPTY
public static final PostgresTuple NULL
public static PostgresTuple from(PostgresTuple[] elements)
public boolean mustEscapeRecord()
public boolean mustEscapeArray()
public static PostgresTuple create(double[] elements, Function<Double,PostgresTuple> converter)
public static PostgresTuple create(int[] elements, Function<Integer,PostgresTuple> converter)
public static PostgresTuple create(long[] elements, Function<Long,PostgresTuple> converter)
public static PostgresTuple create(float[] elements, Function<Float,PostgresTuple> converter)
public static PostgresTuple create(boolean[] elements, Function<Boolean,PostgresTuple> converter)
public static <T> PostgresTuple create(T[] elements, Function<T,PostgresTuple> converter)
public static <T> PostgresTuple create(List<T> elements, Function<T,PostgresTuple> converter)
public static <T> PostgresTuple create(Collection<T> elements, Function<T,PostgresTuple> converter)
public static <T> List<T> parse(PostgresReader reader, int context, ArrayTuple.RecordParser<T> converter) throws IOException
IOExceptionpublic void buildTuple(PostgresWriter sw, boolean quote)
buildTuple in class PostgresTuplepublic void insertRecord(PostgresWriter sw, String escaping, org.revenj.database.postgres.converters.PostgresTuple.Mapping mappings)
public void insertArray(PostgresWriter sw, String escaping, org.revenj.database.postgres.converters.PostgresTuple.Mapping mappings)
Copyright © 2016. All rights reserved.