Package com.proxemo.todo4.bom
Class ToDoContact
- java.lang.Object
-
- com.proxemo.todo4.bom.ToDoVersionedIdentifiable
-
- com.proxemo.todo4.bom.ToDoContact
-
- All Implemented Interfaces:
java.io.Serializable
public class ToDoContact extends ToDoVersionedIdentifiable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ToDoContact()
ToDoContact(ToDoContact c)
ToDoContact(java.lang.Boolean active, java.lang.Long id, java.lang.Integer version, java.lang.String name, java.lang.String phone, java.lang.String email, java.lang.String jobRole, java.lang.String keyword, java.lang.String description, boolean favorite)
ToDoContact(java.lang.String name, java.lang.String phone, java.lang.String email, java.lang.String jobRole, java.lang.String keyword, java.lang.String description, boolean active)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
anonymize()
java.lang.String
getDescription()
java.lang.String
getEmail()
java.lang.Long
getId()
Method returning a canonical id of the object.java.lang.String
getJobRole()
java.lang.String
getKeyword()
java.lang.String
getName()
java.lang.String
getPhone()
java.lang.Integer
getVersion()
Method returning the version of the instancejava.lang.Boolean
isActive()
Method that returns whether the instance is active or not (means: logically deleted)boolean
isFavorite()
void
setActive(java.lang.Boolean active)
Method setting the active flag.void
setDescription(java.lang.String description)
void
setEmail(java.lang.String email)
void
setFavorite(boolean favorite)
void
setId(java.lang.Long id)
Method setting the canonical id of the object.void
setInactive()
Method to delete an object logically.void
setJobRole(java.lang.String jobRole)
void
setKeyword(java.lang.String keyword)
void
setName(java.lang.String name)
void
setPhone(java.lang.String phone)
void
setToActive()
Method to undelete an object logically.void
setVersion(java.lang.Integer version)
Method setting the version of the instance, Should under normal circumstances not be manually invoked.java.lang.String
toString()
-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
getActiveAsIcon, getAnonymizeString, getCanonicalId, isTransient, setToTransient
-
-
-
-
Constructor Detail
-
ToDoContact
public ToDoContact(java.lang.String name, java.lang.String phone, java.lang.String email, java.lang.String jobRole, java.lang.String keyword, java.lang.String description, boolean active)
-
ToDoContact
public ToDoContact()
-
ToDoContact
public ToDoContact(java.lang.Boolean active, java.lang.Long id, java.lang.Integer version, java.lang.String name, java.lang.String phone, java.lang.String email, java.lang.String jobRole, java.lang.String keyword, java.lang.String description, boolean favorite)
-
ToDoContact
public ToDoContact(ToDoContact c)
-
-
Method Detail
-
getEmail
public java.lang.String getEmail()
-
setEmail
public void setEmail(java.lang.String email)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getPhone
public java.lang.String getPhone()
-
setPhone
public void setPhone(java.lang.String phone)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
setJobRole
public void setJobRole(java.lang.String jobRole)
-
setKeyword
public void setKeyword(java.lang.String keyword)
-
getJobRole
public java.lang.String getJobRole()
-
getKeyword
public java.lang.String getKeyword()
-
isFavorite
public boolean isFavorite()
-
setFavorite
public void setFavorite(boolean favorite)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
anonymize
public void anonymize()
- Specified by:
anonymize
in classToDoVersionedIdentifiable
-
getId
public java.lang.Long getId()
Description copied from class:ToDoVersionedIdentifiable
Method returning a canonical id of the object. Transient objects return -1;- Specified by:
getId
in classToDoVersionedIdentifiable
- Returns:
- id the id of the object. Id is canonical for all instances of a class.
-
setId
public void setId(java.lang.Long id)
Description copied from class:ToDoVersionedIdentifiable
Method setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setId
in classToDoVersionedIdentifiable
- Parameters:
id
- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiable
Method returning the version of the instance- Specified by:
getVersion
in classToDoVersionedIdentifiable
- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiable
Method setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersion
in classToDoVersionedIdentifiable
- Parameters:
version
- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiable
Method that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActive
in classToDoVersionedIdentifiable
- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiable
Method setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActive
in classToDoVersionedIdentifiable
- Parameters:
active
- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiable
Method to undelete an object logically.- Specified by:
setToActive
in classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiable
Method to delete an object logically.- Specified by:
setInactive
in classToDoVersionedIdentifiable
-
-