public SqlStatement getPreparedUpdateStatement ( ClassDescriptor cld ) { SqlForClass sfc = getSqlForClass ( cld ) ; SqlStatement result = sfc . getUpdateSql ( ) ; if ( result == null ) { ProcedureDescriptor pd = cld . getUpdateProcedure ( ) ; if ( pd == null ) { result = new SqlUpdateStatement ( cld , logger ) ; } else { result = new SqlProcedureStatement ( pd , logger ) ; } // set the sql string sfc . setUpdateSql ( result ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "SQL:" + result . getStatement ( ) ) ; } } return result ; }
generate a prepared UPDATE - Statement for the Class described by cld