コード例 #1
0
 @Override
 public ContentValues objectToContentValues(ConnectionProfile object) {
   final ContentValues content = new ContentValues();
   content.put(COL_ID, object.getId());
   content.put(COL_NAME, object.getName());
   content.put(COL_HOSTNAME, object.getHostname());
   content.put(COL_PORT, object.getPort());
   content.put(COL_PASSWORD, object.getPassword());
   content.put(COL_STREAMING_HOSTNAME, object.getStreamingHostname());
   content.put(COL_STREAMING_PORT, object.getStreamingPort());
   content.put(COL_STREAMING_SUFFIX, object.getStreamingSuffix());
   content.put(COL_MUSIC_PATH, object.getMusicPath());
   content.put(COL_COVER_FILENAME, object.getCoverFilename());
   content.put(COL_USE_DATABASE_CACHE, object.usesDatabaseCache() ? 1 : 0);
   return content;
 }