org.modeshape.connector.store.jpa.util
Class StoreOptionEntity
java.lang.Object
org.modeshape.connector.store.jpa.util.StoreOptionEntity
@Entity(name="MODE_OPTIONS")
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
.
StoreOptionEntity
protected StoreOptionEntity()
StoreOptionEntity
public StoreOptionEntity(String name,
String value)
- Parameters:
name
- the name of the option; may not be null or emptyvalue
- 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
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-2010 JBoss, a division of Red Hat. All Rights Reserved.