Package com.cedarsoft.couchdb

Examples of com.cedarsoft.couchdb.UniqueId


   * @return the current unique id
   *
   */
  @Nonnull
  public UniqueId getCurrent() throws IllegalStateException {
    @Nullable final UniqueId copy = current;
    if ( copy == null ) {
      throw new IllegalStateException( "No current id available" );
    }
    return copy;
  }
View Full Code Here


    wrapper.nextFieldValue( "_id" );
    final DocId id = new DocId( wrapper.getText() );
    wrapper.nextFieldValue( "_rev" );
    final Revision revision = new Revision( wrapper.getText() );

    current = new UniqueId( id, revision );
  }
View Full Code Here

   *
   * @noinspection NullableProblems
   */
  @Nonnull
  public UniqueId getCurrent() throws IllegalStateException {
    @Nullable final UniqueId copy = current;
    if ( copy == null ) {
      throw new IllegalStateException( "No current id available" );
    }
    return copy;
  }
View Full Code Here

TOP

Related Classes of com.cedarsoft.couchdb.UniqueId

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.