Package com.opensymphony.module.propertyset

Examples of com.opensymphony.module.propertyset.PropertyException


            }

            session.delete(InfoglueHibernatePropertySetDAOUtils.getItem(session, entityName, entityId, key));
            session.flush();
        } catch (HibernateException e) {
            throw new PropertyException("Could not remove key '" + key + "': " + e.getMessage());
        } finally {
            try {
                if (session != null) {
                    if (!session.connection().getAutoCommit()) {
                        session.connection().commit();
View Full Code Here


    {
      return (getType(key) == PropertySet.DATA) ? getDataString(key) : super.getAsActualType(key);
    }
    catch(Exception e)
    {
      throw new PropertyException("Unable to get type for [" + key + "].");
    }
    }
View Full Code Here

      final String value = (b == null) ? null : new String(b, UTF8_ENCODING);
      return value;
    }
    catch(UnsupportedEncodingException e)
    {
      throw new PropertyException("Unable to get data for [" + key + "].");
    }
  }
View Full Code Here

        {
            item = configProvider.getPropertySetDAO().create(entityName, entityId.longValue(), key);
        }
        else if (item.getType() != type)
        {
            throw new PropertyException("Existing key '" + key + "' does not have matching type of " + type);
        }
   
    ((InfogluePropertySetItem) item).setDataVal(((com.opensymphony.util.Data) value).getBytes());
   
        item.setType(type);
View Full Code Here

        {
            return null;
        }
        if (item.getType() != type)
        {
            throw new PropertyException("key '" + key + "' does not have matching type of " + type);
        }
    return new com.opensymphony.util.Data(((InfogluePropertySetItem) item).getDataVal());
    }
View Full Code Here

TOP

Related Classes of com.opensymphony.module.propertyset.PropertyException

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.