uniqueconstraintexception.java

来自「一个很好的开源项目管理系统源代码」· Java 代码 · 共 81 行

JAVA
81
字号
package net.java.workeffort.service.support;import java.util.List;import net.java.workeffort.infrastructure.exception.IPropertyException;import net.java.workeffort.infrastructure.exception.PropertyException;import org.springframework.dao.DataAccessException;/** * Unique constraint violation exception * @author Antony Joseph */public class UniqueConstraintException extends DataAccessException implements        IPropertyException, IServiceException {    private String errorCode = "unique.constraint.exception";    private IPropertyException pe = new PropertyException();    public UniqueConstraintException(String msg) {        super(msg);    }    public UniqueConstraintException(String msg, Exception e) {        super(msg, e);    }        public String getErrorCode() {        return errorCode;    }    public void setErrorCode(String errorCode) {        this.errorCode = errorCode;    }         public String getCollectionName() {        return pe.getCollectionName();    }    public Object getGuiltyObj() {        return pe.getGuiltyObj();    }    public Integer getIndex() {        return pe.getIndex();    }    public String getPropertyName() {        return pe.getPropertyName();    }    public List getPropertyNameList() {        return pe.getPropertyNameList();    }    public boolean isIndexed() {        return pe.isIndexed();    }    public boolean isMultiProperty() {        return pe.isMultiProperty();    }    public void setCollectionName(String collectionName) {        pe.setCollectionName(collectionName);    }    public void setGuiltyObj(Object guiltyObj) {        pe.setGuiltyObj(guiltyObj);    }    public void setIndex(Integer index) {        pe.setIndex(index);    }    public void setPropertyName(String propertyName) {        pe.setPropertyName(propertyName);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?