com.ibm.di.automation
Class SafeArray
java.lang.Object
com.ibm.di.automation.SafeArray
public class SafeArray
- extends Object
Method Summary |
String |
asString()
|
Object |
clone()
|
void |
destroy()
|
void |
fromBooleanArray(boolean[] ja)
|
void |
fromByteArray(byte[] ja)
|
void |
fromCharArray(char[] ja)
|
void |
fromDoubleArray(double[] ja)
|
void |
fromFloatArray(float[] ja)
|
void |
fromIntArray(int[] ja)
|
void |
fromShortArray(short[] ja)
|
void |
fromStringArray(String[] ja)
|
void |
fromVariantArray(VARIANT[] ja)
|
boolean |
getBoolean(int sa_idx)
|
boolean |
getBoolean(int sa_idx1,
int sa_idx2)
|
void |
getBooleans(int sa_idx,
int nelems,
boolean[] ja,
int ja_start)
|
byte |
getByte(int sa_idx)
|
byte |
getByte(int sa_idx1,
int sa_idx2)
|
void |
getBytes(int sa_idx,
int nelems,
byte[] ja,
int ja_start)
|
char |
getChar(int sa_idx)
|
char |
getChar(int sa_idx1,
int sa_idx2)
|
void |
getChars(int sa_idx,
int nelems,
char[] ja,
int ja_start)
|
double |
getDouble(int sa_idx)
|
double |
getDouble(int sa_idx1,
int sa_idx2)
|
void |
getDoubles(int sa_idx,
int nelems,
double[] ja,
int ja_start)
|
int |
getElemSize()
|
int |
getFeatures()
|
float |
getFloat(int sa_idx)
|
float |
getFloat(int sa_idx1,
int sa_idx2)
|
void |
getFloats(int sa_idx,
int nelems,
float[] ja,
int ja_start)
|
int |
getInt(int sa_idx)
|
int |
getInt(int sa_idx1,
int sa_idx2)
|
void |
getInts(int sa_idx,
int nelems,
int[] ja,
int ja_start)
|
int |
getLBound()
|
int |
getLBound(int dim)
|
int |
getNumDim()
|
int |
getNumLocks()
|
short |
getShort(int sa_idx)
|
short |
getShort(int sa_idx1,
int sa_idx2)
|
void |
getShorts(int sa_idx,
int nelems,
short[] ja,
int ja_start)
|
String |
getString(int sa_idx)
|
String |
getString(int sa_idx1,
int sa_idx2)
|
void |
getStrings(int sa_idx,
int nelems,
String[] ja,
int ja_start)
|
int |
getUBound()
|
int |
getUBound(int dim)
|
VARIANT |
getVariant(int sa_idx)
|
VARIANT |
getVariant(int sa_idx1,
int sa_idx2)
|
void |
getVariants(int sa_idx,
int nelems,
VARIANT[] ja,
int ja_start)
|
int |
getvt()
|
protected void |
init(int vt,
int[] lbounds,
int[] celems)
|
void |
reinit(SafeArray sa)
|
void |
reinterpretType(int vt)
|
void |
release()
|
void |
setBoolean(int sa_idx,
boolean c)
|
void |
setBoolean(int sa_idx1,
int sa_idx2,
boolean c)
|
void |
setBooleans(int sa_idx,
int nelems,
boolean[] ja,
int ja_start)
|
void |
setByte(int sa_idx,
byte c)
|
void |
setByte(int sa_idx1,
int sa_idx2,
byte c)
|
void |
setBytes(int sa_idx,
int nelems,
byte[] ja,
int ja_start)
|
void |
setChar(int sa_idx,
char c)
|
void |
setChar(int sa_idx1,
int sa_idx2,
char c)
|
void |
setChars(int sa_idx,
int nelems,
char[] ja,
int ja_start)
|
void |
setDouble(int sa_idx,
double c)
|
void |
setDouble(int sa_idx1,
int sa_idx2,
double c)
|
void |
setDoubles(int sa_idx,
int nelems,
double[] ja,
int ja_start)
|
void |
setFloat(int sa_idx,
float c)
|
void |
setFloat(int sa_idx1,
int sa_idx2,
float c)
|
void |
setFloats(int sa_idx,
int nelems,
float[] ja,
int ja_start)
|
void |
setInt(int sa_idx,
int c)
|
void |
setInt(int sa_idx1,
int sa_idx2,
int c)
|
void |
setInts(int sa_idx,
int nelems,
int[] ja,
int ja_start)
|
void |
setShort(int sa_idx1,
int sa_idx2,
short c)
|
void |
setShort(int sa_idx,
short c)
|
void |
setShorts(int sa_idx,
int nelems,
short[] ja,
int ja_start)
|
void |
setString(int sa_idx1,
int sa_idx2,
String c)
|
void |
setString(int sa_idx,
String c)
|
void |
setStrings(int sa_idx,
int nelems,
String[] ja,
int ja_start)
|
void |
setVariant(int sa_idx1,
int sa_idx2,
VARIANT c)
|
void |
setVariant(int sa_idx,
VARIANT c)
|
void |
setVariants(int sa_idx,
int nelems,
VARIANT[] ja,
int ja_start)
|
boolean[] |
toBooleanArray()
|
byte[] |
toByteArray()
|
char[] |
toCharArray()
|
double[] |
toDoubleArray()
|
float[] |
toFloatArray()
|
int[] |
toIntArray()
|
short[] |
toShortArray()
|
String |
toString()
|
String[] |
toStringArray()
|
VARIANT[] |
toVariantArray()
|
SafeArray
public SafeArray()
SafeArray
public SafeArray(int vt)
SafeArray
public SafeArray(int vt,
int celems)
SafeArray
public SafeArray(int vt,
int celems1,
int celems2)
SafeArray
public SafeArray(int vt,
int[] lbounds,
int[] celems)
SafeArray
public SafeArray(String s)
init
protected void init(int vt,
int[] lbounds,
int[] celems)
throws COMError
- Throws:
COMError
getNumLocks
public int getNumLocks()
asString
public String asString()
throws COMError
- Throws:
COMError
clone
public Object clone()
- Overrides:
clone
in class Object
release
public void release()
throws COMError
- Throws:
COMError
destroy
public void destroy()
throws COMError
- Throws:
COMError
getvt
public int getvt()
throws COMError
- Throws:
COMError
reinit
public void reinit(SafeArray sa)
throws COMError
- Throws:
COMError
reinterpretType
public void reinterpretType(int vt)
throws COMError
- Throws:
COMError
getLBound
public int getLBound()
throws COMError
- Throws:
COMError
getLBound
public int getLBound(int dim)
throws COMError
- Throws:
COMError
getUBound
public int getUBound()
throws COMError
- Throws:
COMError
getUBound
public int getUBound(int dim)
throws COMError
- Throws:
COMError
getNumDim
public int getNumDim()
throws COMError
- Throws:
COMError
getFeatures
public int getFeatures()
throws COMError
- Throws:
COMError
getElemSize
public int getElemSize()
fromCharArray
public void fromCharArray(char[] ja)
throws COMError
- Throws:
COMError
fromIntArray
public void fromIntArray(int[] ja)
throws COMError
- Throws:
COMError
fromShortArray
public void fromShortArray(short[] ja)
throws COMError
- Throws:
COMError
fromDoubleArray
public void fromDoubleArray(double[] ja)
throws COMError
- Throws:
COMError
fromStringArray
public void fromStringArray(String[] ja)
throws COMError
- Throws:
COMError
fromByteArray
public void fromByteArray(byte[] ja)
throws COMError
- Throws:
COMError
fromFloatArray
public void fromFloatArray(float[] ja)
throws COMError
- Throws:
COMError
fromBooleanArray
public void fromBooleanArray(boolean[] ja)
throws COMError
- Throws:
COMError
fromVariantArray
public void fromVariantArray(VARIANT[] ja)
throws COMError
- Throws:
COMError
toCharArray
public char[] toCharArray()
throws COMError
- Throws:
COMError
toIntArray
public int[] toIntArray()
throws COMError
- Throws:
COMError
toShortArray
public short[] toShortArray()
throws COMError
- Throws:
COMError
toDoubleArray
public double[] toDoubleArray()
throws COMError
- Throws:
COMError
toStringArray
public String[] toStringArray()
throws COMError
- Throws:
COMError
toByteArray
public byte[] toByteArray()
throws COMError
- Throws:
COMError
toFloatArray
public float[] toFloatArray()
throws COMError
- Throws:
COMError
toBooleanArray
public boolean[] toBooleanArray()
throws COMError
- Throws:
COMError
toVariantArray
public VARIANT[] toVariantArray()
throws COMError
- Throws:
COMError
getChar
public char getChar(int sa_idx)
throws COMError
- Throws:
COMError
getChar
public char getChar(int sa_idx1,
int sa_idx2)
throws COMError
- Throws:
COMError
setChar
public void setChar(int sa_idx,
char c)
throws COMError
- Throws:
COMError
setChar
public void setChar(int sa_idx1,
int sa_idx2,
char c)
throws COMError
- Throws:
COMError
getChars
public void getChars(int sa_idx,
int nelems,
char[] ja,
int ja_start)
throws COMError
- Throws:
COMError
setChars
public void setChars(int sa_idx,
int nelems,
char[] ja,
int ja_start)
throws COMError
- Throws:
COMError
getInt
public int getInt(int sa_idx)
throws COMError
- Throws:
COMError
getInt
public int getInt(int sa_idx1,
int sa_idx2)
throws COMError
- Throws:
COMError
setInt
public void setInt(int sa_idx,
int c)
throws COMError
- Throws:
COMError
setInt
public void setInt(int sa_idx1,
int sa_idx2,
int c)
throws COMError
- Throws:
COMError
getInts
public void getInts(int sa_idx,
int nelems,
int[] ja,
int ja_start)
throws COMError
- Throws:
COMError
setInts
public void setInts(int sa_idx,
int nelems,
int[] ja,
int ja_start)
throws COMError
- Throws:
COMError
getShort
public short getShort(int sa_idx)
throws COMError
- Throws:
COMError
getShort
public short getShort(int sa_idx1,
int sa_idx2)
throws COMError
- Throws:
COMError
setShort
public void setShort(int sa_idx,
short c)
throws COMError
- Throws:
COMError
setShort
public void setShort(int sa_idx1,
int sa_idx2,
short c)
throws COMError
- Throws:
COMError
getShorts
public void getShorts(int sa_idx,
int nelems,
short[] ja,
int ja_start)
throws COMError
- Throws:
COMError
setShorts
public void setShorts(int sa_idx,
int nelems,
short[] ja,
int ja_start)
throws COMError
- Throws:
COMError
getDouble
public double getDouble(int sa_idx)
throws COMError
- Throws:
COMError
getDouble
public double getDouble(int sa_idx1,
int sa_idx2)
throws COMError
- Throws:
COMError
setDouble
public void setDouble(int sa_idx,
double c)
throws COMError
- Throws:
COMError
setDouble
public void setDouble(int sa_idx1,
int sa_idx2,
double c)
throws COMError
- Throws:
COMError
getDoubles
public void getDoubles(int sa_idx,
int nelems,
double[] ja,
int ja_start)
throws COMError
- Throws:
COMError
setDoubles
public void setDoubles(int sa_idx,
int nelems,
double[] ja,
int ja_start)
throws COMError
- Throws:
COMError
getString
public String getString(int sa_idx)
throws COMError
- Throws:
COMError
getString
public String getString(int sa_idx1,
int sa_idx2)
throws COMError
- Throws:
COMError
setString
public void setString(int sa_idx,
String c)
throws COMError
- Throws:
COMError
setString
public void setString(int sa_idx1,
int sa_idx2,
String c)
throws COMError
- Throws:
COMError
getStrings
public void getStrings(int sa_idx,
int nelems,
String[] ja,
int ja_start)
throws COMError
- Throws:
COMError
setStrings
public void setStrings(int sa_idx,
int nelems,
String[] ja,
int ja_start)
throws COMError
- Throws:
COMError
getByte
public byte getByte(int sa_idx)
throws COMError
- Throws:
COMError
getByte
public byte getByte(int sa_idx1,
int sa_idx2)
throws COMError
- Throws:
COMError
setByte
public void setByte(int sa_idx,
byte c)
throws COMError
- Throws:
COMError
setByte
public void setByte(int sa_idx1,
int sa_idx2,
byte c)
throws COMError
- Throws:
COMError
getBytes
public void getBytes(int sa_idx,
int nelems,
byte[] ja,
int ja_start)
throws COMError
- Throws:
COMError
setBytes
public void setBytes(int sa_idx,
int nelems,
byte[] ja,
int ja_start)
throws COMError
- Throws:
COMError
getFloat
public float getFloat(int sa_idx)
throws COMError
- Throws:
COMError
getFloat
public float getFloat(int sa_idx1,
int sa_idx2)
throws COMError
- Throws:
COMError
setFloat
public void setFloat(int sa_idx,
float c)
throws COMError
- Throws:
COMError
setFloat
public void setFloat(int sa_idx1,
int sa_idx2,
float c)
throws COMError
- Throws:
COMError
getFloats
public void getFloats(int sa_idx,
int nelems,
float[] ja,
int ja_start)
throws COMError
- Throws:
COMError
setFloats
public void setFloats(int sa_idx,
int nelems,
float[] ja,
int ja_start)
throws COMError
- Throws:
COMError
getBoolean
public boolean getBoolean(int sa_idx)
throws COMError
- Throws:
COMError
getBoolean
public boolean getBoolean(int sa_idx1,
int sa_idx2)
throws COMError
- Throws:
COMError
setBoolean
public void setBoolean(int sa_idx,
boolean c)
throws COMError
- Throws:
COMError
setBoolean
public void setBoolean(int sa_idx1,
int sa_idx2,
boolean c)
throws COMError
- Throws:
COMError
getBooleans
public void getBooleans(int sa_idx,
int nelems,
boolean[] ja,
int ja_start)
throws COMError
- Throws:
COMError
setBooleans
public void setBooleans(int sa_idx,
int nelems,
boolean[] ja,
int ja_start)
throws COMError
- Throws:
COMError
getVariant
public VARIANT getVariant(int sa_idx)
throws COMError
- Throws:
COMError
getVariant
public VARIANT getVariant(int sa_idx1,
int sa_idx2)
throws COMError
- Throws:
COMError
setVariant
public void setVariant(int sa_idx,
VARIANT c)
throws COMError
- Throws:
COMError
setVariant
public void setVariant(int sa_idx1,
int sa_idx2,
VARIANT c)
throws COMError
- Throws:
COMError
getVariants
public void getVariants(int sa_idx,
int nelems,
VARIANT[] ja,
int ja_start)
throws COMError
- Throws:
COMError
setVariants
public void setVariants(int sa_idx,
int nelems,
VARIANT[] ja,
int ja_start)
throws COMError
- Throws:
COMError
toString
public String toString()
- Overrides:
toString
in class Object