code: public SelectStatement getPreparedSelectByPkStatement(ClassDescriptor cld)
      {
          SelectStatement sql;
          SqlForClass sfc = getSqlForClass(cld);
          sql = sfc.getSelectByPKSql();
          if(sql == null)
          {
              sql = new SqlSelectByPkStatement(m_platform, cld, logger);
  
              // set the sql string
              sfc.setSelectByPKSql(sql);
  
              if(logger.isDebugEnabled())
              {
                  logger.debug("SQL:" + sql.getStatement());
              }
          }
          return sql;
      }
docs: generate a prepared SELECT-Statement for the Class
  described by cld
  @param cld the ClassDescriptor