Package mil.nga.geopackage.db.master
Class SQLiteMaster
- java.lang.Object
- 
- mil.nga.geopackage.db.master.SQLiteMaster
 
- 
 public class SQLiteMaster extends Object SQLite Master table queries (sqlite_master)- Since:
- 3.3.0
- Author:
- osbornb
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringTABLE_NAMETable Name
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<SQLiteMasterColumn>columns()Get the columns in the resultstatic SQLiteMasterColumn[]columns(SQLiteMasterColumn... columns)Shortcut to build columns into an arrayintcount()Result countstatic intcount(GeoPackageCoreConnection db)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, String tableName)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types, String tableName)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, SQLiteMasterQuery query)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, SQLiteMasterType type)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, SQLiteMasterType[] types)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, SQLiteMasterType[] types, String tableName)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, SQLiteMasterType[] types, SQLiteMasterQuery query)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, SQLiteMasterType type, String tableName)Count the sqlite_master tablestatic intcount(GeoPackageCoreConnection db, SQLiteMasterType type, SQLiteMasterQuery query)Count the sqlite_master tablestatic intcountByType(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types)Count the sqlite_master tablestatic intcountByType(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types, String tableName)Count the sqlite_master tablestatic intcountByType(GeoPackageCoreConnection db, SQLiteMasterType type)Count the sqlite_master tablestatic intcountByType(GeoPackageCoreConnection db, SQLiteMasterType type, String tableName)Count the sqlite_master tablestatic intcountViewsOnTable(GeoPackageCoreConnection db, String tableName)Count the sqlite_master views on the tableintgetColumnIndex(SQLiteMasterColumn column)Get the column index of the column typeTableConstraintsgetConstraints(int row)Get the constraints from table SQLStringgetName(int row)Get the nameLonggetRootpage(int row)Get the rootpageList<Object>getRow(int row)Get the row at the row indexStringgetSql(int row)Get the sqlStringgetTableName(int row)Get the table nameSQLiteMasterTypegetType(int row)Get the typeStringgetTypeString(int row)Get the type stringObjectgetValue(int row, SQLiteMasterColumn column)Get the value of the column at the row indexObjectgetValue(List<Object> row, SQLiteMasterColumn column)Get the value in the row at the column indexstatic SQLiteMasterquery(GeoPackageCoreConnection db)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, String tableName)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, Collection<SQLiteMasterType> types)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, Collection<SQLiteMasterType> types, String tableName)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, SQLiteMasterType type)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, SQLiteMasterType type, String tableName)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterQuery query)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType type)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType[] types)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType[] types, String tableName)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType[] types, SQLiteMasterQuery query)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType type, String tableName)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType type, SQLiteMasterQuery query)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, SQLiteMasterQuery query)Query the sqlite_master tablestatic SQLiteMasterquery(GeoPackageCoreConnection db, SQLiteMasterType type, SQLiteMasterQuery query)Query the sqlite_master tablestatic SQLiteMasterqueryByType(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types)Query the sqlite_master tablestatic SQLiteMasterqueryByType(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types, String tableName)Query the sqlite_master tablestatic SQLiteMasterqueryByType(GeoPackageCoreConnection db, SQLiteMasterType type)Query the sqlite_master tablestatic SQLiteMasterqueryByType(GeoPackageCoreConnection db, SQLiteMasterType type, String tableName)Query the sqlite_master tablestatic SQLiteMasterqueryForColumns(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns)Query the sqlite_master tablestatic SQLiteMasterqueryForColumns(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, String tableName)Query the sqlite_master tablestatic TableConstraintsqueryForConstraints(GeoPackageCoreConnection db, String tableName)Query for the table constraintsstatic SQLiteMasterqueryViewsOnTable(GeoPackageCoreConnection db, String tableName)Query the sqlite_master views on the tablestatic SQLiteMasterqueryViewsOnTable(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, String tableName)Query the sqlite_master views on the tablestatic SQLiteMasterType[]types(SQLiteMasterType... types)Shortcut to build types into an array
 
- 
- 
- 
Field Detail- 
TABLE_NAMEpublic static final String TABLE_NAME Table Name- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
countpublic int count() Result count- Returns:
- count
 
 - 
columnspublic Set<SQLiteMasterColumn> columns() Get the columns in the result- Returns:
- columns
 
 - 
getTypepublic SQLiteMasterType getType(int row) Get the type- Parameters:
- row- row index
- Returns:
- type
 
 - 
getTypeStringpublic String getTypeString(int row) Get the type string- Parameters:
- row- row index
- Returns:
- type string
 
 - 
getNamepublic String getName(int row) Get the name- Parameters:
- row- row index
- Returns:
- name
 
 - 
getTableNamepublic String getTableName(int row) Get the table name- Parameters:
- row- row index
- Returns:
- name
 
 - 
getRootpagepublic Long getRootpage(int row) Get the rootpage- Parameters:
- row- row index
- Returns:
- name
 
 - 
getSqlpublic String getSql(int row) Get the sql- Parameters:
- row- row index
- Returns:
- name
 
 - 
getValuepublic Object getValue(int row, SQLiteMasterColumn column) Get the value of the column at the row index- Parameters:
- row- row index
- column- column type
- Returns:
- value
 
 - 
getRowpublic List<Object> getRow(int row) Get the row at the row index- Parameters:
- row- row index
- Returns:
- row column values
 
 - 
getValuepublic Object getValue(List<Object> row, SQLiteMasterColumn column) Get the value in the row at the column index- Parameters:
- row- row
- column- column type
- Returns:
- value
 
 - 
getColumnIndexpublic int getColumnIndex(SQLiteMasterColumn column) Get the column index of the column type- Parameters:
- column- column type
- Returns:
- column index
 
 - 
getConstraintspublic TableConstraints getConstraints(int row) Get the constraints from table SQL- Parameters:
- row- row index
- Returns:
- constraints
 
 - 
columnspublic static SQLiteMasterColumn[] columns(SQLiteMasterColumn... columns) Shortcut to build columns into an array- Parameters:
- columns- columns
- Returns:
- columns
 
 - 
typespublic static SQLiteMasterType[] types(SQLiteMasterType... types) Shortcut to build types into an array- Parameters:
- types- types
- Returns:
- types
 
 - 
countpublic static int count(GeoPackageCoreConnection db) Count the sqlite_master table- Parameters:
- db- connection
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db) Query the sqlite_master table- Parameters:
- db- connection
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, String tableName) Count the sqlite_master table- Parameters:
- db- connection
- tableName- table name
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, String tableName) Query the sqlite_master table- Parameters:
- db- connection
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
queryForColumnspublic static SQLiteMaster queryForColumns(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- Returns:
- SQLiteMaster result
 
 - 
queryForColumnspublic static SQLiteMaster queryForColumns(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, String tableName) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
countByTypepublic static int countByType(GeoPackageCoreConnection db, SQLiteMasterType type) Count the sqlite_master table- Parameters:
- db- connection
- type- result type
- Returns:
- count
 
 - 
queryByTypepublic static SQLiteMaster queryByType(GeoPackageCoreConnection db, SQLiteMasterType type) Query the sqlite_master table- Parameters:
- db- connection
- type- result type
- Returns:
- SQLiteMaster result
 
 - 
countByTypepublic static int countByType(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types) Count the sqlite_master table- Parameters:
- db- connection
- types- result types
- Returns:
- count
 
 - 
queryByTypepublic static SQLiteMaster queryByType(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types) Query the sqlite_master table- Parameters:
- db- connection
- types- result types
- Returns:
- SQLiteMaster result
 
 - 
countByTypepublic static int countByType(GeoPackageCoreConnection db, SQLiteMasterType type, String tableName) Count the sqlite_master table- Parameters:
- db- connection
- type- result type
- tableName- table name
- Returns:
- count
 
 - 
queryByTypepublic static SQLiteMaster queryByType(GeoPackageCoreConnection db, SQLiteMasterType type, String tableName) Query the sqlite_master table- Parameters:
- db- connection
- type- result type
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
countByTypepublic static int countByType(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types, String tableName) Count the sqlite_master table- Parameters:
- db- connection
- types- result types
- tableName- table name
- Returns:
- count
 
 - 
queryByTypepublic static SQLiteMaster queryByType(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types, String tableName) Query the sqlite_master table- Parameters:
- db- connection
- types- result types
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types) Count the sqlite_master table- Parameters:
- db- connection
- types- result types
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, SQLiteMasterType type) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- type- result type
- Returns:
- SQLiteMaster result
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, Collection<SQLiteMasterType> types) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- types- result types
- Returns:
- SQLiteMaster result
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, SQLiteMasterType type, String tableName) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- type- result type
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, Collection<SQLiteMasterType> types, String tableName) Count the sqlite_master table- Parameters:
- db- connection
- types- result types
- tableName- table name
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, Collection<SQLiteMasterColumn> columns, Collection<SQLiteMasterType> types, String tableName) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- types- result types
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, SQLiteMasterType type) Count the sqlite_master table- Parameters:
- db- connection
- type- result type
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType type) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- type- result type
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, SQLiteMasterType type, String tableName) Count the sqlite_master table- Parameters:
- db- connection
- type- result type
- tableName- table name
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType type, String tableName) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- type- result type
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, SQLiteMasterType[] types) Count the sqlite_master table- Parameters:
- db- connection
- types- result types
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType[] types) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- types- result types
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, SQLiteMasterType[] types, String tableName) Count the sqlite_master table- Parameters:
- db- connection
- types- result types
- tableName- table name
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType[] types, String tableName) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- types- result types
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, SQLiteMasterQuery query) Query the sqlite_master table- Parameters:
- db- connection
- query- query
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, SQLiteMasterQuery query) Count the sqlite_master table- Parameters:
- db- connection
- query- query
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterQuery query) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- query- query
- Returns:
- SQLiteMaster result
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, SQLiteMasterType type, SQLiteMasterQuery query) Query the sqlite_master table- Parameters:
- db- connection
- type- result type
- query- query
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, SQLiteMasterType type, SQLiteMasterQuery query) Count the sqlite_master table- Parameters:
- db- connection
- type- result type
- query- query
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType type, SQLiteMasterQuery query) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- type- result type
- query- query
- Returns:
- SQLiteMaster result
 
 - 
countpublic static int count(GeoPackageCoreConnection db, SQLiteMasterType[] types, SQLiteMasterQuery query) Count the sqlite_master table- Parameters:
- db- connection
- types- result types
- query- query
- Returns:
- count
 
 - 
querypublic static SQLiteMaster query(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, SQLiteMasterType[] types, SQLiteMasterQuery query) Query the sqlite_master table- Parameters:
- db- connection
- columns- result columns
- types- result types
- query- query
- Returns:
- SQLiteMaster result
 
 - 
queryViewsOnTablepublic static SQLiteMaster queryViewsOnTable(GeoPackageCoreConnection db, String tableName) Query the sqlite_master views on the table- Parameters:
- db- connection
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
queryViewsOnTablepublic static SQLiteMaster queryViewsOnTable(GeoPackageCoreConnection db, SQLiteMasterColumn[] columns, String tableName) Query the sqlite_master views on the table- Parameters:
- db- connection
- columns- result columns
- tableName- table name
- Returns:
- SQLiteMaster result
 
 - 
countViewsOnTablepublic static int countViewsOnTable(GeoPackageCoreConnection db, String tableName) Count the sqlite_master views on the table- Parameters:
- db- connection
- tableName- table name
- Returns:
- count
 
 - 
queryForConstraintspublic static TableConstraints queryForConstraints(GeoPackageCoreConnection db, String tableName) Query for the table constraints- Parameters:
- db- connection
- tableName- table name
- Returns:
- SQL constraints
 
 
- 
 
-