public class AvaticaSite extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
AvaticaSite.Dummy
Singleton value to denote parameters that have been set to null (as
opposed to not set).
|
| Modifier and Type | Field and Description |
|---|---|
(package private) Calendar |
calendar
Calendar is not thread-safe.
|
static Object |
DUMMY_VALUE
Value that means the parameter has been set to null.
|
private int |
index |
(package private) AvaticaParameter |
parameter |
(package private) TypedValue[] |
slots |
| Constructor and Description |
|---|
AvaticaSite(AvaticaParameter parameter,
Calendar calendar,
int index,
TypedValue[] slots) |
| Modifier and Type | Method and Description |
|---|---|
static Object |
get(Cursor.Accessor accessor,
int targetSqlType,
Calendar localCalendar)
Similar logic to
setObject(java.lang.Object, int). |
boolean |
isSet(int index) |
private static RuntimeException |
notImplemented() |
void |
setArray(Array x) |
void |
setAsciiStream(InputStream x) |
void |
setAsciiStream(InputStream x,
long length) |
void |
setBigDecimal(BigDecimal x) |
void |
setBinaryStream(InputStream x) |
void |
setBinaryStream(InputStream x,
long length) |
void |
setBlob(Blob x) |
void |
setBlob(InputStream inputStream) |
void |
setBlob(InputStream inputStream,
long length) |
void |
setBoolean(boolean o) |
void |
setByte(byte o) |
void |
setBytes(byte[] x) |
void |
setChar(char o) |
void |
setCharacterStream(Reader reader) |
void |
setCharacterStream(Reader reader,
long length) |
void |
setClob(Clob x) |
void |
setClob(Reader reader) |
void |
setClob(Reader reader,
long length) |
void |
setDate(Date x,
Calendar cal) |
void |
setDouble(double x) |
void |
setFloat(float x) |
void |
setInt(int o) |
void |
setLong(long o) |
void |
setNCharacterStream(Reader value) |
void |
setNCharacterStream(Reader value,
long length) |
void |
setNClob(NClob value) |
void |
setNClob(Reader reader) |
void |
setNClob(Reader reader,
long length) |
void |
setNString(String o) |
void |
setNull(int sqlType) |
void |
setNull(int sqlType,
String typeName) |
void |
setObject(Object x) |
void |
setObject(Object x,
int targetSqlType) |
void |
setObject(Object x,
int targetSqlType,
int scaleOrLength) |
void |
setRef(Ref x) |
void |
setRowId(RowId x) |
void |
setShort(short o) |
void |
setSQLXML(SQLXML xmlObject) |
void |
setString(String x) |
void |
setTime(Time x,
Calendar calendar) |
void |
setTimestamp(Timestamp x,
Calendar calendar) |
void |
setUnicodeStream(InputStream x,
int length) |
void |
setURL(URL x) |
private static Array |
toArray(Object x) |
static BigDecimal |
toBigDecimal(Object x) |
private static boolean |
toBoolean(Object x) |
private static byte |
toByte(Object x) |
private static byte[] |
toBytes(Object x) |
private static Date |
toDate(Object x) |
private static double |
toDouble(Object x) |
private static float |
toFloat(Object x) |
private static int |
toInt(Object x) |
private static long |
toLong(Object x) |
private static short |
toShort(Object x) |
private static String |
toString(Object x) |
private static Time |
toTime(Object x) |
private static Timestamp |
toTimestamp(Object x) |
private static RuntimeException |
unsupportedCast(Class<?> from,
Class<?> to) |
private TypedValue |
wrap(ColumnMetaData.Rep rep,
Object o) |
private TypedValue |
wrap(ColumnMetaData.Rep rep,
Object o,
Calendar calendar) |
final AvaticaParameter parameter
final Calendar calendar
PreparedStatement.setTime(int, Time, Calendar), so we do
not need to synchronize access.private final int index
final TypedValue[] slots
public static final Object DUMMY_VALUE
public AvaticaSite(AvaticaParameter parameter, Calendar calendar, int index, TypedValue[] slots)
private TypedValue wrap(ColumnMetaData.Rep rep, Object o, Calendar calendar)
private TypedValue wrap(ColumnMetaData.Rep rep, Object o)
public boolean isSet(int index)
public void setByte(byte o)
public void setChar(char o)
public void setShort(short o)
public void setInt(int o)
public void setLong(long o)
public void setBoolean(boolean o)
public void setRowId(RowId x)
public void setNString(String o)
public void setNCharacterStream(Reader value, long length)
public void setNClob(NClob value)
public void setClob(Reader reader, long length)
public void setBlob(InputStream inputStream, long length)
public void setNClob(Reader reader, long length)
public void setSQLXML(SQLXML xmlObject)
public void setAsciiStream(InputStream x, long length)
public void setBinaryStream(InputStream x, long length)
public void setCharacterStream(Reader reader, long length)
public void setAsciiStream(InputStream x)
public void setBinaryStream(InputStream x)
public void setCharacterStream(Reader reader)
public void setNCharacterStream(Reader value)
public void setClob(Reader reader)
public void setBlob(InputStream inputStream)
public void setNClob(Reader reader)
public void setUnicodeStream(InputStream x, int length)
public void setFloat(float x)
public void setDouble(double x)
public void setBigDecimal(BigDecimal x)
public void setString(String x)
public void setBytes(byte[] x)
public void setObject(Object x, int targetSqlType)
public static Object get(Cursor.Accessor accessor, int targetSqlType, Calendar localCalendar) throws SQLException
setObject(java.lang.Object, int).SQLExceptionpublic void setObject(Object x)
public void setNull(int sqlType)
public void setRef(Ref x)
public void setBlob(Blob x)
public void setClob(Clob x)
public void setArray(Array x)
public void setNull(int sqlType,
String typeName)
public void setURL(URL x)
public void setObject(Object x, int targetSqlType, int scaleOrLength)
private static RuntimeException unsupportedCast(Class<?> from, Class<?> to)
private static RuntimeException notImplemented()
public static BigDecimal toBigDecimal(Object x)
private static boolean toBoolean(Object x)
private static byte toByte(Object x)
private static byte[] toBytes(Object x)
private static double toDouble(Object x)
private static float toFloat(Object x)
private static int toInt(Object x)
private static long toLong(Object x)
private static short toShort(Object x)
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.