com.ibm.di.automation
Class SafeArray

java.lang.Object
  extended by com.ibm.di.automation.SafeArray

public class SafeArray
extends java.lang.Object


Constructor Summary
SafeArray()
           
SafeArray(int vt)
           
SafeArray(int vt, int celems)
           
SafeArray(int vt, int[] lbounds, int[] celems)
           
SafeArray(int vt, int celems1, int celems2)
           
SafeArray(java.lang.String s)
           
 
Method Summary
 java.lang.String asString()
           
 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(java.lang.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)
           
 java.lang.String getString(int sa_idx)
           
 java.lang.String getString(int sa_idx1, int sa_idx2)
           
 void getStrings(int sa_idx, int nelems, java.lang.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, java.lang.String c)
           
 void setString(int sa_idx, java.lang.String c)
           
 void setStrings(int sa_idx, int nelems, java.lang.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()
           
 java.lang.String toString()
           
 java.lang.String[] toStringArray()
           
 VARIANT[] toVariantArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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(java.lang.String s)
Method Detail

init

protected void init(int vt,
                    int[] lbounds,
                    int[] celems)
             throws COMError
Throws:
COMError

getNumLocks

public int getNumLocks()

asString

public java.lang.String asString()
                          throws COMError
Throws:
COMError

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(java.lang.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 java.lang.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 java.lang.String getString(int sa_idx)
                           throws COMError
Throws:
COMError

getString

public java.lang.String getString(int sa_idx1,
                                  int sa_idx2)
                           throws COMError
Throws:
COMError

setString

public void setString(int sa_idx,
                      java.lang.String c)
               throws COMError
Throws:
COMError

setString

public void setString(int sa_idx1,
                      int sa_idx2,
                      java.lang.String c)
               throws COMError
Throws:
COMError

getStrings

public void getStrings(int sa_idx,
                       int nelems,
                       java.lang.String[] ja,
                       int ja_start)
                throws COMError
Throws:
COMError

setStrings

public void setStrings(int sa_idx,
                       int nelems,
                       java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object