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

io.pelle.mango.db.voquery.VOClassQuery Maven / Gradle / Ivy

The newest version!
package io.pelle.mango.db.voquery;

import io.pelle.mango.client.base.vo.IBaseVO;
import io.pelle.mango.client.base.vo.IVOEntity;
import io.pelle.mango.db.util.BeanUtils;

public class VOClassQuery {

	private Class voEntityClass;

	public VOClassQuery(Class voClass) {
		this.voEntityClass = voClass;
	}

	public static VOClassQuery createQuery(Class voEntityClass) {
		return new VOClassQuery(voEntityClass);
	}

	public static VOClassQuery createQuery(IBaseVO vo) {
		return new VOClassQuery(vo.getClass());
	}

	public AttributesDescriptorQuery attributesDescriptors() {
		return AttributesDescriptorQuery.createQuery(voEntityClass, BeanUtils.getAttributeDescriptors(voEntityClass));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy