diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-24 08:39:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-24 18:08:06 +0200 |
commit | 5fcc0a0c65a1856a1fb9930b0c64bedeb0a2878a (patch) | |
tree | a7bc9bc51b599a4a363ee655d7710577aa45ccac | |
parent | 3e831187387c7b3fc584c1164c4497a140911f3c (diff) |
cid#1608090 PA: Public Attribute
Change-Id: I8ea0d65e01affa7b2a7b787bebcf5bc2ca3b63f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173839
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
-rw-r--r-- | wizards/com/sun/star/wizards/db/RecordParser.java | 12 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/report/DBColumn.java | 4 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/report/ReportTextDocument.java | 4 |
3 files changed, 15 insertions, 5 deletions
diff --git a/wizards/com/sun/star/wizards/db/RecordParser.java b/wizards/com/sun/star/wizards/db/RecordParser.java index 4c93a0364a58..53c37032200e 100644 --- a/wizards/com/sun/star/wizards/db/RecordParser.java +++ b/wizards/com/sun/star/wizards/db/RecordParser.java @@ -46,7 +46,7 @@ public class RecordParser extends QueryMetaData private XComponent xRowSetComponent; private XInteractionHandler xInteraction; public FieldColumn[] GroupFieldColumns; - public FieldColumn[] RecordFieldColumns; + private FieldColumn[] RecordFieldColumns; /** Creates a new instance of RecordParser */ public RecordParser(XMultiServiceFactory _xMSF) @@ -55,6 +55,16 @@ public class RecordParser extends QueryMetaData getInterfaces(); } + public FieldColumn[] getRecordFieldColumns() + { + return RecordFieldColumns; + } + + public void setRecordFieldColumns(FieldColumn[] recordFieldColumns) + { + RecordFieldColumns = recordFieldColumns; + } + private void getInterfaces() { try diff --git a/wizards/com/sun/star/wizards/report/DBColumn.java b/wizards/com/sun/star/wizards/report/DBColumn.java index 40c01e51490b..e53b0649d271 100644 --- a/wizards/com/sun/star/wizards/report/DBColumn.java +++ b/wizards/com/sun/star/wizards/report/DBColumn.java @@ -79,9 +79,9 @@ public class DBColumn this.CurDBMetaData = _CurDBMetaData; this.CurRecordTable = _CurRecordTable; bIsGroupColumn = false; - if (CurDBMetaData.RecordFieldColumns != null) + if (CurDBMetaData.getRecordFieldColumns() != null) { - CurDBField = CurDBMetaData.getFieldColumnByFieldName(CurDBMetaData.RecordFieldColumns[i].getFieldName()); + CurDBField = CurDBMetaData.getFieldColumnByFieldName(CurDBMetaData.getRecordFieldColumns()[i].getFieldName()); } else { diff --git a/wizards/com/sun/star/wizards/report/ReportTextDocument.java b/wizards/com/sun/star/wizards/report/ReportTextDocument.java index 9d2fa7434b2c..b7f7c2a04de9 100644 --- a/wizards/com/sun/star/wizards/report/ReportTextDocument.java +++ b/wizards/com/sun/star/wizards/report/ReportTextDocument.java @@ -472,14 +472,14 @@ class ReportTextDocument extends com.sun.star.wizards.text.TextDocument implemen DelFieldName }); CurDBMetaData.setRecordFieldNames(aNewList); - CurDBMetaData.RecordFieldColumns = removeFieldColumnByFieldName(DelFieldName, CurDBMetaData.RecordFieldColumns); + CurDBMetaData.setRecordFieldColumns(removeFieldColumnByFieldName(DelFieldName, CurDBMetaData.getRecordFieldColumns())); CurDBMetaData.setFieldColumns(removeFieldColumnByFieldName(DelFieldName, CurDBMetaData.getFieldColumns())); } i--; } } - java.util.Arrays.sort(CurDBMetaData.RecordFieldColumns, this); + java.util.Arrays.sort(CurDBMetaData.getRecordFieldColumns(), this); } catch (Exception exception) { |