Package mil.nga.geopackage.attributes
Class AttributesColumn
- java.lang.Object
-
- mil.nga.geopackage.user.UserColumn
-
- mil.nga.geopackage.attributes.AttributesColumn
-
- All Implemented Interfaces:
Comparable<UserColumn>
public class AttributesColumn extends UserColumn
Attributes column- Since:
- 1.2.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 AttributesColumn(AttributesColumn attributesColumn)Copy Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributesColumncopy()Copy the columnstatic AttributesColumncreateColumn(int index, String name, GeoPackageDataType type)Create a new columnstatic AttributesColumncreateColumn(int index, String name, GeoPackageDataType type, boolean notNull)Create a new columnstatic AttributesColumncreateColumn(int index, String name, GeoPackageDataType type, boolean notNull, Object defaultValue)Create a new columnstatic AttributesColumncreateColumn(int index, String name, GeoPackageDataType type, Long max)Create a new columnstatic AttributesColumncreateColumn(int index, String name, GeoPackageDataType type, Long max, boolean notNull, Object defaultValue)Create a new columnstatic AttributesColumncreateColumn(String name, GeoPackageDataType type)Create a new columnstatic AttributesColumncreateColumn(String name, GeoPackageDataType type, boolean notNull)Create a new columnstatic AttributesColumncreateColumn(String name, GeoPackageDataType type, boolean notNull, Object defaultValue)Create a new columnstatic AttributesColumncreateColumn(String name, GeoPackageDataType type, Long max)Create a new columnstatic AttributesColumncreateColumn(String name, GeoPackageDataType type, Long max, boolean notNull, Object defaultValue)Create a new columnstatic AttributesColumncreateColumn(TableColumn tableColumn)Create a new columnstatic AttributesColumncreatePrimaryKeyColumn(int index, String name)Create a new primary key columnstatic AttributesColumncreatePrimaryKeyColumn(int index, String name, boolean autoincrement)Create a new primary key columnstatic AttributesColumncreatePrimaryKeyColumn(String name)Create a new primary key columnstatic AttributesColumncreatePrimaryKeyColumn(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
-
AttributesColumn
public AttributesColumn(AttributesColumn attributesColumn)
Copy Constructor- Parameters:
attributesColumn- attributes column- Since:
- 3.3.0
-
-
Method Detail
-
createPrimaryKeyColumn
public static AttributesColumn createPrimaryKeyColumn(String name)
Create a new primary key column- Parameters:
name- name- Returns:
- attributes column
- Since:
- 3.3.0
-
createPrimaryKeyColumn
public static AttributesColumn createPrimaryKeyColumn(String name, boolean autoincrement)
Create a new primary key column- Parameters:
name- nameautoincrement- autoincrement flag- Returns:
- attributes column
- Since:
- 4.0.0
-
createPrimaryKeyColumn
public static AttributesColumn createPrimaryKeyColumn(int index, String name)
Create a new primary key column- Parameters:
index- indexname- name- Returns:
- attributes column
-
createPrimaryKeyColumn
public static AttributesColumn createPrimaryKeyColumn(int index, String name, boolean autoincrement)
Create a new primary key column- Parameters:
index- indexname- nameautoincrement- autoincrement flag- Returns:
- attributes column
- Since:
- 4.0.0
-
createColumn
public static AttributesColumn createColumn(String name, GeoPackageDataType type)
Create a new column- Parameters:
name- nametype- data type- Returns:
- attributes column
- Since:
- 3.3.0
-
createColumn
public static AttributesColumn createColumn(int index, String name, GeoPackageDataType type)
Create a new column- Parameters:
index- indexname- nametype- data type- Returns:
- attributes column
- Since:
- 3.3.0
-
createColumn
public static AttributesColumn createColumn(String name, GeoPackageDataType type, boolean notNull)
Create a new column- Parameters:
name- nametype- data typenotNull- not null flag- Returns:
- attributes column
- Since:
- 3.3.0
-
createColumn
public static AttributesColumn createColumn(int index, String name, GeoPackageDataType type, boolean notNull)
Create a new column- Parameters:
index- indexname- nametype- data typenotNull- not null flag- Returns:
- attributes column
- Since:
- 3.3.0
-
createColumn
public static AttributesColumn createColumn(String name, GeoPackageDataType type, boolean notNull, Object defaultValue)
Create a new column- Parameters:
name- nametype- data typenotNull- not null flagdefaultValue- default value- Returns:
- attributes column
- Since:
- 3.3.0
-
createColumn
public static AttributesColumn createColumn(int index, String name, GeoPackageDataType type, boolean notNull, Object defaultValue)
Create a new column- Parameters:
index- indexname- nametype- data typenotNull- not null flagdefaultValue- default value- Returns:
- attributes column
-
createColumn
public static AttributesColumn createColumn(String name, GeoPackageDataType type, Long max)
Create a new column- Parameters:
name- nametype- data typemax- max value- Returns:
- attributes column
- Since:
- 3.3.0
-
createColumn
public static AttributesColumn createColumn(int index, String name, GeoPackageDataType type, Long max)
Create a new column- Parameters:
index- indexname- nametype- data typemax- max value- Returns:
- attributes column
- Since:
- 3.3.0
-
createColumn
public static AttributesColumn 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:
- attributes column
- Since:
- 3.3.0
-
createColumn
public static AttributesColumn createColumn(int index, String name, GeoPackageDataType type, Long max, boolean notNull, Object defaultValue)
Create a new column- Parameters:
index- indexname- nametype- data typemax- max valuenotNull- not null flagdefaultValue- default value- Returns:
- attributes column
-
createColumn
public static AttributesColumn createColumn(TableColumn tableColumn)
Create a new column- Parameters:
tableColumn- table column- Returns:
- attributes column
- Since:
- 3.3.0
-
copy
public AttributesColumn copy()
Copy the column- Specified by:
copyin classUserColumn- Returns:
- copied column
- Since:
- 3.3.0
-
-