Package org.photovault.dbhelper

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


        }
        if ( cropMaxY - cropMinY <= 0) {
            txw.lock( this, Transaction.WRITE );
            cropMaxY = 1.0 - cropMinY;
        }
        txw.commit();
    }
   
    /**
     Get the preferred crop bounds of the original image
     */
 
View Full Code Here


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

        txw.lock( this, Transaction.WRITE );
        cropMinX = cropBounds.getMinX();
        cropMinY = cropBounds.getMinY();
        cropMaxX = cropBounds.getMaxX();
        cropMaxY = cropBounds.getMaxY();
        txw.commit();
    }
      
    /**
     Raw conversion settings that were used when creating this instance or
     <code>null</code> if it was not created from raw image.
View Full Code Here

        if ( rawSettings != null ) {
            Database db = ODMG.getODMGDatabase();
            db.deletePersistent( rawSettings );
        }
        rawSettings = settings;       
        txw.commit();
    }
   
    /**
     Get the current raw conversion settings.
     @return Current settings or <code>null</code> if instance was not created
View Full Code Here

     from a raw image.    
     */
    public RawConversionSettings getRawSettings() {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.READ );
        txw.commit();
        return rawSettings;
    }


    /**
 
View Full Code Here

     */
    public void setColorChannelMapping( ChannelMapOperation cm ) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        channelMap = cm;
        txw.commit();
    }

    /**
     Get color channel mapping from original to this instance.
     @return The current color channel mapping
View Full Code Here

     @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

     */
    protected void setPhotoUid(int uid) {
  ODMGXAWrapper txw = new ODMGXAWrapper();
  txw.lock( this, Transaction.WRITE );
  photoUid = uid;
  txw.commit();
       
    }
   
    int photoUid;
   
View Full Code Here

            currentEvent.setResult( ExtVolIndexerEvent.RESULT_NEW_PHOTO );
            newInstanceCount++;
            newPhotoCount++;
        }
        currentEvent.setPhoto( photo );
        txw.commit();
        log.debug( "exit: indexFile " + f.getAbsolutePath() );
        return photo;
    }
   
    /**
 
View Full Code Here

                        && (checkTime == null || checkTime.before( startTime )) ) {
                    p.removeInstance( i );
                }
            }
        }
        txw.commit();
    }
   
    /**
     The indexer can create a folder hierarchy that matches the directory hierarchy
     in external volume if user so wants. If there already is a directory with
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.