code: private String getSelectPkSql(String[] where)
    {
      StringBuilder sql = new StringBuilder("select ")
        .append(_entityInfo.id().columnName())
        .append(" FROM ").append(_entityInfo.tableName())
        .append(" where ");
  
      for (int i = 0; i < where.length; i++) {
        sql.append(where[i]).append('=').append('?');
  
        if ((i + 1) < where.length)
          sql.append(" AND ");
      }
  
      return sql.toString();
    }
docs: /*
  private void findAll(ResultStream<T> stream)
  {
  StringBuilder sql = getWildSelect();
  
  _db.findAll(sql.toString(), stream.of(this::readObjects));
  }
  
  private TableInfo createTable()
  {
  String tableInfoSql = "show tableinfo " + _entityInfo.tableName();
  
  try {
  TableInfo tableInfo = (TableInfo) _db.exec(tableInfoSql);
  
  if (tableInfo != null) {
  return tableInfo;
  }
  } catch (Exception e) {
  log.log(Level.FINEST, e.toString(), e);
  }
  
  StringBuilder sb = new StringBuilder();
  sb.append("create table " + _entityInfo.tableName() + " (");
  sb.append("id " + _entityInfo.id().sqlType() + " primary key");
  sb.append(", __id");
  sb.append(")");
  
  String sqlCreate = sb.toString();
  
  _db.exec(sqlCreate);
  
  return (TableInfo) _db.exec(tableInfoSql);
  }