Examples of IncorrectAtomicTypeException


Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

      return "xs:dateTime('" + valueFactory.createValue(calendar).getString() + "')";

    }
    catch (RepositoryException e)
    {
      throw new IncorrectAtomicTypeException("Impossible to get the sting value ", e);
    }
  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

    {
      return inputStreamToBytes(value.getStream());
    }
    catch (Exception e)
    {
      throw new IncorrectAtomicTypeException("Impossible to convert a binary value." , e);
    }
  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

   *
   * @see org.apache.jackrabbit.ocm.manager.atomictypeconverter.AtomicTypeConverter#getStringValue(java.lang.Object)
   */
  public String getXPathQueryValue(ValueFactory valueFactory, Object object)
  {
    throw new IncorrectAtomicTypeException("Binary cannot be used in queries");
  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

           return new Boolean(false);
        }
    }
    catch (Exception e)
    {
      throw new IncorrectAtomicTypeException("Impossible to convert the value : " + value.toString()  , e);
    }
    }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

           return new Boolean(false);
        }
    }
    catch (Exception e)
    {
      throw new IncorrectAtomicTypeException("Impossible to convert the value : " + value.toString()  , e);
    }
    }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

    {
      return inputStreamToBytes(value.getBinary().getStream());
    }
    catch (Exception e)
    {
      throw new IncorrectAtomicTypeException("Impossible to convert a binary value." , e);
    }
  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

   *
   * @see org.apache.jackrabbit.ocm.manager.atomictypeconverter.AtomicTypeConverter#getStringValue(java.lang.Object)
   */
  public String getXPathQueryValue(ValueFactory valueFactory, Object object)
  {
    throw new IncorrectAtomicTypeException("Binary cannot be used in queries");
  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

            Calendar calendar = Calendar.getInstance();
            calendar.setTime((Date) propValue);
            return valueFactory.createValue(calendar);
          }

          throw new IncorrectAtomicTypeException("Impossible to convert the value - property type not found");
   
  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

      if (value.getType() == PropertyType.REFERENCE || value.getType() == PropertyType.WEAKREFERENCE)
      {
        return value.getString()
      }
     
      throw new IncorrectAtomicTypeException("Impossible to create the value object - unsupported class");
     
    }
    catch (RepositoryException e)
    {
      throw new IncorrectAtomicTypeException("Impossible to convert the value : " + value.toString(), e);
    }

  }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.IncorrectAtomicTypeException

        Binary binaryvalue = null;
        try {
            binaryvalue = valueFactory.createBinary((InputStream) propValue);
        } catch (RepositoryException ex) {
            throw new IncorrectAtomicTypeException("Impossible to create binary value from stream!", ex);
        }
        if (binaryvalue == null) {
            return null;
        }
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.