Package org.photovault.dbhelper

Examples of org.photovault.dbhelper.ODMGXAWrapper.lock()


        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        RawConversionSettings settings = null;
        if ( s != null ) {
            settings = s.clone();
            txw.lock( settings, Transaction.WRITE );
        }
        if ( rawSettings != null ) {
            Database db = ODMG.getODMGDatabase();
            db.deletePersistent( rawSettings );
        }
View Full Code Here


     @return Current settings or <code>null</code> if instance was not created
     from a raw image.    
     */
    public RawConversionSettings getRawSettings() {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.READ );
        txw.commit();
        return rawSettings;
    }


View Full Code Here

     Set the color channel mapping from original to this instance
     @param cm the new color channel mapping
     */
    public void setColorChannelMapping( ChannelMapOperation cm ) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        channelMap = cm;
        txw.commit();
    }

    /**
 
View Full Code Here

     Get color channel mapping from original to this instance.
     @return The current color channel mapping
     */
    public ChannelMapOperation getColorChannelMapping() {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.READ );
        txw.commit();
        return channelMap;
    }
       
   
View Full Code Here

     PhotoInfo.addInstance()
     @param uid UID of the photo
     */
    protected void setPhotoUid(int uid) {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  photoUid = uid;
  txw.commit();
       
    }
   
View Full Code Here

        return uuid;
    }   
   
    public void setUUID( UUID uuid ) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  this.uuid = uuid;
  modified();
  txw.commit();
    }
    /**
 
View Full Code Here

     * @param v  Value to assign to name.
     */
    public void setName(String  v) {
  checkStringProperty( "Name", v, NAME_LENGTH );
        ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  this.name = v;
  modified();
  txw.commit();
    }
    String description;
View Full Code Here

     * Set the value of description.
     * @param v  Value to assign to description.
     */
    public void setDescription(String  v) {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  this.description = v;
  modified();
  txw.commit();
    }
    Date creationDate = null;
View Full Code Here

    public void addPhoto( PhotoInfo photo ) {
  if ( photos == null ) {
      photos = new Vector();
  }
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  if ( !photos.contains( photo ) ) {
            txw.lock( photo, Transaction.WRITE );
      photo.addedToFolder( this );
      photos.add( photo );
      modified();
View Full Code Here

      photos = new Vector();
  }
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  if ( !photos.contains( photo ) ) {
            txw.lock( photo, Transaction.WRITE );
      photo.addedToFolder( this );
      photos.add( photo );
      modified();
  }
  txw.commit();
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.