public class Inserter extends Object
| Constructor and Description |
|---|
Inserter(ColumnsReference target,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object... cells) |
String |
composeCheckPart(List<Object> cells,
int columnWidth,
int[] idMap) |
String |
composeInsertPart(List<Object> cells,
int columnWidth,
Set<Integer> blacklistedRows) |
static String |
escapeSql(Object o) |
void |
flush(Connection conn) |
Set<Integer> |
getBlacklistedRows(List<Object> cells,
int columnWidth,
int[] idMap,
Set<Object> ids) |
public Inserter(ColumnsReference target, Schema schema)
public void add(Object... cells)
public Set<Integer> getBlacklistedRows(List<Object> cells, int columnWidth, int[] idMap, Set<Object> ids)
public String composeInsertPart(List<Object> cells, int columnWidth, Set<Integer> blacklistedRows)
public void flush(Connection conn) throws SQLException
SQLExceptionCopyright © 2013. All Rights Reserved.