CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto.base
Class ReadOnlyNamedDto

java.lang.Object
  extended by com.intland.codebeamer.persistence.dto.base.IdentifiableDto
      extended by com.intland.codebeamer.persistence.dto.base.NamedDto
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.NamedDto
NamedDto.NameComparator
 
Nested classes/interfaces inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
IdentifiableDto.IdComparator
 
Constructor Summary
ReadOnlyNamedDto(java.lang.Integer id, java.lang.String name)
          Create a read-only NamedDto
ReadOnlyNamedDto(NamedDto dto)
          Create a read-only copy of the specified NamedDto
 
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 com.intland.codebeamer.persistence.dto.base.NamedDto
compareNames, compareString, compareStringIgnoreCase, compareTo, createLookupMap, equals, getName, hashCode, toString
 
Methods inherited from class com.intland.codebeamer.persistence.dto.base.IdentifiableDto
compare, compareInteger, equals, getId, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadOnlyNamedDto

public ReadOnlyNamedDto(java.lang.Integer id,
                        java.lang.String name)
Create a read-only NamedDto

Parameters:
id - of the object
name - of the object

ReadOnlyNamedDto

public ReadOnlyNamedDto(NamedDto dto)
Create a read-only copy of the specified NamedDto

Parameters:
dto - to copy
Method Detail

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

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.