|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.orindasoft.pub.PlsqlIndexByTable2
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. JDBCWizard converts other data types to numbers or strings.
Under normal circumstances JDBCWizard users will have no reason to use this class directly - the generated code will use it.
(c) Copyright 2003 - 2011 Orinda Software Ltd
| Field Summary | |
static java.lang.String |
JAVA_DATE_TO_CHAR_MASK
Date format mask used by Java for converting Timestamp to String |
static java.lang.String |
ORACLE_DATE_TO_CHAR_MASK
Date format mask used by Oracle for converting date to String |
static java.lang.String |
ORACLE_TIMESTAMP_TO_CHAR_MASK
Date format mask used by Oracle for converting timestamp to String |
| Constructor Summary | |
PlsqlIndexByTable2(int realDataTypeCode,
int realDataTypePrecision)
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. |
java.lang.Double[] |
getArrayAsDoubleObject()
Get the array data as Double[] This convenience method returns the contents of the array as an array of BigDecimal. |
float[] |
getArrayAsFloat(float nullToken)
Get the array data as float[] This convenience method returns the contents of the array as an array of float. |
java.lang.Float[] |
getArrayAsFloatObject()
Get the array data as Float[] This convenience method returns the contents of the array as an array of BigDecimal. |
int[] |
getArrayAsInt(int nullToken)
Get the array data as int[] This convenience method returns the contents of the array as an array of int. |
java.lang.Integer[] |
getArrayAsIntegerObject()
Get the array data as Integer[] This convenience method returns the contents of the array as an array of BigDecimal. |
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.Long[] |
getArrayAsLongObject()
Get the array data as Long[] This convenience method returns the contents of the array as an array of BigDecimal. |
byte[][] |
getArrayAsRaw()
Get the array data as byte[] This convenience method returns the contents of the array as an array of byte[]. |
java.lang.String[] |
getArrayAsString()
Get the array data as String[] This convenience method returns the contents of the array as an array of String. |
java.sql.Timestamp[] |
getArrayAsTimestamp()
Get the array data as java.sql.Timestamp This convenience method returns the contents of the array as an array of java.sql.Timestamp. |
int |
getArrayLength()
Get the length of the array |
int |
getDataTypeCode()
Get the official 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 |
int |
getRealDataTypeCode()
Get the actual OracleType code for the array. |
void |
setArray(byte[][] newArray)
Set the array data using byte[][] This convenience method returns sets the array using an array of byte[][] |
void |
setArray(double[] newArray)
Set the array data using double[] This convenience method returns sets the array using an array of double[] WARNING: The precision of the value actually stored is limited to what the underlying Oracle object expects, so if you pass 1.00003f into a NUMBER(4,2) the '3' will be lost |
void |
setArray(java.lang.Double[] newArray)
Set the array data using Double[] This convenience method returns sets the array using an array of Double[] WARNING: The precision of the value actually stored is limited to what the underlying Oracle object expects, so if you pass 1.00003f into a NUMBER(4,2) the '3' will be lost |
void |
setArray(float[] newArray)
Set the array data using float[] This convenience method returns sets the array using an array of float[] WARNING: The precision of the value actually stored is limited to what the underlying Oracle object expects, so if you pass 1.00003f into a NUMBER(4,2) the '3' will be lost |
void |
setArray(java.lang.Float[] newArray)
Set the array data using Float[] This convenience method returns sets the array using an array of Float[] WARNING: The precision of the value actually stored is limited to what the underlying Oracle object expects, so if you pass 1.00003f into a NUMBER(4,2) the '3' will be lost |
void |
setArray(int[] newArray)
Set the array data using int[] This convenience method sets the array using an array of int[] |
void |
setArray(java.lang.Integer[] newArray)
Set the array data using Integer[] This convenience method returns sets the array using an array of Integer[] WARNING: The precision of the value actually stored is limited to what the underlying Oracle object expects, so if you pass 1.00003f into a NUMBER(4,2) the '3' will be lost |
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.Long[] newArray)
Set the array data using Long[] This convenience method returns sets the array using an array of Long[] WARNING: The precision of the value actually stored is limited to what the underlying Oracle object expects, so if you pass 1.00003f into a NUMBER(4,2) the '3' will be lost |
void |
setArray(java.lang.Object[] newDataArray)
Set the contents of the Array. |
void |
setArray(java.sql.Timestamp[] newArray)
Set the array data using java.sql.Timestamp[] This convenience method returns sets the array using an array of java.sql.Timestamp[] |
void |
setDataType(int dataTypeCode)
Set the official Oracle data type |
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 |
void |
setRealDataType(int realDataTypeCode)
Set the actual Oracle data type |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String ORACLE_TIMESTAMP_TO_CHAR_MASK
public static final java.lang.String ORACLE_DATE_TO_CHAR_MASK
public static final java.lang.String JAVA_DATE_TO_CHAR_MASK
| Constructor Detail |
public PlsqlIndexByTable2(int realDataTypeCode,
int realDataTypePrecision)
int - realDataTypeCode One of oracle.jdbc.OracleTypes.NUMBER or oracle.jdbc.OracleTypes.VARCHARint - realDataTypePrecision How many decimal places of precision.| Method Detail |
public int getDataTypeCode()
public int getRealDataTypeCode()
public void setDataType(int dataTypeCode)
public void setRealDataType(int realDataTypeCode)
public void setElementMaxLength(int elementMaxLength)
public int getElementMaxLength()
public void setElementMaxCount(int elementMaxCount)
public int getElementMaxCount()
public void setArray(java.lang.Object[] newDataArray)
Object[] - dataArrayPlsqlIndexByTable.setElementMaxCount(int),
PlsqlIndexByTable.setElementMaxLength(int)public java.lang.Object[] getArray()
public int[] getArrayAsInt(int nullToken)
throws CSNumberFormatException
int - nullToken The int you will use to represent null. e.g. Integer.MIN_VALUEpublic void setArray(int[] newArray)
int[] - newArraypublic void setArray(java.lang.Integer[] newArray)
Integer[] - newArray
public long[] getArrayAsLong(long nullToken)
throws CSNumberFormatException
long - nullToken The long you will use to represent null. e.g. Long.MIN_VALUEpublic void setArray(long[] newArray)
long[] - newArraypublic void setArray(java.lang.Long[] newArray)
Long[] - newArray
public float[] getArrayAsFloat(float nullToken)
throws CSNumberFormatException
float - nullToken The float you will use to represent null. e.g. Float.MIN_VALUEpublic void setArray(float[] newArray)
float[] - newArraypublic void setArray(java.lang.Float[] newArray)
Float[] - newArray
public double[] getArrayAsDouble(double nullToken)
throws CSNumberFormatException
double - nullToken The double you will use to represent null. e.g. Double.MIN_VALUEpublic void setArray(double[] newArray)
double[] - newArraypublic void setArray(java.lang.Double[] newArray)
Double[] - newArraypublic java.lang.String[] getArrayAsString()
public java.math.BigDecimal[] getArrayAsBigDecimal()
throws CSNumberFormatException
public java.lang.Double[] getArrayAsDoubleObject()
throws CSNumberFormatException
public java.lang.Float[] getArrayAsFloatObject()
throws CSNumberFormatException
public java.lang.Integer[] getArrayAsIntegerObject()
throws CSNumberFormatException
public java.lang.Long[] getArrayAsLongObject()
throws CSNumberFormatException
public java.sql.Timestamp[] getArrayAsTimestamp()
throws CSException
java.sql.Timestamp - nullToken The java.sql.Timestamp you will use to represent null. e.g. java.sql.Timestamp.MIN_VALUE
public void setArray(java.sql.Timestamp[] newArray)
throws CSNoNanosAllowedException
java.sql.Timestamp[] - newArraypublic byte[][] getArrayAsRaw()
byte[] - nullToken The byte[] you will use to represent null. e.g. byte[].MIN_VALUEpublic void setArray(byte[][] newArray)
byte[][] - newArraypublic int getArrayLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||