quickstart.pojo.model.query.QOrganization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plasma-test-model Show documentation
Show all versions of plasma-test-model Show documentation
The Plasma Test Model Module
The newest version!
package quickstart.pojo.model.query;
import org.plasma.sdo.helper.PlasmaTypeHelper;
import org.plasma.query.dsl.DomainRoot;
import org.plasma.query.dsl.PathNode;
import org.plasma.query.dsl.DataNode;
import org.plasma.query.Expression;
import org.plasma.query.StringDataProperty;
import org.plasma.query.TemporalDataProperty;
import quickstart.pojo.model.Party;
import quickstart.pojo.model.query.QOrganization;
import quickstart.pojo.model.query.QPerson;
import quickstart.pojo.model.Organization;
/**
* Derived from enum plasma.test.model.humanresources.
* Organization
*
* Generated Domain Specific Language (DSL) implementation class representing the domain model entity Organization.
*
*
* Data Store Mapping:
* Corresponds to the physical data store entity ORG.
*
*/
public class QOrganization extends DomainRoot
{
private QOrganization() {
super(PlasmaTypeHelper.INSTANCE.getType(Organization.class));
}
/**
* Constructor which instantiates a domain query path node. A path may
* span multiple namespaces and therefore Java inplementation packages
* based on the Condiguration.
* Note: while this constructor is public, it is not for application use!
* @param source the source path node
* @param sourceProperty the source property logical name
*/
public QOrganization(PathNode source, String sourceProperty) {
super(source, sourceProperty);
}
/**
* Constructor which instantiates a domain query path node. A path may
* span multiple namespaces and therefore Java inplementation packages
* based on the Condiguration.
* Note: while this constructor is public, it is not for application use!
* @param source the source path node
* @param sourceProperty the source property logical name
* @param expr the path predicate expression
*/
public QOrganization(PathNode source, String sourceProperty, Expression expr) {
super(source, sourceProperty, expr);
}
/**
* Returns a new DSL query for Type Organization which can be used either as a query root or
* as the start (entry point) for a new path predicate expression.
* @return a new DSL query
*/
public static QOrganization newQuery() {
return new QOrganization();
}
/**
* Returns a DSL data element for property, category.
* @return a String DSL data element for property, category.
*/
public StringDataProperty category() {
return new DataNode(this, plasma.test.model.humanresources.Organization.category.name());
}
/**
* Returns a DSL query element for reference property, child.
* @return a DSL query element for reference property, child.
*/
public QOrganization child() {
return new QOrganization(this, plasma.test.model.humanresources.Organization.child.name());
}
/**
* Returns a DSL query element for reference property, child, while adding the given path predicate expression.
* Path predicate expressions are used to restrict
* the query results for a collection property within a DataGraph.
* @param expr the path predicate expression
* @return a DSL query element for reference property, child.
*/
public QOrganization child(Expression expr) {
return new QOrganization(this, plasma.test.model.humanresources.Organization.child.name(), expr);
}
/**
* Returns a DSL data element for property, createdDate.
* @return a Temporal DSL data element for property, createdDate.
*/
public TemporalDataProperty createdDate() {
return new DataNode(this, plasma.test.model.humanresources.Party.createdDate.name());
}
/**
* Returns a DSL query element for reference property, employee.
* @return a DSL query element for reference property, employee.
*/
public QPerson employee() {
return new QPerson(this, plasma.test.model.humanresources.Organization.employee.name());
}
/**
* Returns a DSL query element for reference property, employee, while adding the given path predicate expression.
* Path predicate expressions are used to restrict
* the query results for a collection property within a DataGraph.
* @param expr the path predicate expression
* @return a DSL query element for reference property, employee.
*/
public QPerson employee(Expression expr) {
return new QPerson(this, plasma.test.model.humanresources.Organization.employee.name(), expr);
}
/**
* Returns a DSL data element for property, name.
* @return a String DSL data element for property, name.
*/
public StringDataProperty name() {
return new DataNode(this, plasma.test.model.humanresources.Organization.name.name());
}
/**
* Returns a DSL query element for reference property, parent.
* @return a DSL query element for reference property, parent.
*/
public QOrganization parent() {
return new QOrganization(this, plasma.test.model.humanresources.Organization.parent.name());
}
}