1
14
15 package com.liferay.portal.kernel.upgrade.util;
16
17 import java.sql.PreparedStatement;
18 import java.sql.ResultSet;
19
20
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 }