Package org.exoplatform.services.jcr.impl.storage.value

Examples of org.exoplatform.services.jcr.impl.storage.value.ValueDataNotFoundException


   public void checkValueData(String propertyId, int orderNumber) throws ValueDataNotFoundException, IOException
   {
      File f = getFile(propertyId, orderNumber);
      if (!f.exists())
      {
         throw new ValueDataNotFoundException("Value data corresponding to property with [id=" + propertyId
            + ", ordernum=" + orderNumber + "] does not exist.");
      }
   }
View Full Code Here


      {
         //check that file exists
         File f = getFile(propertyId, orderNumber);
         if (!f.exists())
         {
            throw new ValueDataNotFoundException("Value data of property with [id=" + propertyId + ", ordernum="
               + orderNumber + "] do not exists.");
         }
         else
         {
            //check readability
            InputStream is = new FileInputStream(f);
            try
            {
               is.read();
            }
            finally
            {
               try
               {
                  is.close();
               }
               catch (IOException e)
               {
               }
            }
         }
      }
      catch (IOException e)
      {
         throw new ValueDataNotFoundException("Value data of property [id=" + propertyId + ", ordernum=" + orderNumber
            + "] can not be read.");

      }
   }
View Full Code Here

   public void checkValueData(String propertyId, int orderNumber) throws ValueDataNotFoundException, IOException
   {
      File f = getFile(propertyId, orderNumber);
      if (!f.exists())
      {
         throw new ValueDataNotFoundException("Value data corresponding to property with [id=" + propertyId
            + ", ordernum=" + orderNumber + "] does not exist.");
      }
   }
View Full Code Here

      {
         //check that file exists
         File f = getFile(propertyId, orderNumber);
         if (!f.exists())
         {
            throw new ValueDataNotFoundException("Value data of property with [id=" + propertyId + ", ordernum="
               + orderNumber + "] do not exists.");
         }
         else
         {
            //check readability
            InputStream is = new FileInputStream(f);
            try
            {
               is.read();
            }
            finally
            {
               try
               {
                  is.close();
               }
               catch (IOException e)
               {
                  if (LOG.isTraceEnabled())
                  {
                     LOG.trace("An exception occurred: " + e.getMessage());
                  }
               }
            }
         }
      }
      catch (IOException e)
      {
         throw new ValueDataNotFoundException("Value data of property [id=" + propertyId + ", ordernum=" + orderNumber
            + "] can not be read.");

      }
   }
View Full Code Here

   public void checkValueData(String propertyId, int orderNumber) throws ValueDataNotFoundException, IOException
   {
      File f = getFile(propertyId, orderNumber);
      if (!f.exists())
      {
         throw new ValueDataNotFoundException("Value data corresponding to property with [id=" + propertyId
            + ", ordernum=" + orderNumber + "] does not exist.");
      }
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.storage.value.ValueDataNotFoundException

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.