@Override public String toString() { return "DynamicEntityType(" + getName() + ") - " + getDescriptor(); } }
@Override public String toString() { return "DynamicEntityType(" + getName() + ") - " + getDescriptor(); } }
public String toString() { return "EntityType(" + getName() + ") - " + getDescriptor(); }
@Override public String marshal(Object v) throws Exception { if (null == v) { return null; } String href = null; String version = context.getVersion(); if (version != null) { href = baseURI + version + "/" + context.getName() + "/entity/" + v.getClass().getSimpleName() + "/" + IdHelper.stringifyId((DynamicEntityImpl) v, ((DynamicEntityImpl) v).getType().getName(), context); } else { href = baseURI + context.getName() + "/entity/" + v.getClass().getSimpleName() + "/" + IdHelper.stringifyId((DynamicEntityImpl) v, ((DynamicEntityImpl) v).getType().getName(), context); } return href; } }
@Override public String marshal(Object v) throws Exception { if (null == v) { return null; } String href = null; String version = context.getVersion(); if (version != null) { href = baseURI + version + "/" + context.getName() + "/entity/" + v.getClass().getSimpleName() + "/" + IdHelper.stringifyId((DynamicEntityImpl) v, ((DynamicEntityImpl) v).getType().getName(), context); } else { href = baseURI + context.getName() + "/entity/" + v.getClass().getSimpleName() + "/" + IdHelper.stringifyId((DynamicEntityImpl) v, ((DynamicEntityImpl) v).getType().getName(), context); } return href; } }
/** * Lookup the constructor. */ @Override public void initialize(AbstractSession session) throws DescriptorException { try { this.constructor = PrivilegedAccessHelper.getDeclaredConstructorFor(getType().getJavaClass(), new Class[] { DynamicTypeImpl.class }, true); this.constructor.setAccessible(true); } catch (NoSuchMethodException exception) { throw DescriptorException.noSuchMethodWhileInitializingInstantiationPolicy(getType().getName() + ".<Default Constructor>", getDescriptor(), exception); } }