Package org.qi4j.api.property

Examples of org.qi4j.api.property.StateHolder


                                         Object property
    )
        throws SQLException
    {
        ValueDescriptor vDesc = this._qi4SPI.valueDescriptorFor( (ValueComposite) property );
        StateHolder state = Qi4j.FUNCTION_COMPOSITE_INSTANCE_OF.map( (ValueComposite) property ).state();
        Integer originalPropertyPK = propertyPK;
        ++propertyPK;
        for( PropertyDescriptor pDesc : vDesc.state().properties() )
        {

            propertyPK = this.insertProperty(
                qNameInsertPSs,
                insertAllQNamesPS,
                propertyPK,
                entityPK,
                pDesc.qualifiedName(),
                state.propertyFor( pDesc.accessor() ).get(),
                originalPropertyPK
            );
        }

        return propertyPK;
View Full Code Here


      {
         // Value as parameter
         final ValueComposite valueObject = (ValueComposite) requestObject;
         if (request.getMethod().equals(Method.GET))
         {
            StateHolder holder = spi.stateOf( valueObject );
            final ValueDescriptor descriptor = spi.valueDescriptorFor( valueObject );

            final Reference ref = request.getResourceRef();
            ref.setQuery( null );

             try
             {
                 for( PropertyDescriptor propertyDescriptor : descriptor.state().properties() )
                 {
                     Object value = holder.propertyFor( propertyDescriptor.accessor() ).get();
                     String param;
                     if( value == null )
                     {
                        param = null;
                     }
View Full Code Here

TOP

Related Classes of org.qi4j.api.property.StateHolder

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.