public final class RowDescriptor extends java.lang.Object implements java.lang.Iterable<FieldDescriptor>
RowDescriptor
is a java mapping of the XSQLDA server data structure used to describe the row
metadata of one row for input or output.
RowDescriptor is an immutable, values of a row are maintained separately in a collection of FieldValue
instances.
Modifier and Type | Method and Description |
---|---|
RowValue |
createDefaultFieldValues()
Creates a
List with default FieldValue instances as returned by
FieldDescriptor.createDefaultFieldValue() . |
static RowDescriptor |
createRowDescriptor(FieldDescriptor[] fieldDescriptors,
DatatypeCoder datatypeCoder)
Creates an instance of
RowDescriptor with the supplied FieldDescriptor instances. |
static RowDescriptor |
empty(DatatypeCoder datatypeCoder)
Returns an empty row descriptor with the specified datatype coder.
|
boolean |
equals(java.lang.Object obj) |
int |
getCount() |
DatatypeCoder |
getDatatypeCoder() |
IEncodingFactory |
getEncodingFactory() |
FieldDescriptor |
getFieldDescriptor(int index)
Gets the
FieldDescriptor at the specified (0-based) index. |
java.util.List<FieldDescriptor> |
getFieldDescriptors() |
int |
hashCode() |
java.util.Iterator<FieldDescriptor> |
iterator() |
java.lang.String |
toString() |
public DatatypeCoder getDatatypeCoder()
DatatypeCoder
.public IEncodingFactory getEncodingFactory()
IEncodingFactory
.public int getCount()
public FieldDescriptor getFieldDescriptor(int index)
FieldDescriptor
at the specified (0-based) index.index
- 0-based index of the fieldjava.lang.IndexOutOfBoundsException
- if index is not 0 <= index < getCount
public java.util.List<FieldDescriptor> getFieldDescriptors()
FieldDescriptor
instances of this row.public RowValue createDefaultFieldValues()
List
with default FieldValue
instances as returned by
FieldDescriptor.createDefaultFieldValue()
.
The (0-based) index of the FieldValue in the list corresponds with the (0-based) index of the
FieldDescriptor
within this RowDescriptor
.
FieldValue
instances for the FieldDescriptor
instance contained in this
instance.public java.util.Iterator<FieldDescriptor> iterator()
iterator
in interface java.lang.Iterable<FieldDescriptor>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static RowDescriptor createRowDescriptor(FieldDescriptor[] fieldDescriptors, DatatypeCoder datatypeCoder)
RowDescriptor
with the supplied FieldDescriptor
instances.fieldDescriptors
- The field descriptors (array is cloned before use)datatypeCoder
- he datatype code for the connection that uses this RowDescriptor.RowDescriptor
instancepublic static RowDescriptor empty(DatatypeCoder datatypeCoder)
datatypeCoder
- The datatype code for the connection that uses this RowDescriptor.Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.