SearchKind.java :  » Database-DBMS » perst » org » garret » rdf » Java Open Source

Java Open Source » Database DBMS » perst 
perst » org » garret » rdf » SearchKind.java
package org.garret.rdf;

/**
 * Which verions of the object should be inspected
 */
public class SearchKind 
{
    /**
     * Latest version in version history
     */
    public static final SearchKind LatestVersion = new SearchKind("Latest version");
    
    /**
     * All versions in version history
     */
    public static final SearchKind AllVersions = new SearchKind("All versions");

    /**
     * Latest version before sepcified timestamp
     */
    public static final SearchKind LatestBefore = new SearchKind("Latest before");

    /** 
     * Oldest version after sepcified timestamp
     */
    public static final SearchKind OldestAfter = new SearchKind("Oldest after");

    private SearchKind(String kind) {
        this.kind = kind;
    }

    public String toString() { 
        return kind;
    }

    private String kind;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.