public class OracleOciCollection
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
append(Env env,
Value value)
Appends element to the collection
|
boolean |
assign(Env env,
OracleOciCollection fromCollection)
Assigns a value to the collection from another existing collection
|
boolean |
assignElem(Env env,
int index,
Value value)
Assigns a value to the element of the collection
|
boolean |
free(Env env)
Frees the resources associated with the collection object
|
protected java.sql.Array |
getCollection()
Returns the underlying Oracle collection
|
Value |
getElem(Env env,
int index)
Returns value of the element by index (1-based)
|
protected java.util.ArrayList<java.lang.Object> |
getJavaCollection()
Returns the underlying Java collection
|
LongValue |
max(Env env)
Returns the maximum number of elements in the collection
If the returned value is 0, then the number of elements
is not limited.
|
LongValue |
size(Env env)
Returns size of the collection
|
java.lang.String |
toString() |
boolean |
trim(Env env,
int num)
Trims num elements from the end of the collection
|
public boolean append(Env env, Value value)
value
- can be a string or a numberpublic boolean assign(Env env, OracleOciCollection fromCollection)
public boolean assignElem(Env env, int index, Value value)
index
- 1-based indexvalue
- can be a string or a numberpublic boolean free(Env env)
protected java.sql.Array getCollection()
protected java.util.ArrayList<java.lang.Object> getJavaCollection()
public LongValue max(Env env)
public boolean trim(Env env, int num)
public java.lang.String toString()
toString
in class java.lang.Object