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 GeoPackageDataType
getDataType()
Get the column data typeObject
getDefaultValue()
Get the default valueString
getDefaultValueString()
Get the default value as a stringint
getIndex()
Get the column indexLong
getMax()
Get the column max valueString
getName()
Get the column nameString
getType()
Get the column typeboolean
isDataType(GeoPackageDataType dataType)
Is the column the data typeboolean
isNotNull()
Is this a not null column?boolean
isPrimarykey()
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
-
-