| 1 |
/* |
| 2 |
* Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 3 |
* and the EPL 1.0 (https://h2database.com/html/license.html). |
| 4 |
* Initial Developer: H2 Group |
| 5 |
*/ |
| 6 |
package org.h2.command.ddl; |
| 7 |
|
| 8 |
import java.util.ArrayList; |
| 9 |
|
| 10 |
import org.h2.engine.SessionLocal; |
| 11 |
import org.h2.schema.Schema; |
| 12 |
import org.h2.table.Column; |
| 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 |
* The session. |
| 61 |
*/ |
| 62 |
public SessionLocal session; |
| 63 |
|
| 64 |
/** |
| 65 |
* The table engine to use for creating the table. |
| 66 |
*/ |
| 67 |
public String tableEngine; |
| 68 |
|
| 69 |
/** |
| 70 |
* The table engine params to use for creating the table. |
| 71 |
*/ |
| 72 |
public ArrayList<String> tableEngineParams; |
| 73 |
|
| 74 |
/** |
| 75 |
* The table is hidden. |
| 76 |
*/ |
| 77 |
public boolean isHidden; |
| 78 |
} |