Package org.photovault.dbhelper

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


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


            Database db = ODMG.getODMGDatabase();
            db.makePersistent( settings );
            RawConversionSettings oldSettings = rawSettings;
            txw.lock( settings, Transaction.WRITE );
            if ( oldSettings != null ) {
                txw.lock( oldSettings, Transaction.WRITE );
                db.deletePersistent( oldSettings );
            }
        } else {
            // s is null so this should not be raw image
            if ( rawSettings != null ) {
View Full Code Here

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

    public int getRawSettingsId() {
View Full Code Here

     * Get the value of description.
     * @return value of description.
     */
    public String getDescription() {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.READ );
        txw.commit();
        return 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();
    }
   
View Full Code Here

     *
     * @param newQuality The new Quality value.
     */
    public final void setQuality(final int newQuality) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        this.quality = newQuality;
        modified();
        txw.commit();
    }
   
View Full Code Here

        return lastModified != null ? (java.util.Date) lastModified.clone() : null;
    }
   
    public  void setLastModified(final java.util.Date newDate) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        this.lastModified = (newDate != null) ? (java.util.Date) newDate.clone()  : null;
        modified();
        txw.commit();
    }
   
View Full Code Here

     *
     * @param newTechNotes The new TechNotes value.
     */
    public final void setTechNotes(final String newTechNotes) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        this.techNotes = newTechNotes;
        modified();
        txw.commit();
    }
   
View Full Code Here

     {@link #ORIG_FNAME_LENGTH}
     */
    public final void setOrigFname(final String newFname) {
        checkStringProperty( "OrigFname", newFname, ORIG_FNAME_LENGTH );
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        this.origFname = newFname;
        modified();
        txw.commit();
    }
   
View Full Code Here

        if ( obj == null || obj.getClass() != this.getClass() ) {
            return false;
        }
        PhotoInfo p = (PhotoInfo)obj;
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.READ );
        txw.lock( p, Transaction.READ );
        txw.commit();
       
        return ( isEqual( p.photographer, this.photographer )
        && isEqual( p.shootingPlace, this.shootingPlace )
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.