com.almworks.sqlite4java
Class SQLiteColumnMetadata
java.lang.Object
com.almworks.sqlite4java.SQLiteColumnMetadata
public final class SQLiteColumnMetadata
- extends java.lang.Object
SQLiteColumnMetadata
contains information about a table column:
- Declared datatype;
- Collation sequence name;
- Flag that is true if NOT NULL constraint exists;
- Flag that is true if column is a part of primary key;
- Flag that is true if column is auto-increment.
You get instances of SQLiteColumnMetadata via SQLiteConnection.getTableColumnMetadata(java.lang.String, java.lang.String, java.lang.String)
method.
- Author:
- Alexander Smirnov
- See Also:
- sqlite3_table_column_metadata
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getDataType
public java.lang.String getDataType()
- Returns:
- declared data type
getCollSeq
public java.lang.String getCollSeq()
- Returns:
- collation sequence name
isNotNull
public boolean isNotNull()
- Returns:
- True if NOT NULL constraint exists
isPrimaryKey
public boolean isPrimaryKey()
- Returns:
- True if column part of primary key
isAutoinc
public boolean isAutoinc()
- Returns:
- True if column is auto-increment