Examples of JCRDateFormat


Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

            throw new VersionException("jcr:created is not found, version: " + vd.getQPath().getAsString());

         Calendar created = null;
         try
         {
            created = new JCRDateFormat().deserialize(new String(createdData.getValues().get(0).getAsByteArray()));
         }
         catch (IOException e)
         {
            throw new RepositoryException(e);
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

    * @param value
    *          Calendar
    */
   public TransientValueData(int orderNumber, Calendar value)
   {
      this(orderNumber, new JCRDateFormat().serialize(value));
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

   protected Calendar getInternalCalendar() throws ValueFormatException, RepositoryException
   {
      try
      {
         if (type == PropertyType.DATE)
            return new JCRDateFormat().deserialize(new String(getLocalData(false).getAsByteArray(),
               Constants.DEFAULT_ENCODING));

         return JCRDateFormat.parse(new String(getLocalData(false).getAsByteArray(), Constants.DEFAULT_ENCODING));
      }
      catch (UnsupportedEncodingException e)
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

   protected Calendar getInternalCalendar() throws ValueFormatException, RepositoryException
   {
      try
      {
         if (type == PropertyType.DATE)
            return new JCRDateFormat().deserialize(new String(getLocalData(false).getAsByteArray(),
               Constants.DEFAULT_ENCODING));

         return JCRDateFormat.parse(new String(getLocalData(false).getAsByteArray(), Constants.DEFAULT_ENCODING));
      }
      catch (UnsupportedEncodingException e)
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

    * @param value
    *          Calendar
    */
   public TransientValueData(int orderNumber, Calendar value)
   {
      this(orderNumber, new JCRDateFormat().serialize(value));
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

            throw new VersionException("jcr:created is not found, version: " + vd.getQPath().getAsString());

         Calendar created = null;
         try
         {
            created = new JCRDateFormat().deserialize(new String(createdData.getValues().get(0).getAsByteArray()));
         }
         catch (IOException e)
         {
            throw new RepositoryException(e);
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

    * @param value
    *          Calendar
    */
   public TransientValueData(int orderNumber, Calendar value)
   {
      this(orderNumber, new JCRDateFormat().serialize(value));
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

    * @param value
    *          Calendar
    */
   public TransientValueData(Calendar value)
   {
      this(new JCRDateFormat().serialize(value), 0);
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

    * @param value
    *          Calendar
    */
   public TransientValueData(int orderNumber, Calendar value)
   {
      this(orderNumber, new JCRDateFormat().serialize(value));
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.JCRDateFormat

    * @param value
    *          Calendar
    */
   public TransientValueData(Calendar value)
   {
      this(new JCRDateFormat().serialize(value), 0);
   }
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.