code: public ContentsId queryForTableName(String tableName) {
  		ContentsId contentsId = null;
  		try {
  			QueryBuilder<ContentsId, Long> qb = queryBuilder();
  			qb.where().eq(ContentsId.COLUMN_TABLE_NAME, tableName);
  			PreparedQuery<ContentsId> query = qb.prepare();
  			contentsId = queryForFirst(query);
  		} catch (SQLException e) {
  			throw new GeoPackageException(
  					"Failed to query for Contents Id by Table Name: "
  							+ tableName, e);
  		}
  		return contentsId;
  	}
docs: Query by table name
  
  @param tableName
  table name
  @return contents id