001 package net.databinder.models.hib;
002
003 import org.hibernate.Query;
004
005 /**
006 * Binds a query's parameters to the properties of an object, as needed.
007 *
008 * @author Jonathan
009 */
010 public class PropertyQueryBinder extends AbstractPropertyQueryBinder {
011
012 private static final long serialVersionUID = -5670443203499179555L;
013
014 private final Object object;
015
016 /**
017 * @param object
018 * The object to bind properties of
019 */
020 public PropertyQueryBinder(final Object object) {
021 this.object = object;
022 }
023
024 /**
025 * @param query
026 * The query to bind
027 */
028 public void bind(final Query query) {
029 bind(query, object);
030 }
031 }