net.sf.borg.model.entity
Class Memo

java.lang.Object
  extended by net.sf.borg.model.entity.KeyedEntity<T>
      extended by net.sf.borg.model.entity.EncryptableEntity<Memo>
          extended by net.sf.borg.model.entity.Memo
All Implemented Interfaces:
Serializable

public class Memo
extends EncryptableEntity<Memo>

Memo Entity. A Memo is a simple text entry keyed by a memo name. It remains simple since it corresponds to the simple memo objects that can be synced to a palm pilot.

See Also:
Serialized Form

Constructor Summary
Memo()
           
 
Method Summary
 boolean canEqual(Object other)
           
protected  Memo clone()
           
 void decrypt(String password)
          decrypt the entity.
 void encrypt(String password)
          encrypt the entity.
 boolean equals(Object o)
           
 Date getCreated()
           
 String getMemoName()
           
 String getMemoText()
           
 Date getUpdated()
           
 int hashCode()
           
 void setCreated(Date Created)
           
 void setMemoName(String MemoName)
           
 void setMemoText(String MemoText)
           
 void setUpdated(Date Updated)
           
 String toString()
           
 
Methods inherited from class net.sf.borg.model.entity.EncryptableEntity
isEncrypted, setEncrypted
 
Methods inherited from class net.sf.borg.model.entity.KeyedEntity
copy, getKey, setKey
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Memo

public Memo()
Method Detail

clone

protected Memo clone()
Overrides:
clone in class KeyedEntity<Memo>

decrypt

public void decrypt(String password)
             throws Exception
Description copied from class: EncryptableEntity
decrypt the entity. This will use the password to get the borg encryption key from the keystore and then will decrypt those fields in the entity that are encrypted. the entity encrypted flag will be set to false.

Specified by:
decrypt in class EncryptableEntity<Memo>
Parameters:
password - the keystore password
Throws:
Exception

encrypt

public void encrypt(String password)
             throws Exception
Description copied from class: EncryptableEntity
encrypt the entity. This will use the password to get the borg encryption key from the keystore and then will encrypt those fields in the entity that are encryptable. the entity encrypted flag will be set to true.

Specified by:
encrypt in class EncryptableEntity<Memo>
Parameters:
password - the keystore password
Throws:
Exception

getMemoName

public String getMemoName()

getMemoText

public String getMemoText()

getCreated

public Date getCreated()

getUpdated

public Date getUpdated()

setMemoName

public void setMemoName(String MemoName)

setMemoText

public void setMemoText(String MemoText)

setCreated

public void setCreated(Date Created)

setUpdated

public void setUpdated(Date Updated)

toString

public String toString()
Overrides:
toString in class EncryptableEntity<Memo>

equals

public boolean equals(Object o)
Overrides:
equals in class EncryptableEntity<Memo>

canEqual

public boolean canEqual(Object other)
Overrides:
canEqual in class EncryptableEntity<Memo>

hashCode

public int hashCode()
Overrides:
hashCode in class EncryptableEntity<Memo>


Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae