Best code examples for Android SQLiteQueryBuilder class (android.database.sqlite.SQLiteQueryBuilder)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android SQLiteQueryBuilder class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android SQLiteQueryBuilder examples from Open Source projects
This code example shows how to use the following methods: appendWhere, query, setTables
89:	SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); 
-
93:	queryBuilder.setTables(TABLENAME); 
-
96:	queryBuilder.setTables(TABLENAME); 
97:	queryBuilder.appendWhere(PK + "=" 
-
105:	Cursor cursor = queryBuilder.query(db, projection, selection, 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
133:	SQLiteQueryBuilder qBuilder = new SQLiteQueryBuilder(); 
-
139:	qBuilder.setTables(TABLE_NAME); 
-
143:	qBuilder.setTables(TABLE_NAME); 
144:	qBuilder.appendWhere("_id="); 
145:	qBuilder.appendWhere(uri.getPathSegments().get(SETTINGS_ID)); 
-
160:	Cursor ret = qBuilder.query(db, projection, selection, selectionArgs, null, null, orderBy); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: query, setTables
62:	SQLiteQueryBuilder qb=new SQLiteQueryBuilder(); 
-
64:	qb.setTables(TABLE); 
-
75:	Cursor c= 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
150:	SQLiteQueryBuilder qBuilder = new SQLiteQueryBuilder(); 
-
157:	qBuilder.setTables(TABLE_ROSTER + " " + QUERY_ALIAS); 
-
162:	qBuilder.setTables(TABLE_ROSTER + " " + QUERY_ALIAS); 
163:	qBuilder.appendWhere(RosterConstants.GROUP + "="); 
164:	qBuilder.appendWhere(url.getPathSegments().get(1)); 
-
168:	qBuilder.setTables(TABLE_ROSTER + " " + QUERY_ALIAS); 
-
172:	qBuilder.setTables(TABLE_ROSTER + " " + QUERY_ALIAS); 
173:	qBuilder.appendWhere("_id="); 
174:	qBuilder.appendWhere(url.getPathSegments().get(1)); 
-
189:	Cursor ret = qBuilder.query(db, projectionIn, selection, selectionArgs, 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
137:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
141:	qb.setTables(HOSTS_TABLE_NAME); 
142:	qb.setProjectionMap(sHostsProjectionMap); 
-
146:	qb.setTables(HOSTS_TABLE_NAME); 
147:	qb.setProjectionMap(sHostsProjectionMap); 
148:	qb.appendWhere(Hosts._ID + "=" + uri.getPathSegments().get(1)); 
-
166:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
70:	SQLiteQueryBuilder builder = new SQLiteQueryBuilder(); 
71:	builder.setTables(mTableName); 
-
76:	Cursor cursor = builder.query(db, null, selection, selectionArgs, null, null, sortOrder); 
-
169:	builder.appendWhere(BaseColumns._ID + "=" + uri.getPathSegments().get(1)); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
63:	SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); 
-
65:	queryBuilder.setTables(TABLE_NAME); 
-
68:	queryBuilder.appendWhere(Template._ID + "=" + uri.getPathSegments().get(1)); 
-
71:	Cursor cursor = queryBuilder.query(mDb, projection, selection, selectionArgs, 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
59:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
65:	qb.setTables("cities"); 
-
68:	qb.setTables("cities"); 
69:	qb.appendWhere("_id="); 
70:	qb.appendWhere(url.getPathSegments().get(1)); 
-
77:	Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: query, setTables
32:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
37:	qb.setTables(sqlTables); 
38:	Cursor c = qb.query(db, sqlSelect, null, null, 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: query, setTables
62:	SQLiteQueryBuilder qb=new SQLiteQueryBuilder(); 
-
64:	qb.setTables(TABLE); 
-
75:	Cursor c= 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
87:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
93:	qb.setTables("bookmarks"); //$NON-NLS-1$ 
-
96:	qb.setTables("bookmarks"); //$NON-NLS-1$ 
97:	qb.appendWhere("_id="); //$NON-NLS-1$ 
98:	qb.appendWhere(url.getPathSegments().get(1)); 
-
106:	Cursor cursor = qb.query(db, projectionIn, selection, selectionArgs, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
216:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
217:	qb.setTables(MainTable.TABLE_NAME); 
-
222:	qb.setProjectionMap(mNotesProjectionMap); 
-
227:	qb.setProjectionMap(mNotesProjectionMap); 
228:	qb.appendWhere(MainTable._ID + "=?"); 
-
244:	Cursor c = qb.query(db, projection, selection, selectionArgs, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
126:	SQLiteQueryBuilder qBuilder = new SQLiteQueryBuilder(); 
-
131:	qBuilder.setTables(TABLE_NAME); 
-
134:	qBuilder.setTables(TABLE_NAME); 
135:	qBuilder.appendWhere("_id="); 
136:	qBuilder.appendWhere(url.getPathSegments().get(1)); 
-
150:	Cursor ret = qBuilder.query(db, projectionIn, selection, selectionArgs, 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
140:	SQLiteQueryBuilder qBuilder = new SQLiteQueryBuilder(); 
-
143:	qBuilder.setTables(DATABASE_TABLE_NAME); 
-
149:	qBuilder.appendWhere("_id=" + uri.getPathLeafId()); 
-
158:	Cursor c = qBuilder.query(mDb, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
106:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
110:	qb.setTables(USERDICT_TABLE_NAME); 
111:	qb.setProjectionMap(sDictProjectionMap); 
-
115:	qb.setTables(USERDICT_TABLE_NAME); 
116:	qb.setProjectionMap(sDictProjectionMap); 
117:	qb.appendWhere("_id" + "=" + uri.getPathSegments().get(1)); 
-
134:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: query, setTables
62:	SQLiteQueryBuilder qb=new SQLiteQueryBuilder(); 
-
64:	qb.setTables(TABLE); 
-
75:	Cursor c= 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: query, setTables
102:	final SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); 
-
104:	queryBuilder.setTables("tests"); 
-
108:	c = queryBuilder.query(db, projection, newSelection, selectionArgs, null, null, sortOrder); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
127:	SQLiteQueryBuilder sqlBuilder = new SQLiteQueryBuilder(); 
128:	sqlBuilder.setTables(TB_NAME); 
-
130:	sqlBuilder.appendWhere(_ID + " = " + uri.getPathSegments().get(0)); 
-
136:	Cursor c = sqlBuilder.query(db, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
120:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
126:	qb.appendWhere("detail._ID=" + uri.getPathSegments().get(1)); 
-
128:	qb.setTables("detail"); 
129:	qb.setProjectionMap(sDetailProjectionMap); 
-
133:	qb.appendWhere("detail.masterID=" + uri.getPathSegments().get(2)); 
134:	qb.setTables("detail"); 
135:	qb.setProjectionMap(sDetailProjectionMap); 
-
139:	qb.appendWhere("master._ID=" + uri.getPathSegments().get(1)); 
-
141:	qb.setTables("master"); 
142:	qb.setProjectionMap(sMasterProjectionMap); 
-
153:	Cursor cursor = 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getTables
34:	ExtendedSQLiteQueryBuilder builder = new ExtendedSQLiteQueryBuilder(qb); 
35:	when(qb.getTables()).thenReturn("test"); 
-
39:	Mockito.reset(qb); 
40:	when(qb.getTables()).thenReturn("test"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
179:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
180:	qb.setTables(JOURNEYS_TABLE_NAME); 
-
184:	qb.setProjectionMap(sJourneysProjectionMap); 
-
187:	qb.setProjectionMap(sJourneysProjectionMap); 
188:	qb.appendWhere(Journeys._ID + "=" + 
-
196:	Cursor c = qb.query(db, projection, selection, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
112:	SQLiteQueryBuilder query = new SQLiteQueryBuilder(); 
113:	query.setTables(TABLE_NAME); 
-
121:	query.appendWhere(_ID); 
122:	query.appendWhere("="); 
123:	query.appendWhere(uri.getPathSegments().get(1)); 
-
127:	query.appendWhere(COLUMN_TEST_NAME); 
128:	query.appendWhere("="); 
129:	query.appendWhere("\"" + uri.getPathSegments().get(1) + "\""); 
-
137:	return query.query(db, projection, selection, selectionArgs, null, null, sortOrder); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
215:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
216:	qb.setTables(MainTable.TABLE_NAME); 
-
221:	qb.setProjectionMap(mNotesProjectionMap); 
-
226:	qb.setProjectionMap(mNotesProjectionMap); 
227:	qb.appendWhere(MainTable._ID + "=?"); 
-
243:	Cursor c = qb.query(db, projection, selection, selectionArgs, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
207:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
208:	qb.setTables(AUTODICT_TABLE_NAME); 
209:	qb.setProjectionMap(sDictProjectionMap); 
-
213:	Cursor c = qb.query(db, null, selection, selectionArgs, null, null, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
145:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
146:	qb.setTables(PHOTOS_TABLE); 
-
150:	qb.appendWhere(KEY_ID + "=" + uri.getPathSegments().get(1)); 
-
156:	Cursor c = qb.query(mDb, projection, selection, selectionArgs, null, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: query, setTables
62:	SQLiteQueryBuilder qb=new SQLiteQueryBuilder(); 
-
64:	qb.setTables(TABLE); 
-
75:	Cursor c= 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: query, setTables
367:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
368:	qb.setTables(DATABASE_TABLE); 
369:	Cursor c = qb.query(db, null, COL_ID + " = ?", new String[]{"" + id}, null, null, null); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
117:	SQLiteQueryBuilder qBuilder = new SQLiteQueryBuilder(); 
-
123:	qBuilder.setTables(TABLE_NAME); 
-
127:	qBuilder.setTables(TABLE_NAME); 
128:	qBuilder.appendWhere("_id="); 
129:	qBuilder.appendWhere(uri.getPathSegments().get(SETTINGS_ID)); 
-
144:	Cursor ret = qBuilder.query(db, projection, selection, selectionArgs, null, null, orderBy); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
64:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
67:	qb.setTables(TABLE_NAME); 
68:	qb.setProjectionMap(projectionMap); 
-
71:	qb.setTables(TABLE_NAME); 
72:	qb.setProjectionMap(projectionMap); 
73:	qb.appendWhere(COLUMN_ID + "=" + uri.getPathSegments().get(1)); 
-
80:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
132:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
143:	qb.setTables(LASTUPDATE_TABLE_NAME); 
144:	qb.setProjectionMap(sLastUpdateProjectionMap); 
-
147:	qb.setTables(LOCALES_TABLE_NAME); 
148:	qb.setProjectionMap(sLocalesProjectionMap); 
-
151:	qb.setTables(CATEGORIES_TABLE_NAME); 
152:	qb.setProjectionMap(sCategoriesProjectionMap); 
-
155:	qb.setTables(NODETYPES_TABLE_NAME); 
156:	qb.setProjectionMap(sNodeTypesProjectionMap); 
-
162:	c = qb.query(db, projection, selection, selectionArgs, null, null, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: query, setTables
62:	SQLiteQueryBuilder qb=new SQLiteQueryBuilder(); 
-
64:	qb.setTables(TABLE); 
-
75:	Cursor c= 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
90:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
92:	qb.setTables(SHARING_TABLE_NAME); 
-
96:	qb.setProjectionMap(sharingProjectionMap); 
-
106:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, null); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
148:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
151:	qb.setTables(TABLE_NAME); 
152:	qb.setProjectionMap(projectionMap); 
-
155:	qb.setTables(TABLE_NAME); 
156:	qb.setProjectionMap(projectionMap); 
157:	qb.appendWhere(COLUMN_ID + "=" + uri.getPathSegments().get(1)); 
-
164:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
156:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
160:	qb.setTables(BOOKMARKS_TABLE); 
-
163:	qb.setTables(BOOKMARKS_TABLE); 
164:	qb.appendWhere(Columns._ID + " = " + uri.getPathSegments().get(1)); 
-
169:	Cursor c = qb.query(mDb, projection, selection, selectionArgs, null, null, sortOrder); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
216:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
217:	qb.setTables(MainTable.TABLE_NAME); 
-
222:	qb.setProjectionMap(mNotesProjectionMap); 
-
227:	qb.setProjectionMap(mNotesProjectionMap); 
228:	qb.appendWhere(MainTable._ID + "=?"); 
-
244:	Cursor c = qb.query(db, projection, selection, selectionArgs, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: query, setTables
62:	SQLiteQueryBuilder qb=new SQLiteQueryBuilder(); 
-
64:	qb.setTables(TABLE); 
-
75:	Cursor c= 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
64:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
67:	qb.setTables(TABLE_NAME); 
68:	qb.setProjectionMap(projectionMap); 
-
71:	qb.setTables(TABLE_NAME); 
72:	qb.setProjectionMap(projectionMap); 
73:	qb.appendWhere(COLUMN_ID + "=" + uri.getPathSegments().get(1)); 
-
80:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setProjectionMap, setTables
68:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
71:	qb.setTables(TODO_TABLE_NAME); 
72:	qb.setProjectionMap(projectionMap); 
-
75:	qb.setTables(TODO_TABLE_NAME); 
76:	qb.setProjectionMap(projectionMap); 
77:	qb.appendWhere(COLUMN_ID + "=" + uri.getPathSegments().get(1)); 
-
84:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
117:	SQLiteQueryBuilder qBuilder = new SQLiteQueryBuilder(); 
-
123:	qBuilder.setTables(TABLE_NAME); 
-
127:	qBuilder.setTables(TABLE_NAME); 
128:	qBuilder.appendWhere("_id="); 
129:	qBuilder.appendWhere(uri.getPathSegments().get(SETTINGS_ID)); 
-
144:	Cursor ret = qBuilder.query(db, projection, selection, selectionArgs, null, null, orderBy); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: appendWhere, query, setTables
132:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
136:	qb.setTables(SSL_EXCEPTIONS_TABLE); 
-
139:	qb.setTables(SSL_EXCEPTIONS_TABLE); 
140:	qb.appendWhere(Columns._ID + " = " + uri.getPathSegments().get(1)); 
-
145:	Cursor c = qb.query(mDb, projection, selection, selectionArgs, null, null, sortOrder); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
140:	SQLiteQueryBuilder builder = new SQLiteQueryBuilder(); 
141:	builder.setTables(FTS_VIRTUAL_TABLE); 
142:	builder.setProjectionMap(mColumnMap); 
-
144:	Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(), 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
117:	SQLiteQueryBuilder builder = new SQLiteQueryBuilder(); 
118:	builder.setTables(SAMPLES_VIRTUAL_TABLE); 
119:	builder.setProjectionMap(mColumnMap); 
-
121:	Cursor cursor = builder.query(db, columns, selection, selectionArgs, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
141:	SQLiteQueryBuilder builder = new SQLiteQueryBuilder(); 
142:	builder.setTables(FTS_VIRTUAL_TABLE); 
143:	builder.setProjectionMap(mColumnMap); 
-
145:	Cursor cursor = builder.query( 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
43:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
45:	qb.setTables(TABLE_NAME); 
46:	qb.setProjectionMap(sProjectionMap); 
-
57:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
79:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
83:	qb.setTables(TABLE_NAME); 
84:	qb.setProjectionMap(playersProjectionMap); 
-
92:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
66:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
70:	qb.setTables(TABLE_NAME); 
71:	qb.setProjectionMap(barsProjectionMap); 
-
79:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: query, setProjectionMap, setTables
78:	SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 
-
82:	qb.setTables(TABLE_NAME); 
83:	qb.setProjectionMap(teamsProjectionMap); 
-
91:	Cursor c = qb.query(db, projection, selection, selectionArgs, null, 
Full Snippet Info
6
CodeRank
Related Android SQLiteQueryBuilder Questions & Answers:
See Code Examples for Android SQLiteQueryBuilder Methods: