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 a33d50ee EMPIREDB-452 DBCmdParam: reference object property added
a33d50ee is described below

commit a33d50ee2e145c8170519cee5cfecda6758ff690
Author: Rainer Döbele <[email protected]>
AuthorDate: Fri Jan 3 13:25:20 2025 +0100

    EMPIREDB-452
    DBCmdParam: reference object property added
---
 .../main/java/org/apache/empire/db/DBCmdParam.java  | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/empire-db/src/main/java/org/apache/empire/db/DBCmdParam.java 
b/empire-db/src/main/java/org/apache/empire/db/DBCmdParam.java
index 96c71db2..9dd47ea6 100644
--- a/empire-db/src/main/java/org/apache/empire/db/DBCmdParam.java
+++ b/empire-db/src/main/java/org/apache/empire/db/DBCmdParam.java
@@ -37,6 +37,7 @@ public class DBCmdParam extends DBExpr
     protected DBCommand cmd;
     protected DataType  type;
     protected Object    value;
+    protected Object    reference;
 
     /**
      * Protected constructor used e.g. by DBCommand.addParam(...) 
@@ -173,4 +174,24 @@ public class DBCmdParam extends DBExpr
     {
         this.value = getCmdParamValue(value);
     }
+
+    /**
+     * Returns the reference object associated with this param
+     * @return the reference object or null
+     */
+    public Object getReference()
+    {
+        return reference;
+    }
+
+    /**
+     * Sets a reference object associated with this param
+     * @param reference the reference object
+     * @return this object 
+     */
+    public DBCmdParam setReference(Object reference)
+    {
+        this.reference = reference;
+        return this;
+    }
 }

Reply via email to