Examples of IncorrectAtomicTypeException


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)
      {
        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

      {
        return value.getStream();
    }
    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

     *
     * @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 value.getString();
    }
    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

        if(null != converter) {
            return converter;
        }
        Class converterClass= (Class) m_converters.get(clazz);
        if(null == converterClass) {
            throw new IncorrectAtomicTypeException("No registered converter for a field based on the class :'" + clazz + "'");
        }
       
        try {
            converter= (AtomicTypeConverter) converterClass.newInstance();
            m_converterInstances.put(clazz, converter);
        }
        catch(Exception ex) {
            throw new IncorrectAtomicTypeException(
                    "Cannot create converter instance from class '" + clazz + "'", ex);
           
        }
       
        return converter;
View Full Code Here

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

      long beanPropValue = value.getLong();
      return new Long(beanPropValue);
    }
    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

      }
      return valueFactory.createValue((String) propValue, PropertyType.NAME);
    }
    catch (RepositoryException e)
    {
      throw new IncorrectAtomicTypeException("Impossible to convert the value : " + propValue.toString(), e);
    }
   
  }
View Full Code Here

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

    {
      return value.getString();
    }
    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

      }
      return valueFactory.createValue((String) propValue, PropertyType.REFERENCE);
    }
    catch (RepositoryException e)
    {
      throw new IncorrectAtomicTypeException("Impossible to convert the value into a reference property :  " + propValue.toString() + ". Check if it is a correct uuid", e);
    }
   
  }
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.