Package org.aksw.commons.util.jdbc
Class Inserter
- java.lang.Object
-
- org.aksw.commons.util.jdbc.Inserter
-
public class Inserter extends Object
-
-
Constructor Summary
Constructors Constructor Description Inserter(ColumnsReference target, Schema schema)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Object... cells)StringcomposeCheckPart(List<Object> cells, int columnWidth, int[] idMap)StringcomposeInsertPart(List<Object> cells, int columnWidth, Set<Integer> blacklistedRows)static StringescapeSql(Object o)static StringescapeSqlUnsafe(String str)voidflush(Connection conn)Set<Integer>getBlacklistedRows(List<Object> cells, int columnWidth, int[] idMap, Set<Object> ids)
-
-
-
Constructor Detail
-
Inserter
public Inserter(ColumnsReference target, Schema schema)
-
-
Method Detail
-
add
public void add(Object... cells)
-
getBlacklistedRows
public Set<Integer> getBlacklistedRows(List<Object> cells, int columnWidth, int[] idMap, Set<Object> ids)
-
composeInsertPart
public String composeInsertPart(List<Object> cells, int columnWidth, Set<Integer> blacklistedRows)
-
flush
public void flush(Connection conn) throws SQLException
- Throws:
SQLException
-
-