Code example for SQLiteStatement

Methods: bindDoublebindLongbindStringclearBindingsexecuteInsert

0
		return mInstance;
	} 
	 
	@Override 
	public boolean persist(LocationFingerprint locationFingerprint) {		
		mInsertFingerprint.clearBindings();
		mInsertFingerprint.bindLong(1, locationFingerprint.getmMapId()); 
		mInsertFingerprint.bindDouble(2, locationFingerprint.getmX());
		mInsertFingerprint.bindDouble(3, locationFingerprint.getmY());
		mInsertFingerprint.bindDouble(4, locationFingerprint.getmAngle());
		mInsertFingerprint.bindString(5, DateFormat.format("yyyy-MM-dd kk:mm:ss", locationFingerprint.getmSampleTime()).toString());
		mInsertFingerprint.bindString(6, locationFingerprint.getmSampleName());
		mInsertFingerprint.bindString(7, locationFingerprint.getmFingerprintData().toString());
		 
		return (mInsertFingerprint.executeInsert() != -1);
	} 
 
	@Override 
	public LocationFingerprint query(int id) {
		Cursor fingerprintCursor = mFingerprintDb.query(TABLE_NAME, new String[]{COL_FINGERPRINTJSON}, COL_ID + "=" + id, null, null, null, null);
Connect your IDE to all the code out there  Get Codota for Java