Package org.sete.domain.type

Examples of org.sete.domain.type.AbstractLookupType


        return typeInfo;
    }

    public TypeDataVo loadTypeData(TypeDataVo vo) {
        Class<AbstractLookupType> clazz = getClass(vo);
        AbstractLookupType type = TypeUtil.forKey(clazz, vo.getKey());
        return createTypeDataVo(type);
    }
View Full Code Here


        return vos;
    }

    public void updateType(TypeDataVo vo) {
        Class<AbstractLookupType> clazz = getClass(vo);
        AbstractLookupType type = TypeUtil.forKey(clazz, vo.getKey());
        copyDataFromVoToTypeObject(type, vo);
        baseDao.saveOrUpdate(type);
    }
View Full Code Here

    public void createType(TypeDataVo vo) {
        Class<AbstractLookupType> clazz = getClass(vo);

        try {
            AbstractLookupType type = clazz.newInstance();

            // Only non-significant types can be created
            if(type instanceof Significant){
                throw new IllegalStateException("Significant Type data cannot be created through this admin module.");
            }
View Full Code Here

        }
    }

    public void deleteType(TypeDataVo vo) {
        Class<AbstractLookupType> clazz = getClass(vo);
        AbstractLookupType type = TypeUtil.forKey(clazz, vo.getKey());

        // Only non-significant types can be deleted
        if(type instanceof Significant){
            throw new IllegalStateException("Significant Type data cannot be deleted through this admin module.");
        }
View Full Code Here

        return typeInfo;
    }

    public TypeDataVo loadTypeData(TypeDataVo vo) {
        Class<AbstractLookupType> clazz = getClass(vo);
        AbstractLookupType type = TypeUtil.forKey(clazz, vo.getKey());
        return createTypeDataVo(type);
    }
View Full Code Here

        return vos;
    }

    public void updateType(TypeDataVo vo) {
        Class<AbstractLookupType> clazz = getClass(vo);
        AbstractLookupType type = TypeUtil.forKey(clazz, vo.getKey());
        copyDataFromVoToTypeObjectForUpdate(type, vo);
        baseDao.saveOrUpdate(type);
    }
View Full Code Here

    public void createType(TypeDataVo vo) {
        Class<AbstractLookupType> clazz = getClass(vo);

        try {
            AbstractLookupType type = clazz.newInstance();

            // Only non-significant types can be created
            if(type instanceof Significant){
                throw new IllegalStateException("Significant Type data cannot be created through this admin module.");
            }
View Full Code Here

        }
    }

    public void deleteType(TypeDataVo vo) {
        Class<AbstractLookupType> clazz = getClass(vo);
        AbstractLookupType type = TypeUtil.forKey(clazz, vo.getKey());

        // Only non-significant types can be deleted
        if(type instanceof Significant){
            throw new IllegalStateException("Significant Type data cannot be deleted through this admin module.");
        }
View Full Code Here

TOP

Related Classes of org.sete.domain.type.AbstractLookupType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.