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

org.ibatis.persist.criteria.Root Maven / Gradle / Ivy

Go to download

The jBATIS persistence framework will help you to significantly reduce the amount of Java code that you normally need to access a relational database. iBATIS simply maps JavaBeans to SQL statements using a very simple XML descriptor.

The newest version!
package org.ibatis.persist.criteria;

import org.ibatis.persist.meta.EntityType;

/**
 * A root type in the from clause. Query roots always reference entities.
 *
 * @param 
 *            the entity type referenced by the root
 *
 * @since iBatis Persistence 1.0
 */
public interface Root extends From {
    /**
     * Make a template root object.
     */
    X $();

    /**
     * Return the metamodel entity corresponding to the root.
     * @return metamodel entity corresponding to the root
     */
    EntityType getModel();

    /**
     * Create a path corresponding to the referenced attribute.
     * 
     * @param attribute
     *            the attribute
     */
     Path get(Y attribute);


    Root alias(String name);

    /**
     * Return the alias assigned to the tuple element or null, if no alias has been assigned.
     * 
     * @return alias
     */
    String getAlias();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy