Package Infrastructure

Examples of Infrastructure.DAO


  static DAO d;
 
  public static DAO Instance()
  {
    if(d==null)
      d=new DAO();
       return d;
  }
View Full Code Here


  public  ArrayList<String> HistCompare(String upload,String store){
   
    int count=0;
    int n=0;
    ArrayList<String> listOfLinks=new ArrayList<String>();
    DAO d= new DAO();
    ResultSet rs=null;
    do{
      n=0;
      rs=d.getImages(count);
     
      try{
        
           while(rs.next()) {
                   n=1;
View Full Code Here

       
          System.out.println("Started Calculating the Image Mean");
       
        //Calculating the Mean of the Images and updating the database
       
        DAO d= new DAO();
      ResultSet rs=null;
      int count=0;
      StartCrawler start=new StartCrawler();
    
     
         do{
           rs=d.getImages(count);
           while(rs.next()) {
             int id = rs.getInt("id");   
             String ImageName = rs.getString("ImageName");
             System.out.println("ID:"+id +" Name:"+ ImageName)
             try
             {
               String extension=ImageName.substring(ImageName.lastIndexOf('.')+1,ImageName.length()).trim();
               if(extension.equalsIgnoreCase("gif")==false && ( extension.equalsIgnoreCase("jpg") || extension.equalsIgnoreCase("jpeg")
                || extension.equalsIgnoreCase("png") || extension.equalsIgnoreCase("bmp")))
               {
                  d.updateImageMeanInfo(id,start.imageCompareResult(ImageConstants.SAVELOCATION+"\\"+ImageName));
                  System.out.println(start.imageCompareResult(ImageConstants.SAVELOCATION+"\\"+ImageName));
               }
               count++;
             }catch(Exception ex)
             {
View Full Code Here

TOP

Related Classes of Infrastructure.DAO

Copyright © 2018 www.massapicom. 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.