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 resultSet,
String name,
Integer type,
boolean last) |
void |
generateTempFile() |
void |
generateTempFile(Connection connection) |
Object[][] |
getColumns() |
String |
getCreateSQL() |
String |
getDeleteSQL() |
String |
getExportedData(ResultSet resultSet) |
String |
getInsertSQL() |
String |
getInsertTableName() |
int[] |
getOrder() |
PreparedStatement |
getSelectPreparedStatement(Connection connection) |
String |
getSelectSQL() |
String |
getTableName() |
String |
getTempFileName() |
long |
getTotalRows() |
Object |
getValue(ResultSet resultSet,
String name,
Integer type) |
void |
populateTable() |
void |
populateTable(Connection connection) |
void |
populateTableRows(PreparedStatement preparedStatement,
boolean batch) |
void |
setColumn(PreparedStatement preparedStatement,
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 resultSet, String name, Integer type, boolean last) throws Exception
Exception
public void generateTempFile() throws Exception
Exception
public void generateTempFile(Connection connection) throws Exception
Exception
public Object[][] getColumns()
public String getCreateSQL() throws Exception
Exception
public String getDeleteSQL() throws Exception
Exception
public String getExportedData(ResultSet resultSet) throws Exception
Exception
public String getInsertSQL() throws Exception
Exception
public String getInsertTableName() throws Exception
Exception
public int[] getOrder()
public PreparedStatement getSelectPreparedStatement(Connection connection) throws Exception
Exception
public String getSelectSQL() throws Exception
Exception
public String getTableName()
public String getTempFileName()
public long getTotalRows()
public Object getValue(ResultSet resultSet, String name, Integer type) throws Exception
Exception
com.liferay.object.service.impl.ObjectEntryLocalServiceImpl#_getValue
public void populateTable() throws Exception
Exception
public void populateTable(Connection connection) throws Exception
Exception
public void populateTableRows(PreparedStatement preparedStatement, boolean batch) throws Exception
Exception
public void setColumn(PreparedStatement preparedStatement, int index, Integer type, String value) throws Exception
Exception
com.liferay.object.service.impl.ObjectEntryLocalServiceImpl#_setColumn
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)