exedio cope

com.exedio.cope
Class UniqueViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.exedio.cope.ConstraintViolationException
                  extended by com.exedio.cope.UniqueViolationException
All Implemented Interfaces:
Serializable

public final class UniqueViolationException
extends ConstraintViolationException

Signals, that an attempt to write an field has been failed, and the value to be set violated a unique constraint. This exception will be thrown by Item.set and item constructors if that field is covered by a unique constraint and the value to be set violated the uniqueness.

Author:
Ralf Wiebicke
See Also:
Serialized Form

Method Summary
 UniqueConstraint getConstraint()
          Deprecated. Renamed to getFeature().
 UniqueConstraint getFeature()
          Returns the violated constraint.
 String getMessage(boolean withFeature)
           
 
Methods inherited from class com.exedio.cope.ConstraintViolationException
getItem, getItemID, getItemText, getMessage, getMessageWithoutFeature
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getFeature

public UniqueConstraint getFeature()
Returns the violated constraint.

Specified by:
getFeature in class ConstraintViolationException

getConstraint

@Deprecated
public UniqueConstraint getConstraint()
Deprecated. Renamed to getFeature().


getMessage

public String getMessage(boolean withFeature)
Specified by:
getMessage in class ConstraintViolationException

Cope with
Object
Persistence

SourceForge.net LogoCopyright © 2004-2008 exedio Gesellschaft für Softwareentwicklung mbH. All rights reserved.
svn.12752 build.5319 20090312135114