This project has retired. For details please refer to its Attic page.
InsertUpdateStatement (Apache Gora 0.2 API)

org.apache.gora.sql.statement
Class InsertUpdateStatement<K,V extends Persistent>

java.lang.Object
  extended by org.apache.gora.sql.statement.InsertUpdateStatement<K,V>
Direct Known Subclasses:
HSqlInsertUpdateStatement, MySqlInsertUpdateStatement

public abstract class InsertUpdateStatement<K,V extends Persistent>
extends Object


Nested Class Summary
protected  class InsertUpdateStatement.ColumnData
           
 
Field Summary
protected  SortedMap<String,InsertUpdateStatement.ColumnData> columnMap
           
protected  SqlMapping mapping
           
protected  SqlStore<K,V> store
           
protected  String tableName
           
 
Constructor Summary
InsertUpdateStatement(SqlStore<K,V> store, SqlMapping mapping, String tableName)
           
 
Method Summary
 void setObject(Object object, org.apache.avro.Schema schema, Column column)
           
abstract  PreparedStatement toStatement(Connection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnMap

protected SortedMap<String,InsertUpdateStatement.ColumnData> columnMap

tableName

protected String tableName

mapping

protected SqlMapping mapping

store

protected SqlStore<K,V extends Persistent> store
Constructor Detail

InsertUpdateStatement

public InsertUpdateStatement(SqlStore<K,V> store,
                             SqlMapping mapping,
                             String tableName)
Method Detail

setObject

public void setObject(Object object,
                      org.apache.avro.Schema schema,
                      Column column)

toStatement

public abstract PreparedStatement toStatement(Connection connection)
                                       throws SQLException
Throws:
SQLException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.