-
Field Summary
Fields
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
-
Constructor Summary
Constructors
Constructor of Column metadata.
-
Method Summary
boolean
boolean
boolean
boolean
boolean
Methods inherited from class org.mariadb.jdbc.internal.com.read.resultset.ColumnDefinition
create, getCharsetNumber, getColumnType, getDatabase, getDecimals, getDisplaySize, getFlags, getLength, getName, getOriginalName, getOriginalTable, getPrecision, getTable, isBinary, isBlob, isMultipleKey, isNotNull, isPrimaryKey, isSigned, isUniqueKey, isZeroFill
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
canBeNull
private final boolean canBeNull
-
primary
private final boolean primary
-
hasDefault
private final boolean hasDefault
-
generated
private final boolean generated
-
autoIncrement
private final boolean autoIncrement
-
Constructor Details
-
UpdatableColumnDefinition
public UpdatableColumnDefinition(ColumnDefinition columnDefinition,
boolean canBeNull,
boolean hasDefault,
boolean generated,
boolean primary,
boolean autoIncrement)
Constructor of Column metadata.
- Parameters:
columnDefinition
- column meta information
canBeNull
- can column be null
hasDefault
- has default
generated
- is automatically generated
primary
- is column part of primary key
autoIncrement
- column has AUTO_INCREMENT attribute
-
Method Details
-
canBeNull
public boolean canBeNull()
-
hasDefault
public boolean hasDefault()
-
isGenerated
public boolean isGenerated()
-
isPrimary
public boolean isPrimary()
-
isAutoIncrement
public boolean isAutoIncrement()