Examples of WGWrongRevisionException


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

Examples of de.innovationgate.webgate.api.WGWrongRevisionException

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

Examples of de.innovationgate.webgate.api.WGWrongRevisionException

    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
Copyright © 2018 www.massapi.com. 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.