Package org.photovault.dbhelper

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


       
        try {
            OQLQuery query = odmg.newOQLQuery();
            query.create( oql );
            profiles = (List) query.execute();
            txw.commit();
        } catch (Exception e ) {
            log.warn( "Error fetching record: " + e.getMessage() );
            txw.abort();
            return null;
        }
View Full Code Here


        try {
            OQLQuery query = odmg.newOQLQuery();
            query.create( oql );
            txw.flush();
            profiles = (List) query.execute();
            txw.commit();
        } catch (Exception e ) {
            log.warn( "Error fetching records: " + e.getMessage() );
            e.printStackTrace();
            txw.abort();
            return null;
View Full Code Here

            i.profileId = p.id;
           
           
            p.addInstance( i );
            txw.lock( i, Transaction.WRITE );
            txw.commit();
            return p;
        }
    }
   
    /**
 
View Full Code Here

      }
     
      QueryByCriteria q = new QueryByCriteria( PhotoInfo.class, crit );
      Collection result = broker.getCollectionByQuery( q );
      photos.addAll( result );
      txw.commit();
  } catch ( Exception e ) {
      log.warn( "Error executing query: " + e.getMessage() );
      e.printStackTrace( System.out );
      txw.abort();
  }
View Full Code Here

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

            invalidateThumbnail();
            purgeInvalidInstances();
        }
        this.prefRotation = v;
        modified();
        txw.commit();
    }
   
    /**
     Check that the e crop bounds are defined in consistent manner. This is needed
     since in old installations the max parameters can be larger than min ones.
View Full Code Here

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

        cropMinY = cropBounds.getMinY();
        cropMaxX = cropBounds.getMaxX();
        cropMaxY = cropBounds.getMaxY();
        checkCropBounds();
        modified();
        txw.commit();
    }
   
   
   
    /**
 
View Full Code Here

                purgeInvalidInstances();
            }
        }
        channelMap = cm;
        modified();
        txw.commit();
    }

    /**
     Get currently preferred color channe?l mapping.
     @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

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.