com.ibm.btt.format.adapter
Class SimpleJavaReadAdapter
java.lang.Object
com.ibm.btt.format.adapter.SimpleJavaReadAdapter
- All Implemented Interfaces:
- ReadAdapter
class SimpleJavaReadAdapter
- extends java.lang.Object
- implements ReadAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleJavaReadAdapter
public SimpleJavaReadAdapter(java.lang.Object data)
getBigDecimal
public java.math.BigDecimal getBigDecimal()
throws GetFailedException
- Specified by:
getBigDecimal
in interface ReadAdapter
- Throws:
GetFailedException
getBigInteger
public java.math.BigInteger getBigInteger()
throws GetFailedException
- Specified by:
getBigInteger
in interface ReadAdapter
- Throws:
GetFailedException
getBoolean
public boolean getBoolean()
throws GetFailedException
- Specified by:
getBoolean
in interface ReadAdapter
- Throws:
GetFailedException
getBooleanObject
public java.lang.Boolean getBooleanObject()
throws GetFailedException
- Specified by:
getBooleanObject
in interface ReadAdapter
- Throws:
GetFailedException
getByte
public byte getByte()
throws GetFailedException
- Specified by:
getByte
in interface ReadAdapter
- Throws:
GetFailedException
getByteObject
public java.lang.Byte getByteObject()
throws GetFailedException
- Specified by:
getByteObject
in interface ReadAdapter
- Throws:
GetFailedException
getBytes
public byte[] getBytes()
throws GetFailedException
- Specified by:
getBytes
in interface ReadAdapter
- Throws:
GetFailedException
getCalendar
public java.util.Calendar getCalendar()
throws GetFailedException
- Specified by:
getCalendar
in interface ReadAdapter
- Throws:
GetFailedException
getChildAdapter
public ReadAdapter getChildAdapter(java.lang.String name,
boolean isContainer)
throws GetFailedException
- Description copied from interface:
ReadAdapter
- get an Adapter for a data field by the name.
- Specified by:
getChildAdapter
in interface ReadAdapter
- Returns:
-
- Throws:
GetFailedException
getChildAdapter
public ReadAdapter getChildAdapter(int index,
boolean isContainer)
throws GetFailedException
- Description copied from interface:
ReadAdapter
- get an Adapter for a data element in an array or a list by the index.
- Specified by:
getChildAdapter
in interface ReadAdapter
- Returns:
-
- Throws:
GetFailedException
getDate
public java.util.Date getDate()
throws GetFailedException
- Specified by:
getDate
in interface ReadAdapter
- Throws:
GetFailedException
getDouble
public double getDouble()
throws GetFailedException
- Specified by:
getDouble
in interface ReadAdapter
- Throws:
GetFailedException
getDoubleObject
public java.lang.Double getDoubleObject()
throws GetFailedException
- Specified by:
getDoubleObject
in interface ReadAdapter
- Throws:
GetFailedException
getFloat
public float getFloat()
throws GetFailedException
- Specified by:
getFloat
in interface ReadAdapter
- Throws:
GetFailedException
getFloatObject
public java.lang.Float getFloatObject()
throws GetFailedException
- Specified by:
getFloatObject
in interface ReadAdapter
- Throws:
GetFailedException
getInt
public int getInt()
throws GetFailedException
- Specified by:
getInt
in interface ReadAdapter
- Throws:
GetFailedException
getIntegerObject
public java.lang.Integer getIntegerObject()
throws GetFailedException
- Specified by:
getIntegerObject
in interface ReadAdapter
- Throws:
GetFailedException
getLong
public long getLong()
throws GetFailedException
- Specified by:
getLong
in interface ReadAdapter
- Throws:
GetFailedException
getLongObject
public java.lang.Long getLongObject()
throws GetFailedException
- Specified by:
getLongObject
in interface ReadAdapter
- Throws:
GetFailedException
getObject
public java.lang.Object getObject()
throws GetFailedException
- Specified by:
getObject
in interface ReadAdapter
- Throws:
GetFailedException
getShort
public short getShort()
throws GetFailedException
- Specified by:
getShort
in interface ReadAdapter
- Throws:
GetFailedException
getShortObject
public java.lang.Short getShortObject()
throws GetFailedException
- Specified by:
getShortObject
in interface ReadAdapter
- Throws:
GetFailedException
getString
public java.lang.String getString()
throws GetFailedException
- Specified by:
getString
in interface ReadAdapter
- Throws:
GetFailedException
isNull
public boolean isNull()
throws GetFailedException
- Specified by:
isNull
in interface ReadAdapter
- Throws:
GetFailedException
size
public int size()
throws GetFailedException
- Description copied from interface:
ReadAdapter
- if the Adaptered data element is an array or a list, return the size of it.
- Specified by:
size
in interface ReadAdapter
- Returns:
-
- Throws:
GetFailedException
(c) Copyright IBM Corporation 1998, 2008