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()
Valuepublic int valuesSpan()
public Iterable<SimpleValue> values()
ValueContainervalues in interface ValueContainerpublic void addValue(SimpleValue value)
public String getLoggableValueQualifier()
ValueContainervalues belonging to this container in
their logging.getLoggableValueQualifier in interface ValueContainerpublic String toLoggableString()
ValuetoLoggableString in interface LoggabletoLoggableString in interface Valuepublic void validateJdbcTypes(Value.JdbcCodes typeCodes)
ValuevalidateJdbcTypes in interface ValuetypeCodes - The type codes.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.