Package org.qi4j.api.entity

Examples of org.qi4j.api.entity.Queryable


     *
     * @throws NotQueryableException - If accessor method has been marked as not queryable
     */
    public static void throwIfNotQueryable( final AccessibleObject accessor )
    {
        Queryable queryable = accessor.getAnnotation( Queryable.class );
        if( queryable != null && !queryable.value() )
        {
            throw new NotQueryableException(
                String.format(
                    "%1$s \"%2$s\" (%3$s) is not queryable as has been marked with @Queryable(false)",
                    Classes.RAW_CLASS.map( GenericPropertyInfo.propertyTypeOf( accessor ) ).getSimpleName(),
View Full Code Here


     *
     * @throws NotQueryableException - If type has been marked as not queryable
     */
    public static void throwIfNotQueryable( final Class<?> type )
    {
        Queryable queryable = type.getAnnotation( Queryable.class );
        if( queryable != null && !queryable.value() )
        {
            throw new NotQueryableException(
                String.format(
                    "Type \"%1$s\" is not queryable as has been marked with @Queryable(false)",
                    type.getName()
View Full Code Here

/* package */ final class SQLSkeletonUtil
{

    /* package */ static boolean isQueryable( AccessibleObject accessor )
    {
        Queryable q = accessor.getAnnotation( Queryable.class );
        return q == null || q.value();
    }
View Full Code Here

        this.initialValue = initialValue;

        this.constraints = constraints;

        final Queryable queryable = accessor.getAnnotation( Queryable.class );
        this.queryable = queryable == null || queryable.value();
    }
View Full Code Here

TOP

Related Classes of org.qi4j.api.entity.Queryable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.