Subversion Repositories DevTools

Rev

Rev 7078 | Rev 7080 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7078 Rev 7079
Line 4449... Line 4449...
4449
     * @param mRtagId - Release we are building
4449
     * @param mRtagId - Release we are building
4450
     * @param mBuildOrder - Ordered list of PackageVersions that we plan to build
4450
     * @param mBuildOrder - Ordered list of PackageVersions that we plan to build
4451
     * @throws Exception 
4451
     * @throws Exception 
4452
     * @throws SQLException 
4452
     * @throws SQLException 
4453
     */
4453
     */
4454
    public void reportPlan(int mRtagId, List<Package> mBuildOrder) throws SQLException, Exception {
4454
    public void reportPlan(int mRtagId, ArrayList<PlannedPackage> mBuildOrder) throws SQLException, Exception {
4455
        mLogger.debug("reportPlan {}", mRtagId);
4455
        mLogger.debug("reportPlan {}", mRtagId);
4456
 
4456
 
4457
        if ( mUseDatabase )
4457
        if ( mUseDatabase )
4458
        {
4458
        {
4459
            try
4459
            try
4460
            {
4460
            {
4461
                Iterator<Package> it = mBuildOrder.iterator();
4461
                Iterator<PlannedPackage> it = mBuildOrder.iterator();
4462
                int fragment = 0;
4462
                int fragment = 0;
4463
                CallableStatement stmt = mConnection.prepareCall( "call PK_BUILDAPI.set_build_plan(?,?,?)" );
4463
                CallableStatement stmt = mConnection.prepareCall( "call PK_BUILDAPI.set_build_plan(?,?,?)" );
4464
 
4464
 
4465
                do {
4465
                do {
4466
                    //
4466
                    //
Line 4471... Line 4471...
4471
                    StringBuilder pvList = new StringBuilder();
4471
                    StringBuilder pvList = new StringBuilder();
4472
                    String joiner = "";
4472
                    String joiner = "";
4473
 
4473
 
4474
                    while ( pvList.length() < 3000  && it.hasNext() )
4474
                    while ( pvList.length() < 3000  && it.hasNext() )
4475
                    {
4475
                    {
4476
                        Package p = it.next();
4476
                        PlannedPackage p = it.next();
4477
                        pvList.append(joiner);
4477
                        pvList.append(joiner);
4478
                        pvList.append(p.mId);
4478
                        pvList.append(p.mPkg.mId);
4479
                        joiner = ",";
4479
                        joiner = ",";
4480
                    }
4480
                    }
4481
 
4481
 
4482
                    //  Terminate if we have nothing to add and its not the first pass
4482
                    //  Terminate if we have nothing to add and its not the first pass
4483
                    if (pvList.length() <= 0 && fragment != 0)
4483
                    if (pvList.length() <= 0 && fragment != 0)