diff options
| author | Brian S. O'Neill <bronee@gmail.com> | 2008-01-09 20:19:32 +0000 | 
|---|---|---|
| committer | Brian S. O'Neill <bronee@gmail.com> | 2008-01-09 20:19:32 +0000 | 
| commit | 102f7ddbc7663cddf2feeb37847c63bdd5744cc1 (patch) | |
| tree | 7e5ad041149dcd2eef62daf18d9b7076ddbe23fb | |
| parent | 04d6ac74e3ce983a2e701fa84f2ab95c486e97d7 (diff) | |
Added javadoc example.
| -rw-r--r-- | src/main/java/com/amazon/carbonado/filter/Filter.java | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/filter/Filter.java b/src/main/java/com/amazon/carbonado/filter/Filter.java index be70ff1..aaf00f6 100644 --- a/src/main/java/com/amazon/carbonado/filter/Filter.java +++ b/src/main/java/com/amazon/carbonado/filter/Filter.java @@ -595,6 +595,14 @@ public abstract class Filter<S extends Storable> implements Appender {       * "homeAddress" which joins to Address. An Address filter, "city = ?", as
       * joined from Person's "homeAddress", becomes "homeAddress.city = ?".
       *
 +     * <pre>
 +     * Filter<Address> addressFilter = Filter.filterFor(Address.class, "city = ?");
 +     * Filter<Person> personFilter = addressFilter.asJoinedFrom(Person.class, "homeAddress");
 +     *
 +     * // Equivalent filter:
 +     * Filter<Person> personFilter2 = Filter.filterFor(Person.class, "homeAddress.city = ?");
 +     * </pre>
 +     *
       * @param type type of T which contains join property
       * @param joinProperty property of T which joins to this Filter's Storable type
       * @return filter for type T
  | 
