Package mil.nga.geopackage.user.custom
Class UserCustomColumn
- java.lang.Object
-
- mil.nga.geopackage.user.UserColumn
-
- mil.nga.geopackage.user.custom.UserCustomColumn
-
- All Implemented Interfaces:
Comparable<UserColumn>
public class UserCustomColumn extends UserColumn
User Custom column- Since:
- 3.0.1
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.user.UserColumn
AUTOINCREMENT_CONSTRAINT_ORDER, DEFAULT_VALUE_CONSTRAINT_ORDER, NO_INDEX, NOT_NULL_CONSTRAINT_ORDER, PRIMARY_KEY_CONSTRAINT_ORDER, UNIQUE_CONSTRAINT_ORDER
-
-
Constructor Summary
Constructors Constructor Description UserCustomColumn(UserCustomColumn userCustomColumn)
Copy Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserCustomColumn
copy()
Copy the columnstatic UserCustomColumn
createColumn(int index, String name, GeoPackageDataType type)
Create a new columnstatic UserCustomColumn
createColumn(int index, String name, GeoPackageDataType type, boolean notNull)
Create a new columnstatic UserCustomColumn
createColumn(int index, String name, GeoPackageDataType type, boolean notNull, Object defaultValue)
Create a new columnstatic UserCustomColumn
createColumn(int index, String name, GeoPackageDataType type, Long max)
Create a new columnstatic UserCustomColumn
createColumn(int index, String name, GeoPackageDataType type, Long max, boolean notNull, Object defaultValue)
Create a new columnstatic UserCustomColumn
createColumn(String name, GeoPackageDataType type)
Create a new columnstatic UserCustomColumn
createColumn(String name, GeoPackageDataType type, boolean notNull)
Create a new columnstatic UserCustomColumn
createColumn(String name, GeoPackageDataType type, boolean notNull, Object defaultValue)
Create a new columnstatic UserCustomColumn
createColumn(String name, GeoPackageDataType type, Long max)
Create a new columnstatic UserCustomColumn
createColumn(String name, GeoPackageDataType type, Long max, boolean notNull, Object defaultValue)
Create a new columnstatic UserCustomColumn
createColumn(TableColumn tableColumn)
Create a new columnstatic UserCustomColumn
createPrimaryKeyColumn(int index, String name)
Create a new primary key columnstatic UserCustomColumn
createPrimaryKeyColumn(int index, String name, boolean autoincrement)
Create a new primary key columnstatic UserCustomColumn
createPrimaryKeyColumn(String name)
Create a new primary key columnstatic UserCustomColumn
createPrimaryKeyColumn(String name, boolean autoincrement)
Create a new primary key column-
Methods inherited from class mil.nga.geopackage.user.UserColumn
addAutoincrementConstraint, addConstraint, addConstraint, addConstraint, addConstraint, addConstraints, addConstraints, addConstraints, addDefaultConstraints, addDefaultValueConstraint, addNotNullConstraint, addPrimaryKeyConstraint, addUniqueConstraint, buildConstraintSql, clearConstraints, clearConstraints, clearConstraints, compareTo, getConstraints, getConstraints, getDataType, getDefaultValue, getIndex, getMax, getName, getSchema, getType, getTypeName, hasConstraints, hasConstraints, hasDefaultValue, hasIndex, hasMax, hasSchema, isAutoincrement, isNamed, isNotNull, isPrimaryKey, isUnique, removeAutoincrementConstraint, removeDefaultValueConstraint, removeNotNullConstraint, removePrimaryKeyConstraint, removeUniqueConstraint, resetIndex, setAutoincrement, setConstraintOrder, setDataType, setDefaultValue, setIndex, setMax, setName, setNotNull, setPrimaryKey, setSchema, setType, setUnique, validateDataType
-
-
-
-
Constructor Detail
-
UserCustomColumn
public UserCustomColumn(UserCustomColumn userCustomColumn)
Copy Constructor- Parameters:
userCustomColumn
- user custom column- Since:
- 3.3.0
-
-
Method Detail
-
createPrimaryKeyColumn
public static UserCustomColumn createPrimaryKeyColumn(String name)
Create a new primary key column- Parameters:
name
- name- Returns:
- user custom column
- Since:
- 3.3.0
-
createPrimaryKeyColumn
public static UserCustomColumn createPrimaryKeyColumn(String name, boolean autoincrement)
Create a new primary key column- Parameters:
name
- nameautoincrement
- autoincrement flag- Returns:
- user custom column
- Since:
- 4.0.0
-
createPrimaryKeyColumn
public static UserCustomColumn createPrimaryKeyColumn(int index, String name)
Create a new primary key column- Parameters:
index
- indexname
- name- Returns:
- user custom column
-
createPrimaryKeyColumn
public static UserCustomColumn createPrimaryKeyColumn(int index, String name, boolean autoincrement)
Create a new primary key column- Parameters:
index
- indexname
- nameautoincrement
- autoincrement flag- Returns:
- user custom column
- Since:
- 4.0.0
-
createColumn
public static UserCustomColumn createColumn(String name, GeoPackageDataType type)
Create a new column- Parameters:
name
- nametype
- data type- Returns:
- user custom column
- Since:
- 3.3.0
-
createColumn
public static UserCustomColumn createColumn(int index, String name, GeoPackageDataType type)
Create a new column- Parameters:
index
- indexname
- nametype
- data type- Returns:
- user custom column
- Since:
- 3.3.0
-
createColumn
public static UserCustomColumn createColumn(String name, GeoPackageDataType type, boolean notNull)
Create a new column- Parameters:
name
- nametype
- data typenotNull
- not null flag- Returns:
- user custom column
- Since:
- 3.3.0
-
createColumn
public static UserCustomColumn createColumn(int index, String name, GeoPackageDataType type, boolean notNull)
Create a new column- Parameters:
index
- indexname
- nametype
- data typenotNull
- not null flag- Returns:
- user custom column
- Since:
- 3.3.0
-
createColumn
public static UserCustomColumn createColumn(String name, GeoPackageDataType type, boolean notNull, Object defaultValue)
Create a new column- Parameters:
name
- nametype
- data typenotNull
- not null flagdefaultValue
- default value- Returns:
- user custom column
- Since:
- 3.3.0
-
createColumn
public static UserCustomColumn createColumn(int index, String name, GeoPackageDataType type, boolean notNull, Object defaultValue)
Create a new column- Parameters:
index
- indexname
- nametype
- typenotNull
- not null flagdefaultValue
- default value- Returns:
- user custom column
-
createColumn
public static UserCustomColumn createColumn(String name, GeoPackageDataType type, Long max)
Create a new column- Parameters:
name
- nametype
- data typemax
- max value- Returns:
- user custom column
- Since:
- 3.3.0
-
createColumn
public static UserCustomColumn createColumn(int index, String name, GeoPackageDataType type, Long max)
Create a new column- Parameters:
index
- indexname
- nametype
- data typemax
- max value- Returns:
- user custom column
- Since:
- 3.3.0
-
createColumn
public static UserCustomColumn createColumn(String name, GeoPackageDataType type, Long max, boolean notNull, Object defaultValue)
Create a new column- Parameters:
name
- nametype
- data typemax
- max valuenotNull
- not null flagdefaultValue
- default value- Returns:
- user custom column
- Since:
- 3.3.0
-
createColumn
public static UserCustomColumn createColumn(int index, String name, GeoPackageDataType type, Long max, boolean notNull, Object defaultValue)
Create a new column- Parameters:
index
- indexname
- nametype
- typemax
- max valuenotNull
- not null flagdefaultValue
- default value- Returns:
- user custom column
-
createColumn
public static UserCustomColumn createColumn(TableColumn tableColumn)
Create a new column- Parameters:
tableColumn
- table column- Returns:
- user custom column
- Since:
- 3.3.0
-
copy
public UserCustomColumn copy()
Copy the column- Specified by:
copy
in classUserColumn
- Returns:
- copied column
- Since:
- 3.3.0
-
-