Package org.photovault.imginfo

Examples of org.photovault.imginfo.PhotoInfo.removeInstance()


                    ex.printStackTrace();
                }
                Vector instances = photo.getInstances();
                int instNum = instances.indexOf( oldInstance );
                if ( instNum >= 0 ) {
                    photo.removeInstance( instNum );
                }
            }
        }
       
       
View Full Code Here


            for ( int i = instances.size()-1; i >= 0; i-- ) {
                ImageInstance inst = (ImageInstance) instances.get( i );
                Date checkTime = inst.getCheckTime();
                if ( inst.getVolume() == volume
                        && (checkTime == null || checkTime.before( startTime )) ) {
                    p.removeInstance( i );
                }
            }
        }
        txw.commit();
    }
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.