org.jboss.dna.connector.store.jpa.util
Class StoreOptionEntity

java.lang.Object
  extended by org.jboss.dna.connector.store.jpa.util.StoreOptionEntity

public class StoreOptionEntity
extends Object

An option for the store. This is typically used to save store-specific values.

This JPA entity is always added to the Ejb3Configuration in the JpaSource, and therefore should not be added to the configuration by a Model.


Constructor Summary
StoreOptionEntity(String name)
           
StoreOptionEntity(String name, String value)
           
 
Method Summary
 boolean equals(Object obj)
          
 String getName()
           
 String getValue()
           
 int hashCode()
          
 void setName(String name)
           
 void setValue(String value)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StoreOptionEntity

public StoreOptionEntity(String name,
                         String value)
Parameters:
name - the name of the option; may not be null or empty
value - the value of the option; may be null

StoreOptionEntity

public StoreOptionEntity(String name)
Parameters:
name - the name of the option; may not be null or empty
Method Detail

getName

public String getName()
Returns:
name

setName

public void setName(String name)
Parameters:
name - Sets name to the specified value.

getValue

public String getValue()
Returns:
value

setValue

public void setValue(String value)
Parameters:
value - Sets value to the specified value.

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.