data.setSurrogate(surrogate);
data.setName(rs.getString(2));
data.setDescription(rs.getString(4));
int collection = rs.getInt(1);
data.setCollection(collection == 0 ? surrogate.getDatabase().getTopChronicle() :
new ChronicleImpl(makeSurrogate(surrogate.getDatabase(), DBObjectType.CHRONICLE, collection)));
int schema = rs.getInt(3);
data.setSchema(schema == 0 ? null : makeSurrogate(surrogate.getDatabase(), DBObjectType.SCHEMA, schema));
chronicle = new ChronicleImpl(data);
check(Permission.READ, chronicle);
}
rs.close();
} catch (SQLException e) {
cause = e;