Package com.liferay.portal.upgrade.util
Class Table
Object
com.liferay.portal.upgrade.util.Table
- Direct Known Subclasses:
BaseUpgradeTableImpl
- Author:
- Alexander Chow, Brian Wing Shun Chan, Raymond Augé
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendColumn
(StringBuilder sb, Object value, boolean last) void
appendColumn
(StringBuilder sb, ResultSet resultSet, String name, Integer type, boolean last) void
void
generateTempFile
(Connection connection) Object[][]
getExportedData
(ResultSet resultSet) int[]
getOrder()
getSelectPreparedStatement
(Connection connection) long
void
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)
-
Constructor Details
-
Table
-
Table
-
-
Method Details
-
appendColumn
- Throws:
Exception
-
appendColumn
public void appendColumn(StringBuilder sb, ResultSet resultSet, String name, Integer type, boolean last) throws Exception - Throws:
Exception
-
generateTempFile
- Throws:
Exception
-
generateTempFile
- Throws:
Exception
-
getColumns
-
getCreateSQL
- Throws:
Exception
-
getDeleteSQL
- Throws:
Exception
-
getExportedData
- Throws:
Exception
-
getInsertSQL
- Throws:
Exception
-
getInsertTableName
- Throws:
Exception
-
getOrder
public int[] getOrder() -
getSelectPreparedStatement
- Throws:
Exception
-
getSelectSQL
- Throws:
Exception
-
getTableName
-
getTempFileName
-
getTotalRows
public long getTotalRows() -
getValue
- Throws:
Exception
- See Also:
-
com.liferay.object.service.impl.ObjectEntryLocalServiceImpl#_getValue
-
populateTable
- Throws:
Exception
-
populateTable
- Throws:
Exception
-
populateTableRows
- Throws:
Exception
-
setColumn
public void setColumn(PreparedStatement preparedStatement, int index, Integer type, String value) throws Exception - Throws:
Exception
- See Also:
-
com.liferay.object.service.impl.ObjectEntryLocalServiceImpl#_setColumn
-
setColumns
-
setCreateSQL
- Throws:
Exception
-
setSelectSQL
- Throws:
Exception
-
updateColumnValue
-