Package org.photovault.dbhelper

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


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


     */
    public void setWidth(int  v) {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  this.width = v;
  txw.commit();
    }
    int height;
   
    /**
     * Get the value of height.
View Full Code Here

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

     */
    public void setHeight(int  v) {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  this.height = v;
  txw.commit();
    }

    // File history
    /**
       The file is a original
View Full Code Here

                    (int)bounds.getWidth()+4, (int)bounds.getHeight()+4 );
            txt.draw( g2, xpos, (int)(ypos + bounds.getHeight()) );
            ypos += bounds.getHeight() + 4;
        }
        g2.setBackground( prevBkg );
        txw.commit();
       
        endTime = System.currentTimeMillis();
        log.debug( "paintThumbnail: exit " + photo.getUid() );
        log.debug( "Thumb fetch " + (thumbReadyTime - startTime ) + " ms" );
        log.debug( "Thumb draw " + ( thumbDrawnTime - thumbReadyTime ) + " ms" );
View Full Code Here

                        repaintPhoto( photoCollection.getPhoto( n ) );
                    }
                }
      }
            fireSelectionChangeEvent();
      xa.commit();
      // Redrw the selection area so that the selection rectangle is not shown anymore
      Rectangle repaintRect = dragSelectionRect;
      if ( lastDragSelectionRect != null ) {
    repaintRect = dragSelectionRect.union( lastDragSelectionRect );
      }
View Full Code Here

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

     */
    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

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

     */
    public void setRotated(double  v) {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  this.rotated = v;
  txw.commit();
    }

    /**
     CropBounds describes the how this instance is cropped from original image. It is
     defined as proportional coordinates that are applied after rotating the
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.