Skip to content

Commit 09f112b

Browse files
wezellclaude
andcommitted
fix(identifier-base-type): resolve compilation errors in backfill job
- Make hasPendingRows() public — called from Task260331 in a different package - Fix DotConnect.executeUpdate() arg order: connection comes first, not second - Remove unused @WrapInTransaction import (replaced by manual connection management) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c099d77 commit 09f112b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

dotCMS/src/main/java/com/dotmarketing/quartz/job/PopulateIdentifierBaseTypeJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static void fireJob() {
132132
* that the populate query can actually complete. Orphaned rows (asset_subtype with no
133133
* matching structure entry) are excluded so they cannot keep the job running indefinitely.
134134
*/
135-
static boolean hasPendingRows() {
135+
public static boolean hasPendingRows() {
136136
try {
137137
final List<?> result = new DotConnect()
138138
.setSQL(PENDING_ROWS_QUERY)

dotCMS/src/main/java/com/dotmarketing/quartz/job/PopulateIdentifierBaseTypeUtil.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.dotmarketing.quartz.job;
22

3-
import com.dotcms.business.WrapInTransaction;
43
import com.dotmarketing.common.db.DotConnect;
54
import com.dotmarketing.db.DbConnectionFactory;
65
import com.dotmarketing.exception.DotDataException;
@@ -116,7 +115,7 @@ public int populate() {
116115
private int processBatch() {
117116
try(Connection conn = DbConnectionFactory.getDataSource().getConnection()) {
118117
conn.setAutoCommit(false);
119-
int result= new DotConnect().executeUpdate(UPDATE_BATCH, conn);
118+
int result = new DotConnect().executeUpdate(conn, UPDATE_BATCH);
120119
conn.commit();
121120
return result;
122121
} catch (final Exception e) {

0 commit comments

Comments
 (0)