Code example for Field

Methods: equals

0
      db.execSQL(sql);
      mSchemaCreated = true;
    } 
 
    private boolean isPrimaryKey(Field f) {
      return mPrimaryKey.equals(f);
    } 
 
    Object getPrimaryKeyValue(Entity o) {
      try { 
        return mPrimaryKey.get(o);
      } catch (IllegalAccessException e) {
        Log.e(TAG,
            "IllegalAccessException accessing primary key " + mPrimaryKey
                + "; Update failed"); 
        throw new ORMDroidException( 
            "IllegalAccessException accessing primary key " + mPrimaryKey
                + "; Update failed"); 
      } 
    }