Package org.photovault.dbhelper

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


                purgeInvalidInstances();               
            }
        }
        rawSettings = settings;
        modified();
        txw.commit();
        log.debug( "exit: setRawSettings()" );
    }

    /**
     Get the current raw conversion settings.
View Full Code Here


     @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() {
        return rawSettingsId;
View Full Code Here

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

    public void setDescription(String  v) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        this.description = v;
        modified();
        txw.commit();
    }
   
    public static final int QUALITY_UNDEFINED = 0;
    public static final int QUALITY_TOP = 1;
    public static final int QUALITY_GOOD = 2;
View Full Code Here

            }
        } catch ( LockNotGrantedException e ) {
            txw.abort();
            throw new PhotovaultException( "Photo locked for other use", e );
        }
        txw.commit();
    }
   
    /**
     Discards modifications done after last save
     */
 
View Full Code Here

    public final void setQuality(final int newQuality) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        this.quality = newQuality;
        modified();
        txw.commit();
    }
   
    /**
     Returns the time when this photo (=metadata of it) was last modified
     * @return a <code>Date</code> value
View Full Code Here

    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();
    }
   
    /**
     * Get the <code>TechNotes</code> value.
     *
 
View Full Code Here

    public final void setTechNotes(final String newTechNotes) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        this.techNotes = newTechNotes;
        modified();
        txw.commit();
    }
   
    /**
     Get the original file name of this photo
    
View Full Code Here

        checkStringProperty( "OrigFname", newFname, ORIG_FNAME_LENGTH );
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        this.origFname = newFname;
        modified();
        txw.commit();
    }
   
   
    /**
     List of folders this photo belongs to
View Full Code Here

        }
        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 )
        && isEqual( p.shootTime, this.shootTime )
        && isEqual(p.description, this.description )
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.