org.apache.james.mailbox.jpa.mail.model
Class JPAProperty

java.lang.Object
  extended by org.apache.james.mailbox.store.mail.model.AbstractComparableProperty<JPAProperty>
      extended by org.apache.james.mailbox.jpa.mail.model.JPAProperty
All Implemented Interfaces:
Comparable<JPAProperty>, Property

@Entity(name="Property")
public class JPAProperty
extends AbstractComparableProperty<JPAProperty>


Constructor Summary
JPAProperty()
          Deprecated. enhancement only
JPAProperty(JPAProperty property)
          Create a copy of the give JPAProperty
JPAProperty(Property property, int order)
          Constructs a property cloned from the given.
JPAProperty(String namespace, String localName, String value, int order)
          Constructs a property.
 
Method Summary
 boolean equals(Object obj)
           
 String getLocalName()
          Gets the namespace for the name.
 String getNamespace()
          Gets the local part of the name of the property.
 int getOrder()
          Gets the order of this property.
 String getValue()
          Gets the value for this property.
 int hashCode()
           
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class org.apache.james.mailbox.store.mail.model.AbstractComparableProperty
compareTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPAProperty

@Deprecated
public JPAProperty()
Deprecated. enhancement only


JPAProperty

public JPAProperty(String namespace,
                   String localName,
                   String value,
                   int order)
Constructs a property.

Parameters:
localName - not null
namespace - not null
value - not null

JPAProperty

public JPAProperty(Property property,
                   int order)
Constructs a property cloned from the given.

Parameters:
property - not null

JPAProperty

public JPAProperty(JPAProperty property)
Create a copy of the give JPAProperty

Parameters:
property -
Method Detail

getOrder

public int getOrder()
Gets the order of this property.

Specified by:
getOrder in class AbstractComparableProperty<JPAProperty>
Returns:
order of this property

getLocalName

public String getLocalName()
Gets the namespace for the name.

Returns:
not null

getNamespace

public String getNamespace()
Gets the local part of the name of the property.

Returns:
not null

getValue

public String getValue()
Gets the value for this property.

Returns:
not null

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Object
Returns:
a String representation of this object.


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.