/** * INTERNAL: * Return the value to be stored in the object's attribute. * This value is determined by the row. * In this case, simply wrap the object in a ValueHolder. */ public Object valueFromRow(Object object) { return new ValueHolder(object); } }
/** * INTERNAL: * Return the null value of the appropriate attribute. That is, the * field from the database is NULL, return what should be * placed in the object's attribute as a result. * In this case, return an empty ValueHolder. */ public Object nullValueFromRow() { return new ValueHolder(); }
/** * INTERNAL: * Return the null value of the appropriate attribute. That is, the * field from the database is NULL, return what should be * placed in the object's attribute as a result. * In this case, return an empty ValueHolder. */ public Object nullValueFromRow() { return new ValueHolder(); }
/** * Initialize the instance. */ protected void initialize(Map<? extends K, ? extends V> m) { this.delegate = null; Hashtable<K, V> temp = new Hashtable<>(m); this.valueHolder = new ValueHolder(temp); }
/** * Initialize the instance. */ protected void initialize(Map<? extends K, ? extends V> m) { this.delegate = null; Hashtable<K, V> temp = new Hashtable<>(m); this.valueHolder = new ValueHolder(temp); }
/** * Initialize the instance. */ protected void initialize(Map m) { this.delegate = null; Hashtable temp = new Hashtable(m); this.valueHolder = new ValueHolder(temp); }
/** * PUBLIC: * Construct an IndirectList containing the elements of the specified * collection, in the order they are returned by the collection's * iterator. * @param collection a collection containing the elements to construct this IndirectList with. */ public IndirectList(Collection<? extends E> collection) { super(0); this.valueHolder = new ValueHolder(new Vector(collection)); }
/** * Construct an IndirectSet containing the elements of the specified collection. * * @param c the initial elements of the set */ public IndirectSet(Collection<? extends E> c) { this.delegate = null; this.valueHolder = new ValueHolder(new HashSet<>(c)); }
/** * PUBLIC: * Construct an IndirectList containing the elements of the specified * collection, in the order they are returned by the collection's * iterator. * @param collection a collection containing the elements to construct this IndirectList with. */ public IndirectList(Collection collection) { super(0); this.valueHolder = new ValueHolder(new Vector(collection)); }
/** * PUBLIC: * Construct an IndirectList containing the elements of the specified * collection, in the order they are returned by the collection's * iterator. * @param collection a collection containing the elements to construct this IndirectList with. */ public IndirectList(Collection<? extends E> collection) { super(0); this.valueHolder = new ValueHolder(new Vector(collection)); }
/** * INTERNAL: * Return the value to be stored in the object's attribute. * This value is determined by the row. * In this case, simply wrap the object in a ValueHolder. */ public Object valueFromRow(Object object) { return buildContainer(new ValueHolder(object)); } }
/** * INTERNAL: * Return the null value of the appropriate attribute. That is, the * field from the database is NULL, return what should be * placed in the object's attribute as a result. * In this case, return an empty ValueHolder. */ public Object nullValueFromRow() { return buildContainer(new ValueHolder()); }
/** * INTERNAL: * Return the value to be stored in the object's attribute. * This will be a proxy object. */ public Object valueFromRow(Object object) { ValueHolderInterface valueHolder = new ValueHolder(object); return ProxyIndirectionHandler.newProxyInstance(object.getClass(), targetInterfaces, valueHolder); }
/** * Reset the wrapper used to store the value. */ public void reset(Object target) { this.mapping.setAttributeValueInObject(target, new ValueHolder()); }
/** * INTERNAL: * Return the value to be stored in the object's attribute. * This will be a proxy object. */ public Object valueFromRow(Object object) { ValueHolderInterface valueHolder = new ValueHolder(object); return ProxyIndirectionHandler.newProxyInstance(object.getClass(), targetInterfaces, valueHolder); }
/** * INTERNAL: * Return the null value of the appropriate attribute. That is, the * field from the database is NULL, return what should be * placed in the object's attribute as a result. * In this case, return an empty ValueHolder. */ public Object nullValueFromRow() { return buildContainer(new ValueHolder()); }
/** * INTERNAL: * Return the null value of the appropriate attribute. That is, the * field from the database is NULL, return what should be * placed in the object's attribute as a result. * In this case, return an empty ValueHolder. */ public Object nullValueFromRow() { return buildContainer(new ValueHolder()); }
/** * Reset the wrapper used to store the value. */ public void reset(Object target) { getMapping().setAttributeValueInObject(target, buildContainer(new ValueHolder())); }
/** * Reset the wrapper used to store the value. */ public void reset(Object target) { getMapping().setAttributeValueInObject(target, buildContainer(new ValueHolder())); }
/** * Reset the wrapper used to store the value. */ public void reset(Object target) { getMapping().setAttributeValueInObject(target, buildContainer(new ValueHolder())); }