public void setId(Object entity, Object value) { Property property = getIdProperty(entity.getClass(), true); try { property.setObject(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
public void setInitialized(Object entity, boolean value) { Property property = getInitializedProperty(entity.getClass(), true); try { property.setBoolean(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
public void setDetachedState(Object entity, String value) { Property property = getDetachedStateProperty(entity.getClass(), true); try { property.setObject(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
@SuppressWarnings("unchecked") public <T> T getId(Object entity) { Property property = getIdProperty(entity.getClass(), true); try { return (T)property.getObject(entity); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + entity, e); } }
public void setUid(Object entity, String value) { Property property = getUidProperty(entity.getClass(), true); try { property.setObject(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
public String getUid(Object entity) { Property property = getUidProperty(entity.getClass(), true); try { return (String)property.getObject(entity); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + entity, e); } }
@SuppressWarnings("unchecked") public <T> T getId(Object entity) { Property property = getIdProperty(entity.getClass(), true); try { return (T)property.getObject(entity); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + entity, e); } }
public void setId(Object entity, Object value) { Property property = getIdProperty(entity.getClass(), true); try { property.setObject(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
@SuppressWarnings("unchecked") public <T> T getVersion(Object entity) { Property property = getVersionProperty(entity.getClass(), true); try { return (T)property.getObject(entity); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + entity, e); } }
public String getDetachedState(Object entity) { Property property = getDetachedStateProperty(entity.getClass(), true); try { return (String)property.getObject(entity); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + entity, e); } }
public void setDetachedState(Object entity, String value) { Property property = getDetachedStateProperty(entity.getClass(), true); try { property.setObject(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
@SuppressWarnings("unchecked") public <T> T getVersion(Object entity) { Property property = getVersionProperty(entity.getClass(), true); try { return (T)property.getObject(entity); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + entity, e); } }
public void setInitialized(Object entity, boolean value) { Property property = getInitializedProperty(entity.getClass(), true); try { property.setBoolean(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
@SuppressWarnings("unchecked") public <T> T getVersion(Object entity) { Property property = getVersionProperty(entity.getClass(), true); try { return (T)property.getObject(entity); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + entity, e); } }
public void setUid(Object entity, String value) { Property property = getUidProperty(entity.getClass(), true); try { property.setObject(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
public void setInitialized(Object entity, boolean value) { Property property = getInitializedProperty(entity.getClass(), true); try { property.setBoolean(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
public String getDetachedState(Object entity) { Property property = getDetachedStateProperty(entity.getClass(), true); try { return (String)property.getObject(entity); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + entity, e); } }
public void setDetachedState(Object entity, String value) { Property property = getDetachedStateProperty(entity.getClass(), true); try { property.setObject(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }
@SuppressWarnings("unchecked") public <T> T getId(Object entity) { Property property = getIdProperty(entity.getClass(), true); try { return (T)property.getObject(entity); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + entity, e); } }
public void setUid(Object entity, String value) { Property property = getUidProperty(entity.getClass(), true); try { property.setObject(entity, value); } catch (Exception e) { throw new PropertyAccessException("Could not set " + property + " of object " + entity + " to value " + value, e); } }