1 | /* |
2 | * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0, |
3 | * and the EPL 1.0 (http://h2database.com/html/license.html). |
4 | * Initial Developer: H2 Group |
5 | */ |
6 | package org.h2.command.ddl; |
7 | |
8 | import java.util.ArrayList; |
9 | import org.h2.engine.Session; |
10 | import org.h2.schema.Schema; |
11 | import org.h2.table.Column; |
12 | import org.h2.util.New; |
13 | |
14 | /** |
15 | * The data required to create a table. |
16 | */ |
17 | public class CreateTableData { |
18 | |
19 | /** |
20 | * The schema. |
21 | */ |
22 | public Schema schema; |
23 | |
24 | /** |
25 | * The table name. |
26 | */ |
27 | public String tableName; |
28 | |
29 | /** |
30 | * The object id. |
31 | */ |
32 | public int id; |
33 | |
34 | /** |
35 | * The column list. |
36 | */ |
37 | public ArrayList<Column> columns = New.arrayList(); |
38 | |
39 | /** |
40 | * Whether this is a temporary table. |
41 | */ |
42 | public boolean temporary; |
43 | |
44 | /** |
45 | * Whether the table is global temporary. |
46 | */ |
47 | public boolean globalTemporary; |
48 | |
49 | /** |
50 | * Whether the indexes should be persisted. |
51 | */ |
52 | public boolean persistIndexes; |
53 | |
54 | /** |
55 | * Whether the data should be persisted. |
56 | */ |
57 | public boolean persistData; |
58 | |
59 | /** |
60 | * Whether to create a new table. |
61 | */ |
62 | public boolean create; |
63 | |
64 | /** |
65 | * The session. |
66 | */ |
67 | public Session session; |
68 | |
69 | /** |
70 | * The table engine to use for creating the table. |
71 | */ |
72 | public String tableEngine; |
73 | |
74 | /** |
75 | * The table engine params to use for creating the table. |
76 | */ |
77 | public ArrayList<String> tableEngineParams; |
78 | |
79 | /** |
80 | * The table is hidden. |
81 | */ |
82 | public boolean isHidden; |
83 | |
84 | } |