com.almworks.sqlite4java
Class SQLiteColumnMetadata

java.lang.Object
  extended by com.almworks.sqlite4java.SQLiteColumnMetadata

public final class SQLiteColumnMetadata
extends java.lang.Object

SQLiteColumnMetadata contains information about a table column:

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

Method Summary
 java.lang.String getCollSeq()
           
 java.lang.String getDataType()
           
 boolean isAutoinc()
           
 boolean isNotNull()
           
 boolean isPrimaryKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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