public class Inserter extends Object
| Constructor and Description |
|---|
Inserter(ColumnsReference target,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object... cells) |
String |
composeInsertPart(List<Object> cells,
int columnWidth,
Set<Integer> blacklistedRows) |
String |
composeValues(List<Object> cells,
int columnWidth,
int[] idMap,
List<Integer> indexes) |
static String |
escapeSql(Object o) |
void |
flush(Connection conn) |
List<Integer> |
getBlacklistedRows(List<Object> cells,
int columnWidth,
int[] idMap,
Set<Object> ids) |
public Inserter(ColumnsReference target, Schema schema)
public void add(Object... cells)
public String composeValues(List<Object> cells, int columnWidth, int[] idMap, List<Integer> indexes)
public List<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 © 2015 Agile Knowledge Engineering and Semantic Web. All rights reserved.