setDefault method

Sets the default value for a column.

Syntax
ColumnSchema ColumnSchema.setDefault(
  byte default_code
)
Parameters
  • default_code   One of the ColumnSchema codes, constants with the COLUMN_DEFAULT suffix, indicating the type of default value that the column should have.

Remarks

The default is COLUMN_DEFAULT_NONE.

See also
Returns

This ColumnSchema with the default value defined.