Class DataColumnConstraints
- java.lang.Object
-
- mil.nga.geopackage.extension.schema.constraints.DataColumnConstraints
-
public class DataColumnConstraints extends Object
Contains data to specify restrictions on basic data type column values- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_CONSTRAINT_NAME
constraintName field namestatic String
COLUMN_CONSTRAINT_TYPE
constraintType field namestatic String
COLUMN_DESCRIPTION
description field namestatic String
COLUMN_MAX
max field namestatic String
COLUMN_MAX_IS_INCLUSIVE
maxIsInclusive field namestatic String
COLUMN_MIN
min field namestatic String
COLUMN_MIN_IS_INCLUSIVE
minIsInclusive field namestatic String
COLUMN_VALUE
value field namestatic String
TABLE_NAME
Table name
-
Constructor Summary
Constructors Constructor Description DataColumnConstraints()
Default ConstructorDataColumnConstraints(DataColumnConstraints dataColumnConstraints)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DataColumns>
getColumns(DataColumnsDao dao)
String
getConstraintName()
DataColumnConstraintType
getConstraintType()
String
getDescription()
BigDecimal
getMax()
Boolean
getMaxIsInclusive()
BigDecimal
getMin()
Boolean
getMinIsInclusive()
String
getValue()
void
setConstraintName(String constraintName)
void
setConstraintType(String constraintType)
void
setConstraintType(DataColumnConstraintType constraintType)
void
setDescription(String description)
void
setMax(BigDecimal max)
void
setMaxIsInclusive(Boolean maxIsInclusive)
void
setMin(BigDecimal min)
void
setMinIsInclusive(Boolean minIsInclusive)
void
setValue(String value)
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
Table name- See Also:
- Constant Field Values
-
COLUMN_CONSTRAINT_NAME
public static final String COLUMN_CONSTRAINT_NAME
constraintName field name- See Also:
- Constant Field Values
-
COLUMN_CONSTRAINT_TYPE
public static final String COLUMN_CONSTRAINT_TYPE
constraintType field name- See Also:
- Constant Field Values
-
COLUMN_VALUE
public static final String COLUMN_VALUE
value field name- See Also:
- Constant Field Values
-
COLUMN_MIN
public static final String COLUMN_MIN
min field name- See Also:
- Constant Field Values
-
COLUMN_MIN_IS_INCLUSIVE
public static final String COLUMN_MIN_IS_INCLUSIVE
minIsInclusive field name- See Also:
- Constant Field Values
-
COLUMN_MAX
public static final String COLUMN_MAX
max field name- See Also:
- Constant Field Values
-
COLUMN_MAX_IS_INCLUSIVE
public static final String COLUMN_MAX_IS_INCLUSIVE
maxIsInclusive field name- See Also:
- Constant Field Values
-
COLUMN_DESCRIPTION
public static final String COLUMN_DESCRIPTION
description field name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataColumnConstraints
public DataColumnConstraints()
Default Constructor
-
DataColumnConstraints
public DataColumnConstraints(DataColumnConstraints dataColumnConstraints)
Copy Constructor- Parameters:
dataColumnConstraints
- data column constraints to copy- Since:
- 1.3.0
-
-
Method Detail
-
getConstraintName
public String getConstraintName()
-
setConstraintName
public void setConstraintName(String constraintName)
-
getConstraintType
public DataColumnConstraintType getConstraintType()
-
setConstraintType
public void setConstraintType(String constraintType)
-
setConstraintType
public void setConstraintType(DataColumnConstraintType constraintType)
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
getMin
public BigDecimal getMin()
-
setMin
public void setMin(BigDecimal min)
-
getMinIsInclusive
public Boolean getMinIsInclusive()
-
setMinIsInclusive
public void setMinIsInclusive(Boolean minIsInclusive)
-
getMax
public BigDecimal getMax()
-
setMax
public void setMax(BigDecimal max)
-
getMaxIsInclusive
public Boolean getMaxIsInclusive()
-
setMaxIsInclusive
public void setMaxIsInclusive(Boolean maxIsInclusive)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getColumns
public List<DataColumns> getColumns(DataColumnsDao dao) throws SQLException
- Throws:
SQLException
-
-