Package dev.frostlake.jdbc
Class DirectArray
java.lang.Object
dev.frostlake.jdbc.DirectArray
- All Implemented Interfaces:
Array
JDBC Array implementation for Frostlake SQL Engine.
Represents SQL ARRAY type.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectArray(String typeName, Object[] elements) Create an Array from an Object arrayDirectArray(String typeName, List<?> elements) Create an Array from a List -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()getArray()getArray(long index, int count) intgetResultSet(long index, int count) getResultSet(long index, int count, Map<String, Class<?>> map) getResultSet(Map<String, Class<?>> map) intlength()Get the number of elements in the arraytoString()
-
Constructor Details
-
DirectArray
Create an Array from a List -
DirectArray
Create an Array from an Object array
-
-
Method Details
-
getBaseTypeName
- Specified by:
getBaseTypeNamein interfaceArray- Throws:
SQLException
-
getBaseType
- Specified by:
getBaseTypein interfaceArray- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceArray- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceArray- Throws:
SQLException
-
free
- Specified by:
freein interfaceArray- Throws:
SQLException
-
length
Get the number of elements in the array- Throws:
SQLException
-
toString
-