package org.openslx.imagemaster.db; public class DbKey { public final byte[] bytes; public DbKey(byte[] bytes) { this.bytes = bytes; } // TODO: One class per db-table (or per join). This should just be part of DbSatellite public static DbKey fromOrganization(String organization) { return MySQL.findUniqueOrNull( DbKey.class, "SELECT publickey FROM satellite WHERE organization = ?", organization ); } }