All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.katharsis.jpa.internal.query.MetaComputedAttribute Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.katharsis.jpa.internal.query;

import java.lang.reflect.Type;

import io.katharsis.jpa.internal.meta.MetaDataObject;
import io.katharsis.jpa.internal.meta.impl.MetaAttributeImpl;

public class MetaComputedAttribute extends MetaAttributeImpl {

	private MetaDataObject virtualParent;

	public MetaComputedAttribute(MetaDataObject parent, String name, Type type) {
		super(null, name, type);

		// not attach to actual parent!
		this.virtualParent = parent;
	}

	@Override
	public MetaDataObject getParent() {
		return virtualParent;
	}

	@Override
	public Object getValue(Object dataObject) {
		throw new UnsupportedOperationException();
	}

	@Override
	public void setValue(Object dataObject, Object value) {
		throw new UnsupportedOperationException();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy