ATTRTYPE | Recommended Accessor Methods |
---|---|
STRING | getString/setString |
INTEGER | getInt/setInt (or getInteger/setInteger) |
LONG | getLong/setLong (or getLongint/setLongint) |
SMALLINT | getInt/setInt (or getInteger/setInteger) |
FLOAT | getDbl/setDbl (or getDouble/setDouble) |
DECIMAL | getBigDecimal/setBigDecimal |
MONEY | getBigDecimal/setBigDecimal |
DATE | getDate/setDate/setDateWithoutTime |
BINARY | getByteArray/setByteArray |
Wrappers | Description |
---|---|
void release(); // does not throw | Releases the underlying COM PDO instance. After the release method is called, the Java object instance becomes essentially useless and should be discarded. |
void declareAttr(String attrName, String attrType); | Wraps the DeclareAttribute method of the underlying COM PDO |
void setString(String attrName, String attrValue); void setInteger(String attrName, Integer attrValue); void setDouble(String attrName, Double attrValue); void setBigDecimal(String attrName, BigDecimal attrValue); void setByteArray(String attrName, byte[] attrValue); void setDate(String attrName, Date attrValue) void setInt(String attrName, int attrValue); void setDbl(String attrName, double attrValue); void setLongint(String attrName, long attrValue); void setLong(String attrName, long attrValue); | Wrap the SetAttribute method of the COM PDO, with implied conversion of the input type |
String getString(String attrName); Integer getInteger(String attrName); Double getDouble(String attrName); BigDecicmal getBigDecimal(String attrName); BigDecicmal getBigDecimal(String attrName, int minScale); byte[] getByteArray(String attrName); Date getDate(String attrName) int getInt(String attrName); double getDbl(String attrName); long getLongint(String attrName); long getLong(String attrName); | Wrap the GetAttribute method of the COM PDO, and attempt to convert the result into the requested return type |
int lastRow(String attrName); | Wraps the LastRow method of the underlying COM PDO |
void setEmpty(String attrName); void setNull(String attrName); void setBlankDate(String attrName); void setDateWithoutTime(String attrName, Date attrValue); | Wrap the SetEmpty, SetNull, SetBlankDate, and SetDateWithoutTime methods of the COM PDO |
boolean isEmpty(String attrName); boolean isNull(String attrName); boolean isBlankDate(String attrName); boolean isDateWithoutTime(String attrName); | Wrap the IsEmpty, IsNull, IsBlankDate, and IsDateWithoutTime methods of the COM PDO, and convert the result from an integer to a Boolean |