Exemplo n.º 1
0
 /** @see #findById(Context, Class, long) */
 public static <T> T findById(Class<T> object, long id) {
   return CPOrm.findByPrimaryKey(object, id);
 }
Exemplo n.º 2
0
 /**
  * Finds a record based on the id column
  *
  * @param context Current context
  * @param id the id of the record to find
  * @return The record, if found.
  */
 public static <T> T findById(Context context, Class<T> object, long id) {
   return CPOrm.findByPrimaryKey(context, object, id);
 }