public ExecutableRow querySingleExecutableId(long id) throws SQLException {

		PreparedStatement s =
			selectByIdStatement.prepareIfNeeded(() -> db.prepareStatement(SELECT_BY_ID_STMT));
		s.setInt(1, (int) id);
		try (ResultSet rs = s.executeQuery()) {
			if (!rs.next()) {
				throw new SQLException("Bad exetable rowid");
			}
			ExecutableRow row = new ExecutableRow();
			extractExecutableRow(rs, row);
			return row;
		}
	}
Query for a single executable based on its exetable -id-

@param id the exetable id
@return the executable row
@throws SQLException if there is a problem creating or executing the query
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/client/tables/ExeTable.java