com.intland.codebeamer.persistence.dto.base
Class ReadOnlyNamedDto
java.lang.Object
com.intland.codebeamer.persistence.dto.base.IdentifiableDto
com.intland.codebeamer.persistence.dto.base.NamedDto
com.intland.codebeamer.persistence.dto.base.ReadOnlyNamedDto
- All Implemented Interfaces:
- BaseDto, ReadOnlyDto, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
- Direct Known Subclasses:
- DateChoice
public class ReadOnlyNamedDto
- extends NamedDto
- implements ReadOnlyDto
A special NamedDto that doesn't allow to change it's attributes
All attempts to invoke a property setter method will throw an UnsupportedOperationException
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone()
Create a writable copy of this ReadOnlyDto
Caution: The semantics are different than the standard Object.clone() method,
because the returned object's class is typically different from the ReadOnlyDtos's class |
void |
setId(java.lang.Integer id)
Sets its unique identifier. |
void |
setName(java.lang.String name)
Sets its (descriptive) name. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ReadOnlyNamedDto
public ReadOnlyNamedDto(java.lang.Integer id,
java.lang.String name)
- Create a read-only NamedDto
- Parameters:
id
- of the objectname
- of the object
ReadOnlyNamedDto
public ReadOnlyNamedDto(NamedDto dto)
- Create a read-only copy of the specified NamedDto
- Parameters:
dto
- to copy
clone
public java.lang.Object clone()
- Description copied from interface:
ReadOnlyDto
- Create a writable copy of this ReadOnlyDto
Caution: The semantics are different than the standard
Object.clone()
method,
because the returned object's class is typically different from the ReadOnlyDtos's class
- Specified by:
clone
in interface ReadOnlyDto
- Overrides:
clone
in class IdentifiableDto
- Returns:
- a mutable copy of this ReadOnlyEscalationRuleDto
setId
public void setId(java.lang.Integer id)
- Description copied from class:
IdentifiableDto
- Sets its unique identifier.
- Overrides:
setId
in class IdentifiableDto
setName
public void setName(java.lang.String name)
- Description copied from class:
NamedDto
- Sets its (descriptive) name.
- Overrides:
setName
in class NamedDto
Copyright © 2006-2009 Intland Software. All rights reserved.