public class SimpleDBPreparedStatement extends AbstractPreparedStatement
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleDBPreparedStatement(java.lang.String sql,
SimpleDBConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeOnCompletion() |
boolean |
execute() |
java.sql.ResultSet |
executeQuery() |
int |
executeUpdate() |
protected com.amazonaws.services.simpledb.model.ReplaceableAttribute |
getReplaceableAttribute(java.lang.String name,
java.lang.String expressionVal,
boolean replace) |
protected com.amazonaws.services.simpledb.model.ReplaceableItem |
getReplaceableItem(java.util.List<com.amazonaws.services.simpledb.model.ReplaceableAttribute> attributes,
java.lang.String id) |
java.sql.ResultSet |
getResultSet() |
protected java.sql.ResultSet |
getSimpleDBResultSet(java.lang.String domain,
java.util.List<com.amazonaws.services.simpledb.model.Item> items) |
int |
getUpdateCount() |
boolean |
isCloseOnCompletion() |
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal x) |
void |
setBoolean(int parameterIndex,
boolean x) |
void |
setDate(int parameterIndex,
java.sql.Date x) |
void |
setDouble(int parameterIndex,
double x) |
void |
setFloat(int parameterIndex,
float x) |
void |
setInt(int parameterIndex,
int x) |
void |
setLong(int parameterIndex,
long x) |
void |
setObject(int parameterIndex,
java.lang.Object x) |
void |
setString(int parameterIndex,
java.lang.String x) |
void |
setURL(int parameterIndex,
java.net.URL x) |
addBatch, addBatch, cancel, clearBatch, clearParameters, clearWarnings, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMetaData, getMoreResults, getMoreResults, getParameterMetaData, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, isClosed, isPoolable, isWrapperFor, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setCursorName, setDate, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setPoolable, setQueryTimeout, setRef, setRowId, setShort, setSQLXML, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected SimpleDBPreparedStatement(java.lang.String sql,
SimpleDBConnection conn)
public int executeUpdate()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet executeQuery()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.sql.ResultSet getSimpleDBResultSet(java.lang.String domain,
java.util.List<com.amazonaws.services.simpledb.model.Item> items)
public void setDate(int parameterIndex,
java.sql.Date x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setInt(int parameterIndex,
int x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setString(int parameterIndex,
java.lang.String x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setDouble(int parameterIndex,
double x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setObject(int parameterIndex,
java.lang.Object x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setBigDecimal(int parameterIndex,
java.math.BigDecimal x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setBoolean(int parameterIndex,
boolean x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setFloat(int parameterIndex,
float x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setLong(int parameterIndex,
long x)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setURL(int parameterIndex,
java.net.URL x)
throws java.sql.SQLException
java.sql.SQLExceptionprotected com.amazonaws.services.simpledb.model.ReplaceableItem getReplaceableItem(java.util.List<com.amazonaws.services.simpledb.model.ReplaceableAttribute> attributes,
java.lang.String id)
attributes - Item attributesid - Id of itemprotected com.amazonaws.services.simpledb.model.ReplaceableAttribute getReplaceableAttribute(java.lang.String name,
java.lang.String expressionVal,
boolean replace)
name - column nameexpressionVal - valuereplace - replace the value?public boolean execute()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getUpdateCount()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void closeOnCompletion()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isCloseOnCompletion()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet getResultSet()
throws java.sql.SQLException
java.sql.SQLException