public class ColumnOptions extends Object
Constructor and Description |
---|
ColumnOptions(boolean notNull,
boolean primaryKey)
Constructs a ColumnOptions object with the specified options.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isNotNull()
Returns a boolean value indicating whether the column with these
column options is not allowed to store null values.
|
boolean |
isPrimaryKey()
Returns a boolean value indicating whether the column with these
column options is the primary key.
|
public ColumnOptions(boolean notNull, boolean primaryKey)
notNull
- is this column not allowed to store null values?primaryKey
- is this column the primary key?public boolean isNotNull()
public boolean isPrimaryKey()