public class SimpleDBStatement extends AbstractStatement
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleDBStatement(java.sql.Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeOnCompletion() |
boolean |
execute(java.lang.String sql) |
java.sql.ResultSet |
executeQuery(java.lang.String sql)
SELECT * FROM MY_DOMAIN
|
int |
executeUpdate(java.lang.String sql) |
int |
executeUpdate(java.lang.String sql,
int autoGeneratedKeys) |
java.sql.Connection |
getConnection() |
java.sql.ResultSet |
getGeneratedKeys() |
protected com.amazonaws.services.simpledb.model.ReplaceableAttribute |
getReadReplaceableAttribute(java.lang.String name,
java.lang.String expressionVal,
boolean replace) |
protected com.amazonaws.services.simpledb.model.ReplaceableItem |
getReadReplaceableItem(java.util.List<com.amazonaws.services.simpledb.model.ReplaceableAttribute> attributes,
java.lang.String id) |
protected java.lang.String |
getReadTableName(net.sf.jsqlparser.statement.select.FromItem fromItem) |
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() |
protected com.amazonaws.services.simpledb.model.ReplaceableAttribute |
getWriteReplaceableAttribute(java.lang.String name,
java.lang.String expressionVal,
boolean replace) |
protected com.amazonaws.services.simpledb.model.ReplaceableItem |
getWriteReplaceableItem(java.util.List<com.amazonaws.services.simpledb.model.ReplaceableAttribute> attributes,
java.lang.String id) |
protected java.lang.String |
getWriteTableName(net.sf.jsqlparser.schema.Table table) |
boolean |
isCloseOnCompletion() |
addBatch, cancel, clearBatch, clearWarnings, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, isClosed, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrappublic boolean execute(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet getResultSet()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
sql - to executejava.sql.SQLExceptionprotected java.sql.ResultSet getSimpleDBResultSet(java.lang.String domain,
java.util.List<com.amazonaws.services.simpledb.model.Item> items)
public int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getUpdateCount()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.lang.String getWriteTableName(net.sf.jsqlparser.schema.Table table)
protected java.lang.String getReadTableName(net.sf.jsqlparser.statement.select.FromItem fromItem)
protected com.amazonaws.services.simpledb.model.ReplaceableItem getReadReplaceableItem(java.util.List<com.amazonaws.services.simpledb.model.ReplaceableAttribute> attributes,
java.lang.String id)
attributes - attributes to replaceid - Item idprotected com.amazonaws.services.simpledb.model.ReplaceableItem getWriteReplaceableItem(java.util.List<com.amazonaws.services.simpledb.model.ReplaceableAttribute> attributes,
java.lang.String id)
protected com.amazonaws.services.simpledb.model.ReplaceableAttribute getWriteReplaceableAttribute(java.lang.String name,
java.lang.String expressionVal,
boolean replace)
name - item nameexpressionVal - valuereplace - replace value?protected com.amazonaws.services.simpledb.model.ReplaceableAttribute getReadReplaceableAttribute(java.lang.String name,
java.lang.String expressionVal,
boolean replace)
public int executeUpdate(java.lang.String sql,
int autoGeneratedKeys)
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 getGeneratedKeys()
throws java.sql.SQLException
java.sql.SQLException