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
Exceptionpublic void appendColumn(StringBuilder sb,
ResultSet resultSet,
String name,
Integer type,
boolean last)
throws Exception
Exceptionpublic void generateTempFile()
throws Exception
Exceptionpublic void generateTempFile(Connection connection)
throws Exception
Exceptionpublic Object[][] getColumns()
public String getCreateSQL()
throws Exception
Exceptionpublic String getDeleteSQL()
throws Exception
Exceptionpublic String getExportedData(ResultSet resultSet)
throws Exception
Exceptionpublic String getInsertSQL()
throws Exception
Exceptionpublic String getInsertTableName()
throws Exception
Exceptionpublic int[] getOrder()
public PreparedStatement getSelectPreparedStatement(Connection connection)
throws Exception
Exceptionpublic String getSelectSQL()
throws Exception
Exceptionpublic String getTableName()
public String getTempFileName()
public long getTotalRows()
public Object getValue(ResultSet resultSet,
String name,
Integer type)
throws Exception
Exceptioncom.liferay.object.service.impl.ObjectEntryLocalServiceImpl#_getValuepublic void populateTable()
throws Exception
Exceptionpublic void populateTable(Connection connection)
throws Exception
Exceptionpublic void populateTableRows(PreparedStatement preparedStatement,
boolean batch)
throws Exception
Exceptionpublic void setColumn(PreparedStatement preparedStatement,
int index,
Integer type,
String value)
throws Exception
Exceptioncom.liferay.object.service.impl.ObjectEntryLocalServiceImpl#_setColumnpublic void setColumns(Object[][] columns)
public void setCreateSQL(String createSQL)
throws Exception
Exceptionpublic void setSelectSQL(String selectSQL)
throws Exception
Exceptionpublic void updateColumnValue(String columnName,
String oldValue,
String newValue)