We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 557c0a7 commit cbd1b14Copy full SHA for cbd1b14
1 file changed
src/main/java/com/odoojava/api/Row.java
@@ -67,7 +67,19 @@ public int getID(){
67
Object idValue = get("id");
68
return Integer.parseInt(idValue.toString());
69
}
70
-
+
71
+ /**
72
+ * Returns the database string field of the object/row.
73
+ * @return string
74
+ */
75
+ public String getString(String fieldName){
76
+ String res=null;
77
+ if ( get(fieldName).toString()!= null){
78
+ res = get(fieldName).toString();
79
+ }
80
+ return res;
81
82
83
/**
84
* Add a listener to be notified when a row is being changed
85
* @param listener
0 commit comments