|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.orindasoft.pub.PlsqlIndexByTable
Holds state variables for PL/SQL Index By Table parameters
This class represents an Oracle PL/SQL Index By Table. In addition to the table data it also holds information about the data type of the elements in the table, their maximum length and the maximum number of elements this table can have after an update or retrieval. For this reason this class is always instantiated even for OUT parameters. As of Oracle 10g INDEX BY tables can have two types of parameters - Numbers or Strings. Parameter types can not be mixed within the same table.
Under normal circumstances OrindaBuild users will have no reason to use this class directly - the generated code will use it.
(c) Copyright 2003 - 2010 Orinda Software Ltd
| Constructor Summary | |
PlsqlIndexByTable()
Contruct an empty INDEX BY table |
|
| Method Summary | |
java.lang.Object[] |
getArray()
Get the array data |
java.math.BigDecimal[] |
getArrayAsBigDecimal()
Get the array data as java.math.BigDecimal[] This convenience method returns the contents of the array as an array of BigDecimal. |
double[] |
getArrayAsDouble(double nullToken)
Get the array data as double[] This convenience method returns the contents of the array as an array of double. |
float[] |
getArrayAsFloat(float nullToken)
Get the array data as float[] This convenience method returns the contents of the array as an array of float. |
int[] |
getArrayAsInt(int nullToken)
Get the array data as int[] This convenience method returns the contents of the array as an array of int. |
long[] |
getArrayAsLong(long nullToken)
Get the array data as long[] This convenience method returns the contents of the array as an array of long. |
java.lang.String[] |
getArrayAsString()
Get the array data as String[] This convenience method returns the contents of the array as an array of String. |
int |
getArrayLength()
Get the length of the array |
int |
getDataTypeCode()
Get the underlying OracleType code for the array. |
int |
getElementMaxCount()
Get the maximum size this table can be after an update or retrieval. |
int |
getElementMaxLength()
Get the maximum length of an element in the table |
void |
setArray(double[] newArray)
Set the array data using double[] This convenience method returns sets the array using an array of double[] |
void |
setArray(float[] newArray)
Set the array data using float[] This convenience method returns sets the array using an array of float[] |
void |
setArray(int[] newArray)
Set the array data using int[] This convenience method returns sets the array using an array of int[] |
void |
setArray(long[] newArray)
Set the array data using long[] This convenience method returns sets the array using an array of long[] |
void |
setArray(java.lang.Object[] dataArray)
Set the contents of the Array. |
void |
setDataTypeNumber()
Set the data type to Numbers |
void |
setDataTypeString()
Set the data type to Strings |
void |
setElementMaxCount(int elementMaxCount)
Set the maximum size this table can be after an update or retrieval. |
void |
setElementMaxLength(int elementMaxLength)
Set the maximum length of an element in the table |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public PlsqlIndexByTable()
| Method Detail |
public void setElementMaxLength(int elementMaxLength)
public int getElementMaxLength()
public void setElementMaxCount(int elementMaxCount)
public int getElementMaxCount()
public void setDataTypeString()
public void setDataTypeNumber()
public void setArray(java.lang.Object[] dataArray)
Object[] - dataArraysetElementMaxCount(int),
setElementMaxLength(int)public int getDataTypeCode()
public java.lang.Object[] getArray()
public int[] getArrayAsInt(int nullToken)
int - nullToken The int you will use to represent null. e.g. Integer.MIN_VALUEpublic void setArray(int[] newArray)
int[] - newArraypublic long[] getArrayAsLong(long nullToken)
long - nullToken The long you will use to represent null. e.g. Long.MIN_VALUEpublic void setArray(long[] newArray)
long[] - newArraypublic float[] getArrayAsFloat(float nullToken)
float - nullToken The float you will use to represent null. e.g. Float.MIN_VALUEpublic void setArray(float[] newArray)
float[] - newArraypublic double[] getArrayAsDouble(double nullToken)
double - nullToken The double you will use to represent null. e.g. Double.MIN_VALUEpublic void setArray(double[] newArray)
double[] - newArraypublic java.lang.String[] getArrayAsString()
public java.math.BigDecimal[] getArrayAsBigDecimal()
throws CSException
public int getArrayLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||