Package org.teiid.core.types
Class ArrayImpl
- java.lang.Object
-
- org.teiid.core.types.ArrayImpl
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Comparable<ArrayImpl>
,Array
public final class ArrayImpl extends Object implements Comparable<ArrayImpl>, Externalizable, Array
Provides a serializableArray
implementation with minimal JDBC functionality.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArrayImpl.NullException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ArrayImpl o)
int
compareTo(ArrayImpl o, boolean noNulls, Comparator<Object> comparator)
boolean
equals(Object obj)
void
free()
Object
getArray()
Object
getArray(long index, int count)
Object
getArray(long index, int count, Map<String,Class<?>> map)
Object
getArray(Map<String,Class<?>> map)
int
getBaseType()
String
getBaseTypeName()
ResultSet
getResultSet()
ResultSet
getResultSet(long index, int count)
ResultSet
getResultSet(long index, int count, Map<String,Class<?>> map)
ResultSet
getResultSet(Map<String,Class<?>> map)
Object[]
getValues()
int
hashCode()
boolean
isZeroBased()
void
readExternal(ObjectInput in)
void
setZeroBased(boolean zeroBased)
String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
ArrayImpl
public ArrayImpl(Object... values)
-
ArrayImpl
public ArrayImpl()
-
-
Method Detail
-
compareTo
public int compareTo(ArrayImpl o)
- Specified by:
compareTo
in interfaceComparable<ArrayImpl>
-
compareTo
public int compareTo(ArrayImpl o, boolean noNulls, Comparator<Object> comparator)
-
getValues
public Object[] getValues()
-
isZeroBased
public boolean isZeroBased()
-
setZeroBased
public void setZeroBased(boolean zeroBased)
-
free
public void free() throws SQLException
- Specified by:
free
in interfaceArray
- Throws:
SQLException
-
getArray
public Object getArray() throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getArray
public Object getArray(Map<String,Class<?>> map) throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getArray
public Object getArray(long index, int count) throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getArray
public Object getArray(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getArray
in interfaceArray
- Throws:
SQLException
-
getBaseType
public int getBaseType() throws SQLException
- Specified by:
getBaseType
in interfaceArray
- Throws:
SQLException
-
getBaseTypeName
public String getBaseTypeName() throws SQLException
- Specified by:
getBaseTypeName
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet() throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(Map<String,Class<?>> map) throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count) throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getResultSet
in interfaceArray
- Throws:
SQLException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
-