public class SQLiteColumnInfo
extends java.lang.Object
table_info
pragma in SQLite.Modifier and Type | Field and Description |
---|---|
boolean |
bNotNull
Indicates whether the column is defined
NOT NULL . |
boolean |
bPrimaryKey
Indicates whether the column is the table's primary key.
|
int |
nColumnID
The numeric ID of the column in any given row.
|
java.lang.String |
sColumnName
The name of the column in the table definition.
|
java.lang.String |
sColumnType
The magic SQLite token indicating this column's data type.
|
java.lang.String |
sDefault
The default value of the column, as a string.
|
java.lang.String |
sTableName
The name of the table containing this column.
|
Constructor and Description |
---|
SQLiteColumnInfo() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<SQLiteColumnInfo> |
gatherColumnList(android.database.sqlite.SQLiteDatabase db,
java.lang.String sTableName)
Gathers information about the columns in the specified table, and returns
the column descriptions in a list.
|
static java.util.Map<java.lang.String,SQLiteColumnInfo> |
gatherColumnMap(android.database.sqlite.SQLiteDatabase db,
java.lang.String sTableName)
Gathers information about the columns in the specified table, and returns
the column descriptions in a map.
|
public java.lang.String sTableName
public int nColumnID
public java.lang.String sColumnName
public java.lang.String sColumnType
public boolean bNotNull
NOT NULL
.public java.lang.String sDefault
public boolean bPrimaryKey
public static java.util.List<SQLiteColumnInfo> gatherColumnList(android.database.sqlite.SQLiteDatabase db, java.lang.String sTableName)
db
- the database to be analyzedsTableName
- the name of the table to be analyzedSQLitePortal.getColumnListForTable(java.lang.String)
public static java.util.Map<java.lang.String,SQLiteColumnInfo> gatherColumnMap(android.database.sqlite.SQLiteDatabase db, java.lang.String sTableName)
db
- the database to be analyzedsTableName
- the name of the table to be analyzedSQLitePortal.getColumnMapForTable(java.lang.String)