Package org.qi4j.api.composite

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


            if (target == null)
                return null;

            CompositeInstance handler = (CompositeInstance) Proxy.getInvocationHandler( target );
            return ((AssociationStateHolder)handler.state()).associationFor( accessor );
        } catch( IllegalArgumentException e )
        {
            throw e;
        } catch( Throwable e )
        {
View Full Code Here


                target = traversedAssociation.map( entity ).get();
            if (traversedManyAssociation != null)
                throw new IllegalArgumentException( "Cannot traverse ManyAssociations" );

            CompositeInstance handler = (CompositeInstance) Proxy.getInvocationHandler( target );
            return ((AssociationStateHolder)handler.state()).manyAssociationFor( accessor );
        } catch( IllegalArgumentException e )
        {
            throw e;
        } catch( Throwable e )
        {
View Full Code Here

            if (target == null)
                return null;

            CompositeInstance handler = (CompositeInstance) Proxy.getInvocationHandler( target );
            return handler.state().propertyFor( accessor );
        } catch( IllegalArgumentException e )
        {
            throw e;
        }catch( Throwable e )
        {
View Full Code Here

            {
                return null;
            }

            CompositeInstance handler = (CompositeInstance) Proxy.getInvocationHandler( target );
            return handler.state().propertyFor( accessor );
        }
        catch( IllegalArgumentException e )
        {
            throw e;
        }
View Full Code Here

            {
                return null;
            }

            CompositeInstance handler = (CompositeInstance) Proxy.getInvocationHandler( target );
            return ( (AssociationStateHolder) handler.state() ).associationFor( accessor );
        }
        catch( IllegalArgumentException e )
        {
            throw e;
        }
View Full Code Here

            {
                throw new IllegalArgumentException( "Cannot traverse NamedAssociations" );
            }

            CompositeInstance handler = (CompositeInstance) Proxy.getInvocationHandler( target );
            return ( (AssociationStateHolder) handler.state() ).namedAssociationFor( accessor );
        }
        catch( IllegalArgumentException e )
        {
            throw e;
        }
View Full Code Here

            {
                throw new IllegalArgumentException( "Cannot traverse NamedAssociations" );
            }

            CompositeInstance handler = (CompositeInstance) Proxy.getInvocationHandler( target );
            return ( (AssociationStateHolder) handler.state() ).manyAssociationFor( accessor );
        }
        catch( IllegalArgumentException e )
        {
            throw e;
        }
View Full Code Here

    private void serializeValueComposite( Options options, Object object, OutputType output, boolean rootPass )
        throws Exception
    {
        CompositeInstance valueInstance = Qi4j.FUNCTION_COMPOSITE_INSTANCE_OF.map( (ValueComposite) object );
        ValueDescriptor descriptor = (ValueDescriptor) valueInstance.descriptor();
        AssociationStateHolder state = (AssociationStateHolder) valueInstance.state();

        onObjectStart( output );

        if( options.getBoolean( Options.INCLUDE_TYPE_INFO ) && !rootPass )
        {
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.