Examples of type()


Examples of org.qi4j.api.common.QualifiedName.type()

                                            JoinType joinStyle, Integer firstTableIndex, Integer lastTableIndex )
            {
                QualifiedName qName
                              = QualifiedName.fromAccessor( predicate.property().accessor() );
                String columnName;
                if( qName.type().equals( Identity.class.getName() ) )
                {
                    columnName = DBNames.ENTITY_TABLE_IDENTITY_COLUMN_NAME;
                }
                else
                {
View Full Code Here

Examples of org.qi4j.api.composite.CompositeInstance.type()

            {
                ( (Initializable) mixin ).initialize();
            }
            catch( InitializationException e )
            {
                Class<?> compositeType = compositeInstance.type();
                String message = "Unable to initialize " + mixinClass + " in composite " + compositeType;
                throw new ConstructionException( message, e );
            }
        }
        return mixin;
View Full Code Here

Examples of org.qi4j.api.composite.ModelDescriptor.type()

            {
                throw new InvalidInjectionException( "Unknown injection annotation @" + injectionAnnotationType.getSimpleName() );
            }
        }
        ModelDescriptor composite = resolution.model();
        Class<?> compositeType = composite.type();
        if( factory1 != null && ValueComposite.class.isAssignableFrom( compositeType ) )
        {
            throw new InvalidValueCompositeException( "@" + injectionAnnotationType.getSimpleName() + " is not allowed in ValueComposites: " + compositeType );
        }
View Full Code Here

Examples of org.qi4j.api.composite.TransientDescriptor.type()

        // Test with Standard composite
        AddressComposite address = module.newTransient( AddressComposite.class );
        TransientDescriptor addressDescriptor = spi.getTransientDescriptor( address );

        assertNotNull( addressDescriptor );
        assertEquals( AddressComposite.class, addressDescriptor.type() );
        assertTrue( TransientDescriptor.class.isAssignableFrom( addressDescriptor.getClass() ) );
    }

    @Test
    public final void testCompositeDescriptorWithMixin()
View Full Code Here

Examples of org.qi4j.api.property.PropertyDescriptor.type()

                    EntityComposite configuration = uow.get( EntityComposite.class, identity );
                    AssociationStateHolder state = spi.stateOf( (EntityComposite) configuration );
                    AccessibleObject accessor = propertyNames.get( attribute.getName() );
                    Property<Object> property = state.propertyFor( accessor );
                    PropertyDescriptor propertyDescriptor = spi.propertyDescriptorFor( property );
                    if( EnumType.isEnum( propertyDescriptor.type() ) )
                    {
                        property.set( Enum.valueOf( (Class<Enum>) propertyDescriptor.type(), attribute.getValue()
                            .toString() ) );
                    }
                    else
View Full Code Here

Examples of org.qi4j.api.service.ImportedServiceDescriptor.type()

            String identity = aDescriptor.identity();
            if( serviceId.equals( identity ) )
            {
                layerName = tempLayerName;
                moduleName = tempModuleName;
                serviceType = aDescriptor.type();
            }
        }

        return true;
    }
View Full Code Here

Examples of org.qi4j.api.value.ValueDescriptor.type()

                    JSONObject object = (JSONObject) JSONObjectSerializer.getRoot();

                    ValueDescriptor descriptor = (ValueDescriptor) Qi4j.DESCRIPTOR_FUNCTION.map( (Compositevalue );

                    if (includeTypeInformation)
                        object.put( "_type", descriptor.type().getName() );
                    value( object );
                    return;
                } catch( JSONException e )
                {
                    throw new IllegalStateException( "Could not JSON serialize value", e );
View Full Code Here

Examples of org.qi4j.runtime.entity.EntityInstance.type()

        throws EntityTypeNotFoundException
    {
        EntityComposite entityComposite = (EntityComposite) entity;
        EntityInstance compositeInstance = EntityInstance.getEntityInstance( entityComposite );
        ModelModule<EntityModel> model = new ModelModule<EntityModel>( compositeInstance.module(), compositeInstance.entityModel() );
        Class<T> type = (Class<T>) compositeInstance.type();
        return uow.get( compositeInstance.identity(), this, Collections.singletonList( model), type );
    }

    public void remove( Object entity )
        throws LifecycleException
View Full Code Here

Examples of org.qi4j.runtime.value.ValueModel.type()

            else if (visited instanceof UsedLayersModel )
                return true;
            else if (visited instanceof ValueModel )
            {
                ValueModel valueModel = (ValueModel) visited;
                if (valueModel.type().equals( type ) && valueModel.visibility().ordinal() >= visibility.ordinal())
                {
                    foundModel = valueModel;
                }
            }
View Full Code Here

Examples of org.renjin.gcc.translate.expr.ImExpr.type()

    }

    ImExpr sizeArg = computeSize(context, call);
    ImExpr lhs = context.resolveExpr(call.getLhs());

    if(lhs.type() instanceof ImPrimitivePtrType) {
      writeNewPrimitiveArray(context, lhs, sizeArg);

    } else if(lhs.type() instanceof ImPrimitiveArrayPtrType) {
      writeNewPrimitiveArrayPtr(context, lhs, sizeArg);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.