Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGWrongRevisionException


    public Date getRevisionDate(Comparable lastChanged) throws WGAPIException, WGWrongRevisionException {
       
        if (_ddlVersion >= WGDatabase.CSVERSION_WGA5) {
           
            if (!(lastChanged instanceof Long)) {
                throw new WGWrongRevisionException(Long.class);
            }
           
            LogEntry entry = (LogEntry) getSession().get(LogEntry.class, (Long) lastChanged);
            if (entry != null) {
                return entry.getLogtime();
            }
            else {
                return null;
            }
        }
        else {
            try {
                return (Date) lastChanged;
            }
            catch (ClassCastException e) {
                throw new WGWrongRevisionException(Date.class);
            }
        }
       
    }
View Full Code Here


    public Date getRevisionDate(Comparable lastChanged) throws WGAPIException, WGWrongRevisionException {
        try {
            return (Date) lastChanged;
        }
        catch (ClassCastException e) {
            throw new WGWrongRevisionException(Date.class);
        }
    }
View Full Code Here

    public Date getRevisionDate(Comparable lastChanged) throws WGAPIException, WGWrongRevisionException {
        try {
            return (Date) lastChanged;
        }
        catch (ClassCastException e) {
            throw new WGWrongRevisionException(Date.class);
        }
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.WGWrongRevisionException

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.