| UpgradeTable.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * The contents of this file are subject to the terms of the Liferay Enterprise
5 * Subscription License ("License"). You may not use this file except in
6 * compliance with the License. You can obtain a copy of the License by
7 * contacting Liferay, Inc. See the License for the specific language governing
8 * permissions and limitations under the License, including but not limited to
9 * distribution rights of the Software.
10 *
11 *
12 *
13 */
14
15 package com.liferay.portal.kernel.upgrade.util;
16
17 import java.sql.PreparedStatement;
18 import java.sql.ResultSet;
19
20 /**
21 * <a href="UpgradeTable.java.html"><b><i>View Source</i></b></a>
22 *
23 * @author Alexander Chow
24 * @author Brian Wing Shun Chan
25 */
26 public interface UpgradeTable {
27
28 public void appendColumn(StringBuilder sb, Object value, boolean last)
29 throws Exception;
30
31 public void appendColumn(
32 StringBuilder sb, ResultSet rs, String name, Integer type,
33 boolean last)
34 throws Exception;
35
36 public String getCreateSQL() throws Exception;
37
38 public void setCreateSQL(String createSQL) throws Exception;
39
40 public String getDeleteSQL() throws Exception;
41
42 public String getInsertSQL() throws Exception;
43
44 public String getSelectSQL() throws Exception;
45
46 public void setColumn(
47 PreparedStatement ps, int index, Integer type, String value)
48 throws Exception;
49
50 public void updateTable() throws Exception;
51
52 }