#345 - Expose Query.getId() and Query.getBeanType() methods ... (previously on SpiQuery)

This commit is contained in:
Robin Bygrave
2015-07-20 12:24:56 +12:00
parent 1a6f68edd3
commit f45d240682
3 changed files with 15 additions and 15 deletions
+11
View File
@@ -866,6 +866,11 @@ public interface Query<T> extends Serializable {
*/
Query<T> setId(Object id);
/**
* Return the Id value.
*/
Object getId();
/**
* Add additional clause(s) to the where clause.
* <p>
@@ -1223,4 +1228,10 @@ public interface Query<T> extends Serializable {
* Set root table alias.
*/
Query<T> alias(String alias);
/**
* Return the type of beans being queried.
*/
Class<T> getBeanType();
}