Package org.photovault.dbhelper

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


     * Set the value of height.
     * @param v  Value to assign to height.
     */
    public void setHeight(int  v) {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  this.height = v;
  txw.commit();
    }

    // File history
View Full Code Here


     * Get the value of instanceType.
     * @return value of instanceType.
     */
    public int getInstanceType() {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.READ );
  txw.commit();
  return instanceType;
    }
   
    /**
 
View Full Code Here

     * Set the value of instanceType.
     * @param v  Value to assign to instanceType.
     */
    public void setInstanceType(int  v) {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  this.instanceType = v;
  txw.commit();
    }

    double rotated;
View Full Code Here

     * Get the amount this instance is rotated compared to the original image.
     * @return value of rotated.
     */
    public double getRotated() {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.READ );
  txw.commit();
  return rotated;
    }
   
    /**
 
View Full Code Here

     * Set the amount this image is rotated when compared to the original image
     * @param v  Value to assign to rotated.
     */
    public void setRotated(double  v) {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  this.rotated = v;
  txw.commit();
    }

    /**
 
View Full Code Here

     */
   
    private void checkCropBounds() {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        if ( cropMaxX - cropMinX <= 0) {
            txw.lock( this, Transaction.WRITE );
            cropMaxX = 1.0 - cropMinX;
        }
        if ( cropMaxY - cropMinY <= 0) {
            txw.lock( this, Transaction.WRITE );
            cropMaxY = 1.0 - cropMinY;
View Full Code Here

        if ( cropMaxX - cropMinX <= 0) {
            txw.lock( this, Transaction.WRITE );
            cropMaxX = 1.0 - cropMinX;
        }
        if ( cropMaxY - cropMinY <= 0) {
            txw.lock( this, Transaction.WRITE );
            cropMaxY = 1.0 - cropMinY;
        }
        txw.commit();
    }
   
View Full Code Here

    /**
     Get the preferred crop bounds of the original image
     */
    public Rectangle2D getCropBounds() {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.READ );
        checkCropBounds();
        txw.commit();
        return new Rectangle2D.Double( cropMinX, cropMinY,
                cropMaxX-cropMinX, cropMaxY-cropMinY );       
    }
View Full Code Here

     Set the preferred cropping operation
     @param cropBounds New crop bounds
     */
    public void setCropBounds( Rectangle2D cropBounds ) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        cropMinX = cropBounds.getMinX();
        cropMinY = cropBounds.getMinY();
        cropMaxX = cropBounds.getMaxX();
        cropMaxY = cropBounds.getMaxY();
        txw.commit();
View Full Code Here

     @param s The new raw conversion settings used to create this instance.
     The method makes a clone of the object.    
     */
    public void setRawSettings( RawConversionSettings s ) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        RawConversionSettings settings = null;
        if ( s != null ) {
            settings = s.clone();
            txw.lock( settings, Transaction.WRITE );
        }
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.