Package mil.nga.geopackage.db.table
Class TableColumn
- java.lang.Object
-
- mil.nga.geopackage.db.table.TableColumn
-
public class TableColumn extends Object
Table Column from Table Info- Since:
- 3.3.0
- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoPackageDataTypegetDataType()Get the column data typeObjectgetDefaultValue()Get the default valueStringgetDefaultValueString()Get the default value as a stringintgetIndex()Get the column indexLonggetMax()Get the column max valueStringgetName()Get the column nameStringgetType()Get the column typebooleanisDataType(GeoPackageDataType dataType)Is the column the data typebooleanisNotNull()Is this a not null column?booleanisPrimarykey()Is this a primary key column?
-
-
-
Method Detail
-
getIndex
public int getIndex()
Get the column index- Returns:
- column index
-
getName
public String getName()
Get the column name- Returns:
- column name
-
getType
public String getType()
Get the column type- Returns:
- column type
-
getDataType
public GeoPackageDataType getDataType()
Get the column data type- Returns:
- column data type, may be null
-
isDataType
public boolean isDataType(GeoPackageDataType dataType)
Is the column the data type- Parameters:
dataType- data type- Returns:
- true if the data type
-
getMax
public Long getMax()
Get the column max value- Returns:
- max value or null if no max
-
isNotNull
public boolean isNotNull()
Is this a not null column?- Returns:
- true if not nullable
-
getDefaultValueString
public String getDefaultValueString()
Get the default value as a string- Returns:
- default value as a string
-
getDefaultValue
public Object getDefaultValue()
Get the default value- Returns:
- default value
-
isPrimarykey
public boolean isPrimarykey()
Is this a primary key column?- Returns:
- true if primary key column
-
-