@Test public void testIsContact() throws Exception { }
public String isContact(String uid, String publicKey,long currencyId) { String result = null; Cursor cursor = query( ContactTable.UID + "=? AND "+ContactTable.PUBLIC_KEY + "=? AND "+ContactTable.CURRENCY_ID + "=?", new String[]{uid,publicKey,String.valueOf(currencyId)}); if (cursor.moveToFirst()){ result = cursor.getString(cursor.getColumnIndex(ContactTable.ALIAS)); } cursor.close(); return result; }
ContactSql extends AbstractSql<Contact> { public String isContact(String uid, String publicKey,long currencyId) { String result = null; Cursor cursor = query( ContactTable.UID + "=? AND "+ContactTable.PUBLIC_KEY + "=? AND "+ContactTable.CURRENCY_ID + "=?", new String[]{uid,publicKey,String.valueOf(currencyId)}); if (cursor.moveToFirst()){ result = cursor.getString(cursor.getColumnIndex(ContactTable.ALIAS)); } cursor.close(); return result; } }
ContactSql extends AbstractSql<Contact> { public String isContact(String uid, String publicKey,long currencyId) { String result = null; Cursor cursor = query( ContactTable.UID + "=? AND "+ContactTable.PUBLIC_KEY + "=? AND "+ContactTable.CURRENCY_ID + "=?", new String[]{uid,publicKey,String.valueOf(currencyId)}); if (cursor.moveToFirst()){ result = cursor.getString(cursor.getColumnIndex(ContactTable.ALIAS)); } cursor.close(); return result; } ContactSql(Context context); }
ContactSql extends AbstractSql<Contact> { public String isContact(String uid, String publicKey,long currencyId) { String result = null; Cursor cursor = query( ContactTable.UID + "=? AND "+ContactTable.PUBLIC_KEY + "=? AND "+ContactTable.CURRENCY_ID + "=?", new String[]{uid,publicKey,String.valueOf(currencyId)}); if (cursor.moveToFirst()){ result = cursor.getString(cursor.getColumnIndex(ContactTable.ALIAS)); } cursor.close(); return result; } ContactSql(Context context); String isContact(String uid, String publicKey,long currencyId); Map<String,Contact> findByPublicKey(Currency currency, String publicKey); Map<String,Contact> findByName(Currency currency,String search); Map<String, Contact> findAllInMap(Currency currency); @Override String getCreation(); @Override Contact fromCursor(Cursor cursor); @Override ContentValues toContentValues(Contact entity); }
ContactSql extends AbstractSql<Contact> { public String isContact(String uid, String publicKey,long currencyId) { String result = null; Cursor cursor = query( ContactTable.UID + "=? AND "+ContactTable.PUBLIC_KEY + "=? AND "+ContactTable.CURRENCY_ID + "=?", new String[]{uid,publicKey,String.valueOf(currencyId)}); if (cursor.moveToFirst()){ result = cursor.getString(cursor.getColumnIndex(ContactTable.ALIAS)); } cursor.close(); return result; } ContactSql(Context context); String isContact(String uid, String publicKey,long currencyId); Map<String,Contact> findByPublicKey(Currency currency, String publicKey); Map<String,Contact> findByName(Currency currency,String search); Map<String, Contact> findAllInMap(Currency currency); @Override String getCreation(); @Override Contact fromCursor(Cursor cursor); @Override ContentValues toContentValues(Contact entity); static final Uri URI; static final int CODE; }