Class RowStruct
- java.lang.Object
-
- com.apple.foundationdb.relational.api.RowStruct
-
- All Implemented Interfaces:
EmbeddedRelationalStruct
,com.apple.foundationdb.relational.api.RelationalStruct
,java.sql.Struct
,java.sql.Wrapper
- Direct Known Subclasses:
ImmutableRowStruct
,MutableRowStruct
public abstract class RowStruct extends java.lang.Object implements com.apple.foundationdb.relational.api.RelationalStruct, EmbeddedRelationalStruct
Implementation ofRelationalStruct
that is backed by aRow
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.apple.foundationdb.relational.api.EmbeddedRelationalStruct
EmbeddedRelationalStruct.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
wasNull
-
Constructor Summary
Constructors Modifier Constructor Description protected
RowStruct(com.apple.foundationdb.relational.api.StructMetaData metaData)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.apple.foundationdb.relational.api.RelationalArray
getArray(int oneBasedPosition)
com.apple.foundationdb.relational.api.RelationalArray
getArray(java.lang.String columnLabel)
boolean
getBoolean(int oneBasedPosition)
boolean
getBoolean(java.lang.String columnLabel)
byte[]
getBytes(int oneBasedPosition)
byte[]
getBytes(java.lang.String columnLabel)
double
getDouble(int oneBasedPosition)
double
getDouble(java.lang.String columnLabel)
float
getFloat(int oneBasedPosition)
float
getFloat(java.lang.String columnLabel)
int
getInt(int oneBasedPosition)
int
getInt(java.lang.String columnLabel)
long
getLong(int oneBasedPosition)
long
getLong(java.lang.String columnLabel)
com.apple.foundationdb.relational.api.StructMetaData
getMetaData()
java.lang.Object
getObject(int oneBasedPosition)
java.lang.Object
getObject(java.lang.String columnLabel)
protected abstract java.lang.Object
getObjectInternal(int zeroBasedPosition)
java.lang.String
getString(int oneBasedPosition)
java.lang.String
getString(java.lang.String columnLabel)
com.apple.foundationdb.relational.api.RelationalStruct
getStruct(int oneBasedColumn)
com.apple.foundationdb.relational.api.RelationalStruct
getStruct(java.lang.String columnLabel)
java.lang.String
toString()
boolean
wasNull()
-
-
-
Method Detail
-
getMetaData
public com.apple.foundationdb.relational.api.StructMetaData getMetaData() throws java.sql.SQLException
- Specified by:
getMetaData
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getBoolean
public boolean getBoolean(int oneBasedPosition) throws java.sql.SQLException
- Specified by:
getBoolean
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getObjectInternal
protected abstract java.lang.Object getObjectInternal(int zeroBasedPosition) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
wasNull
public boolean wasNull()
- Specified by:
wasNull
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
-
getBoolean
public boolean getBoolean(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getBoolean
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getBytes
public byte[] getBytes(int oneBasedPosition) throws java.sql.SQLException
- Specified by:
getBytes
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getBytes
public byte[] getBytes(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getBytes
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getInt
public int getInt(int oneBasedPosition) throws java.sql.SQLException
- Specified by:
getInt
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getInt
public int getInt(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getInt
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getLong
public long getLong(int oneBasedPosition) throws java.sql.SQLException
- Specified by:
getLong
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getLong
public long getLong(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getLong
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getFloat
public float getFloat(int oneBasedPosition) throws java.sql.SQLException
- Specified by:
getFloat
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getFloat
public float getFloat(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getFloat
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getDouble
public double getDouble(int oneBasedPosition) throws java.sql.SQLException
- Specified by:
getDouble
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getDouble
public double getDouble(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getDouble
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getObject
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(int oneBasedPosition) throws java.sql.SQLException
- Specified by:
getObject
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString(int oneBasedPosition) throws java.sql.SQLException
- Specified by:
getString
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getString
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getArray
public com.apple.foundationdb.relational.api.RelationalArray getArray(int oneBasedPosition) throws java.sql.SQLException
- Specified by:
getArray
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getArray
public com.apple.foundationdb.relational.api.RelationalArray getArray(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getArray
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getStruct
public com.apple.foundationdb.relational.api.RelationalStruct getStruct(int oneBasedColumn) throws java.sql.SQLException
- Specified by:
getStruct
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
getStruct
public com.apple.foundationdb.relational.api.RelationalStruct getStruct(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
getStruct
in interfacecom.apple.foundationdb.relational.api.RelationalStruct
- Throws:
java.sql.SQLException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-