Skip to content

Commit 4187be8

Browse files
committed
Add source accessors to adapter types.
1 parent e09edae commit 4187be8

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
subprojects {
1616
group = 'org.httprpc'
17-
version = '4.9'
17+
version = '4.9.1'
1818

1919
apply plugin: 'java-library'
2020

kilo-client/src/main/java/org/httprpc/kilo/beans/BeanAdapter.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,16 @@ public BeanAdapter(Object bean) {
472472
properties = getProperties(type);
473473
}
474474

475+
/**
476+
* Returns the bean instance.
477+
*
478+
* @return
479+
* The bean instance.
480+
*/
481+
public Object getBean() {
482+
return bean;
483+
}
484+
475485
/**
476486
* Gets a property value.
477487
* {@inheritDoc}

kilo-client/src/main/java/org/httprpc/kilo/sql/ResultSetAdapter.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,16 @@ public Map<String, Object> next() {
103103
}
104104
}
105105

106+
/**
107+
* Returns the result set.
108+
*
109+
* @return
110+
* The result set.
111+
*/
112+
public ResultSet getResultSet() {
113+
return resultSet;
114+
}
115+
106116
/**
107117
* <p>Returns an iterator over the results.</p>
108118
*

kilo-client/src/main/java/org/httprpc/kilo/xml/ElementAdapter.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ public ElementAdapter(Element element) {
7171
this.element = element;
7272
}
7373

74+
/**
75+
* Returns the source element.
76+
*
77+
* @return
78+
* The source element.
79+
*/
80+
public Element getElement() {
81+
return element;
82+
}
83+
7484
/**
7585
* <p>Retrieves a value associated with the source element.</p>
7686
*

0 commit comments

Comments
 (0)