public SelectStatement getPreparedSelectStatement ( Query query , ClassDescriptor cld ) { SelectStatement sql = new SqlSelectStatement ( m_platform , cld , query , logger ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "SQL:" + sql . getStatement ( ) ) ; } return sql ; }
generate a select - Statement according to query