net.java.ao
Class DBParam

java.lang.Object
  extended by net.java.ao.DBParam

public class DBParam
extends Object

Class designed to encapsulate a single field/value parameter to be passed to EntityManager.create(Class, DBParam...). This class is literally nothing more than a value container. There is no checking done to ensure that the values match the type of the field. Thus the responsibility of value/field matching lies with the developer.

Author:
Daniel Spiewak

Constructor Summary
DBParam(String field, Object value)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getField()
           
 Object getValue()
           
 int hashCode()
           
 void setField(String field)
           
 void setValue(Object value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBParam

public DBParam(String field,
               Object value)
Method Detail

getField

public String getField()

setField

public void setField(String field)

getValue

public Object getValue()

setValue

public void setValue(Object value)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2007-2011. All Rights Reserved.