The list of column names that make up the primary key for this table. The resulting list should not be modified directly;
instead, the set of primary key names should be defined with setPrimaryKeyNames(String...).
Returns:
the list of column names that make up the primary key; never null but possibly empty
hasPrimaryKey
defaultbooleanhasPrimaryKey()
Determine whether this table has a primary key.
Returns:
true if this table has at least one primary key column, or false
if there are no primary key columns
Add one columns to this table, regardless of the position of the supplied
columns. However, if an existing column definition matches a supplied column, the new column definition will replace
the existing column definition.
Parameters:
column - the definition for the column to be added
Add one or more columns to this table, regardless of the position of the supplied
columns. However, if an existing column definition matches a supplied column, the new column definition will replace
the existing column definition.
Parameters:
columns - the definitions for the columns to be added
Add one or more columns to the end of this table's list of columns, regardless of the position of the supplied columns. However, if an existing column definition matches a supplied column, the new column
definition will replace the existing column definition.
Parameters:
columns - the definitions for the columns to be added
Set this table's column definitions. The table's primary key columns may be removed as a result of this method if they
refer to columns that are not in the supplied list of column definitions.
Parameters:
columns - the definitions for the columns to be added
Set this table's column definitions. The table's primary key columns may be removed as a result of this method if they
refer to columns that are not in the supplied list of column definitions.
Parameters:
columns - the definitions for the columns to be added
Reorder the column with the given name to be positioned after the designated column. If afterColumnName is null,
the column will be moved to the first column.
Parameters:
columnName - the name of the column to be removed
afterColumnName - the name of the column after which the moved column is to be positioned; may be null if the column
is to be moved to the first column
Sets this table's primary key to contain all columns, ensuring that all values are unique within the table.
This is analogous to calling setPrimaryKeyNames(columnNames()) except that the primary key is updated
when columns are added or removed.
Obtain an immutable table definition representing the current state of this editor. This editor can be reused
after this method, since the resulting table definition no longer refers to any of the data used in this editor.