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 ; }
generate a prepared SELECT - Statement for the Class described by cld