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 serializableArrayimplementation with minimal JDBC functionality.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArrayImpl.NullException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ArrayImpl o)intcompareTo(ArrayImpl o, boolean noNulls, Comparator<Object> comparator)booleanequals(Object obj)voidfree()ObjectgetArray()ObjectgetArray(long index, int count)ObjectgetArray(long index, int count, Map<String,Class<?>> map)ObjectgetArray(Map<String,Class<?>> map)intgetBaseType()StringgetBaseTypeName()ResultSetgetResultSet()ResultSetgetResultSet(long index, int count)ResultSetgetResultSet(long index, int count, Map<String,Class<?>> map)ResultSetgetResultSet(Map<String,Class<?>> map)Object[]getValues()inthashCode()booleanisZeroBased()voidreadExternal(ObjectInput in)voidsetZeroBased(boolean zeroBased)StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
ArrayImpl
public ArrayImpl(Object... values)
-
ArrayImpl
public ArrayImpl()
-
-
Method Detail
-
compareTo
public int compareTo(ArrayImpl o)
- Specified by:
compareToin 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:
freein interfaceArray- Throws:
SQLException
-
getArray
public Object getArray() throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
public Object getArray(Map<String,Class<?>> map) throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
public Object getArray(long index, int count) throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
public Object getArray(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getBaseType
public int getBaseType() throws SQLException- Specified by:
getBaseTypein interfaceArray- Throws:
SQLException
-
getBaseTypeName
public String getBaseTypeName() throws SQLException
- Specified by:
getBaseTypeNamein interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet() throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(Map<String,Class<?>> map) throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count) throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
-