public class Tuple extends Object implements Value, ValueContainer, Loggable
Value
and
a ValueContainer
simultaneously.
IMPL NOTE : in terms of the tables themselves, SQL has no notion of a tuple/compound-value. We simply model
it this way because:
Value.JdbcCodes
Constructor and Description |
---|
Tuple(TableSpecification table,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(SimpleValue value) |
String |
getLoggableValueQualifier()
Get a qualifier which can be used to qualify
values belonging to this container in
their logging. |
TableSpecification |
getTable()
Retrieve the table that owns this value.
|
String |
toLoggableString()
Obtain the string representation of this value usable in log statements.
|
void |
validateJdbcTypes(Value.JdbcCodes typeCodes)
Validate the value against the incoming JDBC type code array, both in terms of number of types
and compatibility of types.
|
Iterable<SimpleValue> |
values()
Obtain an iterator over this containers current set of value definitions.
|
int |
valuesSpan() |
public Tuple(TableSpecification table, String name)
public TableSpecification getTable()
Value
public int valuesSpan()
public Iterable<SimpleValue> values()
ValueContainer
values
in interface ValueContainer
public void addValue(SimpleValue value)
public String getLoggableValueQualifier()
ValueContainer
values
belonging to this container in
their logging.getLoggableValueQualifier
in interface ValueContainer
public String toLoggableString()
Value
toLoggableString
in interface Loggable
toLoggableString
in interface Value
public void validateJdbcTypes(Value.JdbcCodes typeCodes)
Value
validateJdbcTypes
in interface Value
typeCodes
- The type codes.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.