public class Table
extends Object
Constructor and Description |
---|
Table(String tableName) |
Table(String tableName,
Object[][] columns) |
Modifier and Type | Method and Description |
---|---|
void |
appendColumn(StringBuilder sb,
Object value,
boolean last) |
void |
appendColumn(StringBuilder sb,
ResultSet rs,
String name,
Integer type,
boolean last) |
void |
generateTempFile() |
void |
generateTempFile(Connection con) |
Object[][] |
getColumns() |
String |
getCreateSQL() |
String |
getDeleteSQL() |
String |
getExportedData(ResultSet rs) |
String |
getInsertSQL() |
String |
getInsertTableName() |
int[] |
getOrder() |
PreparedStatement |
getSelectPreparedStatement(Connection con) |
String |
getSelectSQL() |
String |
getTableName() |
String |
getTempFileName() |
long |
getTotalRows() |
Object |
getValue(ResultSet rs,
String name,
Integer type) |
void |
populateTable() |
void |
populateTable(Connection con) |
void |
populateTableRows(PreparedStatement ps,
boolean batch) |
void |
setColumn(PreparedStatement ps,
int index,
Integer type,
String value) |
void |
setColumns(Object[][] columns) |
void |
setCreateSQL(String createSQL) |
void |
setSelectSQL(String selectSQL) |
void |
updateColumnValue(String columnName,
String oldValue,
String newValue) |
public Table(String tableName)
public Table(String tableName, Object[][] columns)
public void appendColumn(StringBuilder sb, Object value, boolean last) throws Exception
Exception
public void appendColumn(StringBuilder sb, ResultSet rs, String name, Integer type, boolean last) throws Exception
Exception
public void generateTempFile() throws Exception
Exception
public void generateTempFile(Connection con) throws Exception
Exception
public Object[][] getColumns()
public String getCreateSQL() throws Exception
Exception
public String getDeleteSQL() throws Exception
Exception
public String getExportedData(ResultSet rs) throws Exception
Exception
public String getInsertSQL() throws Exception
Exception
public String getInsertTableName() throws Exception
Exception
public int[] getOrder()
public PreparedStatement getSelectPreparedStatement(Connection con) throws Exception
Exception
public String getSelectSQL() throws Exception
Exception
public String getTableName()
public String getTempFileName()
public long getTotalRows()
public Object getValue(ResultSet rs, String name, Integer type) throws Exception
Exception
public void populateTable() throws Exception
Exception
public void populateTable(Connection con) throws Exception
Exception
public void populateTableRows(PreparedStatement ps, boolean batch) throws Exception
Exception
public void setColumn(PreparedStatement ps, int index, Integer type, String value) throws Exception
Exception
public void setColumns(Object[][] columns)
public void setCreateSQL(String createSQL) throws Exception
Exception
public void setSelectSQL(String selectSQL) throws Exception
Exception
public void updateColumnValue(String columnName, String oldValue, String newValue)