This is an automated email from the ASF dual-hosted git repository.

doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git


The following commit(s) were added to refs/heads/master by this push:
     new 0eccef95 EMPIREDB-459 RecordData function renamed from get(index...) 
to getValue(index...)
0eccef95 is described below

commit 0eccef95811d5693ce7953859e3832ab8cd2ee59
Author: Rainer Döbele <[email protected]>
AuthorDate: Tue Mar 25 21:04:33 2025 +0100

    EMPIREDB-459
    RecordData function renamed from get(index...) to getValue(index...)
---
 .../java/org/apache/empire/data/RecordData.java    | 18 ++++++------
 .../apache/empire/data/bean/BeanRecordProxy.java   |  2 +-
 .../org/apache/empire/data/list/DataListEntry.java | 32 +++++++++++-----------
 .../java/org/apache/empire/db/DBRecordData.java    | 32 +++++++++++-----------
 4 files changed, 42 insertions(+), 42 deletions(-)

diff --git a/empire-db/src/main/java/org/apache/empire/data/RecordData.java 
b/empire-db/src/main/java/org/apache/empire/data/RecordData.java
index a1057791..9196ff5e 100644
--- a/empire-db/src/main/java/org/apache/empire/data/RecordData.java
+++ b/empire-db/src/main/java/org/apache/empire/data/RecordData.java
@@ -58,27 +58,27 @@ public interface RecordData
     ColumnExpr getColumn(int i);
 
     /**
-     * returns the value of the field at the given index position 
-     * Indexed operations provide better performance for bulk processing 
compared to getValue(ColumnExpr)  
-     * @param index the field index for which to return the value
-     * @return the record value for the given field
+     * Returns the raw field value based on the field index.
+     * Indexed operations provide better performance for bulk processing 
compared to get(ColumnExpr)  
+     * @param index the field index
+     * @return the raw field value
      */
     Object getValue(int index);
     
     /**
      * returns the record value for a particular column 
-     * @param column the column for which to return the value
+     * @param index the field index for which to return the value
+     * @param valueType the desired value type
      * @return the record value for the given column
      */
-    Object get(ColumnExpr column);
+    <V> V getValue(int index, Class<V> valueType);
     
     /**
      * returns the record value for a particular column 
-     * @param index the field index for which to return the value
-     * @param valueType the desired value type
+     * @param column the column for which to return the value
      * @return the record value for the given column
      */
-    <V> V get(int index, Class<V> valueType);
+    Object get(ColumnExpr column);
     
     /**
      * returns the record value for a particular column 
diff --git 
a/empire-db/src/main/java/org/apache/empire/data/bean/BeanRecordProxy.java 
b/empire-db/src/main/java/org/apache/empire/data/bean/BeanRecordProxy.java
index 959bc20e..8b3a204f 100644
--- a/empire-db/src/main/java/org/apache/empire/data/bean/BeanRecordProxy.java
+++ b/empire-db/src/main/java/org/apache/empire/data/bean/BeanRecordProxy.java
@@ -227,7 +227,7 @@ public class BeanRecordProxy<T> implements Record
     }
 
     @Override
-    public final <V> V get(int index, Class<V> valueType)
+    public final <V> V getValue(int index, Class<V> valueType)
     {
         return get(getColumn(index), valueType);
     }
diff --git 
a/empire-db/src/main/java/org/apache/empire/data/list/DataListEntry.java 
b/empire-db/src/main/java/org/apache/empire/data/list/DataListEntry.java
index 257c9647..29d12ad3 100644
--- a/empire-db/src/main/java/org/apache/empire/data/list/DataListEntry.java
+++ b/empire-db/src/main/java/org/apache/empire/data/list/DataListEntry.java
@@ -213,9 +213,9 @@ public class DataListEntry implements RecordData, 
Serializable
     }
     
     /**
-     * Returns a value based on a field index.
+     * Returns the raw field value based on the field index.
      * @param index the field index
-     * @return the field value
+     * @return the raw field value
      */
     @Override
     public Object getValue(int index)
@@ -232,7 +232,7 @@ public class DataListEntry implements RecordData, 
Serializable
      * @return the record value for the given column
      */
     @Override
-    public <V> V get(int index, Class<V> valueType)
+    public <V> V getValue(int index, Class<V> valueType)
     {
         return ObjectUtils.convertColumnValue(getColumn(index), 
getValue(index), valueType);
     }
@@ -246,7 +246,7 @@ public class DataListEntry implements RecordData, 
Serializable
     @Override
     public final <V> V get(ColumnExpr column, Class<V> valueType)
     {
-        return get(getFieldIndex(column), valueType);
+        return getValue(getFieldIndex(column), valueType);
     }
     
     /**
@@ -258,7 +258,7 @@ public class DataListEntry implements RecordData, 
Serializable
     @Override
     public final Object get(ColumnExpr column)
     {
-        return get(getFieldIndex(column), Object.class);
+        return getValue(getFieldIndex(column), Object.class);
     }
     
     /**
@@ -314,7 +314,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public final String getString(int index)
     {
         // return ObjectUtils.getString(getValue(index));
-        return get(index, String.class);
+        return getValue(index, String.class);
     }
 
     /**
@@ -339,7 +339,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public final int getInt(int index)
     {
         // return ObjectUtils.getInteger(getValue(index));
-        Integer value = get(index, Integer.class); 
+        Integer value = getValue(index, Integer.class); 
         return (value!=null ? value : 0) ;
     }
     
@@ -365,7 +365,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public final long getLong(int index)
     {
         // return ObjectUtils.getLong(getValue(index));
-        Long value = get(index, Long.class);
+        Long value = getValue(index, Long.class);
         return (value!=null ? value : 0l) ;
     }
     
@@ -391,7 +391,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public double getDouble(int index)
     {
         // return ObjectUtils.getDouble(getValue(index));
-        Double value = get(index, Double.class);
+        Double value = getValue(index, Double.class);
         return (value!=null ? value : 0.0d) ;
     }
 
@@ -417,7 +417,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public final BigDecimal getDecimal(int index)
     {
         // return ObjectUtils.getDecimal(getValue(index));
-        return get(index, BigDecimal.class);
+        return getValue(index, BigDecimal.class);
     }
 
     /**
@@ -442,7 +442,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public final boolean getBoolean(int index)
     {
         // return ObjectUtils.getBoolean(getValue(index));
-        Boolean value = get(index, Boolean.class);
+        Boolean value = getValue(index, Boolean.class);
         return (value!=null ? value : false); 
     }
     
@@ -468,7 +468,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public final Date getDate(int index)
     {
         // return ObjectUtils.getDate(getValue(index));
-        return get(index, Date.class);
+        return getValue(index, Date.class);
     }
     
     /**
@@ -490,7 +490,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public final Timestamp getTimestamp(int index)
     {
         // return ObjectUtils.getTimestamp(getValue(index));
-        return get(index, Timestamp.class);
+        return getValue(index, Timestamp.class);
     }
 
     /**
@@ -512,7 +512,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public final LocalDate getLocalDate(int index)
     {
         // return ObjectUtils.getLocalDate(getValue(index));
-        return get(index, LocalDate.class);
+        return getValue(index, LocalDate.class);
     }
     
     /**
@@ -537,7 +537,7 @@ public class DataListEntry implements RecordData, 
Serializable
     public final LocalDateTime getLocalDateTime(int index)
     {
         // return ObjectUtils.getLocalDateTime(getValue(index));
-        return get(index, LocalDateTime.class);
+        return getValue(index, LocalDateTime.class);
     }
     
     /**
@@ -564,7 +564,7 @@ public class DataListEntry implements RecordData, 
Serializable
      */
     public final <T extends Enum<?>> T getEnum(int index, Class<T> enumType)
     {   
-        return get(index, enumType);
+        return getValue(index, enumType);
     }
 
     /**
diff --git a/empire-db/src/main/java/org/apache/empire/db/DBRecordData.java 
b/empire-db/src/main/java/org/apache/empire/db/DBRecordData.java
index 944de1a9..d182282d 100644
--- a/empire-db/src/main/java/org/apache/empire/db/DBRecordData.java
+++ b/empire-db/src/main/java/org/apache/empire/db/DBRecordData.java
@@ -69,9 +69,9 @@ public abstract class DBRecordData extends DBObject
     public abstract Document getXmlDocument();
 
     /**
-     * Returns a value based on a field index.
+     * Returns the raw field value based on the field index.
      * @param index the field index
-     * @return the field value
+     * @return the raw field value
      */
     @Override
     public abstract Object getValue(int index);
@@ -83,7 +83,7 @@ public abstract class DBRecordData extends DBObject
      * @return the record value for the given column
      */
     @Override
-    public <V> V get(int index, Class<V> valueType)
+    public <V> V getValue(int index, Class<V> valueType)
     {
         return ObjectUtils.convertColumnValue(getColumn(index), 
getValue(index), valueType);
     }
@@ -97,7 +97,7 @@ public abstract class DBRecordData extends DBObject
     @Override
     public final <V> V get(ColumnExpr column, Class<V> valueType)
     {
-        return get(getFieldIndex(column), valueType);
+        return getValue(getFieldIndex(column), valueType);
     }
     
     /**
@@ -109,7 +109,7 @@ public abstract class DBRecordData extends DBObject
     @Override
     public final Object get(ColumnExpr column)
     {
-        return get(getFieldIndex(column), Object.class);
+        return getValue(getFieldIndex(column), Object.class);
     }
     
     /**
@@ -165,7 +165,7 @@ public abstract class DBRecordData extends DBObject
     public final String getString(int index)
     {
         // return ObjectUtils.getString(getValue(index));
-        return get(index, String.class);
+        return getValue(index, String.class);
     }
 
     /**
@@ -190,7 +190,7 @@ public abstract class DBRecordData extends DBObject
     public final int getInt(int index)
     {
         // return ObjectUtils.getInteger(getValue(index));
-        Integer value = get(index, Integer.class); 
+        Integer value = getValue(index, Integer.class); 
         return (value!=null ? value : 0) ;
     }
     
@@ -216,7 +216,7 @@ public abstract class DBRecordData extends DBObject
     public final long getLong(int index)
     {
         // return ObjectUtils.getLong(getValue(index));
-        Long value = get(index, Long.class);
+        Long value = getValue(index, Long.class);
         return (value!=null ? value : 0l) ;
     }
     
@@ -242,7 +242,7 @@ public abstract class DBRecordData extends DBObject
     public double getDouble(int index)
     {
         // return ObjectUtils.getDouble(getValue(index));
-        Double value = get(index, Double.class);
+        Double value = getValue(index, Double.class);
         return (value!=null ? value : 0.0d) ;
     }
 
@@ -268,7 +268,7 @@ public abstract class DBRecordData extends DBObject
     public final BigDecimal getDecimal(int index)
     {
         // return ObjectUtils.getDecimal(getValue(index));
-        return get(index, BigDecimal.class);
+        return getValue(index, BigDecimal.class);
     }
 
     /**
@@ -293,7 +293,7 @@ public abstract class DBRecordData extends DBObject
     public final boolean getBoolean(int index)
     {
         // return ObjectUtils.getBoolean(getValue(index));
-        Boolean value = get(index, Boolean.class);
+        Boolean value = getValue(index, Boolean.class);
         return (value!=null ? value : false); 
     }
     
@@ -319,7 +319,7 @@ public abstract class DBRecordData extends DBObject
     public final Date getDate(int index)
     {
         // return ObjectUtils.getDate(getValue(index));
-        return get(index, Date.class);
+        return getValue(index, Date.class);
     }
     
     /**
@@ -359,7 +359,7 @@ public abstract class DBRecordData extends DBObject
     public final Timestamp getTimestamp(int index)
     {
         // return ObjectUtils.getTimestamp(getValue(index));
-        return get(index, Timestamp.class);
+        return getValue(index, Timestamp.class);
     }
 
     /**
@@ -381,7 +381,7 @@ public abstract class DBRecordData extends DBObject
     public final LocalDate getLocalDate(int index)
     {
         // return ObjectUtils.getLocalDate(getValue(index));
-        return get(index, LocalDate.class);
+        return getValue(index, LocalDate.class);
     }
     
     /**
@@ -406,7 +406,7 @@ public abstract class DBRecordData extends DBObject
     public final LocalDateTime getLocalDateTime(int index)
     {
         // return ObjectUtils.getLocalDateTime(getValue(index));
-        return get(index, LocalDateTime.class);
+        return getValue(index, LocalDateTime.class);
     }
     
     /**
@@ -433,7 +433,7 @@ public abstract class DBRecordData extends DBObject
      */
     public final <T extends Enum<?>> T getEnum(int index, Class<T> enumType)
     {   
-        return get(index, enumType);
+        return getValue(index, enumType);
     }
 
     /**

Reply via email to