Examples of Transient


Examples of net.sourceforge.jpaxjc.ns.persistence.orm.Transient

    private void toEmbeddableAttributes( final ClassOutline c, final EmbeddableAttributes attributes )
        throws JAXBException
    {
        if ( c.target.declaresAttributeWildcard() )
        {
            final Transient t = new Transient();
            t.setName( "otherAttributes" );
            attributes.getTransient().add( t );

            this.log( Level.WARNING, "cannotMapProperty", "OtherAttributes", c.implClass.binaryName() );
        }

        for ( FieldOutline f : c.getDeclaredFields() )
        {
            boolean mapped = false;

            if ( f.getPropertyInfo().getCustomizations().find( ORM_NS, "basic" ) != null )
            {
                final CPluginCustomization pc = f.getPropertyInfo().getCustomizations().find( ORM_NS, "basic" );
                final Basic basic = JAXB.unmarshal( new DOMSource( pc.element ), Basic.class );

                if ( basic.getName() == null )
                {
                    basic.setName( f.getPropertyInfo().getName( false ) );
                }

                attributes.getBasic().add( basic );
                mapped = true;

                if ( !pc.isAcknowledged() )
                {
                    pc.markAsAcknowledged();
                }
            }

            if ( f.getPropertyInfo().getCustomizations().find( ORM_NS, "transient" ) != null )
            {
                final CPluginCustomization pc = f.getPropertyInfo().getCustomizations().find( ORM_NS, "transient" );
                final Transient t = JAXB.unmarshal( new DOMSource( pc.element ), Transient.class );

                if ( t.getName() == null )
                {
                    t.setName( f.getPropertyInfo().getName( false ) );
                }

                attributes.getTransient().add( t );
                mapped = true;
View Full Code Here

Examples of net.sourceforge.jpaxjc.ns.persistence.orm.Transient

        rh.recurseAddVersion( orm, a, c );
    }

    private boolean toTransient( final FieldOutline f, final Attributes a )
    {
        final Transient t = new Transient();
        t.setName( f.getPropertyInfo().getName( false ) );
        a.getTransient().add( t );

        if ( f.getRawType().equals( f.parent().parent().getCodeModel().ref( XMLGregorianCalendar.class ) ) )
        {
            a.getBasic().add( this.toTemporalBasic( f ) );
View Full Code Here

Examples of net.sourceforge.jpaxjc.ns.persistence.orm.Transient

        return true;
    }

    private boolean toTransient( final FieldOutline f, final EmbeddableAttributes a )
    {
        final Transient t = new Transient();
        t.setName( f.getPropertyInfo().getName( false ) );
        a.getTransient().add( t );

        if ( f.getRawType().equals( f.parent().parent().getCodeModel().ref( XMLGregorianCalendar.class ) ) )
        {
            a.getBasic().add( this.toTemporalBasic( f ) );
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Transient

                String fieldName = field.getName();
                if (persistantFields.contains(fieldName)) {
                    fields.put(fieldName, superclass);
                    persistantFields.remove(fieldName);
                } else if (!ENHANCEED_FIELDS.contains(fieldName)){
                    Transient transientField = new Transient(fieldName);
                    superclass.addField(transientField);
                }
            }
            clazz = clazz.getSuperclass();
        }
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Transient

                String fieldName = field.getName();
                if (persistantFields.contains(fieldName)) {
                    fields.put(fieldName, superclass);
                    persistantFields.remove(fieldName);
                } else if (!ENHANCEED_FIELDS.contains(fieldName)){
                    Transient transientField = new Transient(fieldName);
                    superclass.addField(transientField);
                }
            }
            clazz = clazz.getSuperclass();
        }
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Transient

                    if (persistantFields.contains(fieldName)) {
                        fields.put(fieldName, superclass);
                        persistantFields.remove(fieldName);
                    } else if (!ENHANCED_FIELDS.contains(fieldName)) {
                        // these are fields we need to identify as transient for the persistence engine.
                        final Transient transientField = new Transient(fieldName);
                        superclass.addField(transientField);
                    }
                }
            }
            clazz = clazz.getSuperclass();
View Full Code Here

Examples of org.apache.openejb.jee.jpa.Transient

                    if (persistantFields.contains(fieldName)) {
                        fields.put(fieldName, superclass);
                        persistantFields.remove(fieldName);
                    } else if (!ENHANCED_FIELDS.contains(fieldName)) {
                        // these are fields we need to identify as transient for the persistence engine.
                        final Transient transientField = new Transient(fieldName);
                        superclass.addField(transientField);
                    }
                }
            }
            clazz = clazz.getSuperclass();
View Full Code Here

Examples of org.omg.CORBA.TRANSIENT

    ///////////////////////////////////////////////////////////
   
    public static final int POA_REQUEST_DISCARD = OMGVMCID.value + 1 ;
   
    public TRANSIENT poaRequestDiscard( CompletionStatus cs, Throwable t ) {
        TRANSIENT exc = new TRANSIENT( POA_REQUEST_DISCARD, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.poaRequestDiscard",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here

Examples of org.omg.CORBA.TRANSIENT

    }
   
    public static final int NO_USABLE_PROFILE_3 = OMGVMCID.value + 2 ;
   
    public TRANSIENT noUsableProfile3( CompletionStatus cs, Throwable t ) {
        TRANSIENT exc = new TRANSIENT( NO_USABLE_PROFILE_3, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.noUsableProfile3",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here

Examples of org.omg.CORBA.TRANSIENT

    }
   
    public static final int REQUEST_CANCELLED = OMGVMCID.value + 3 ;
   
    public TRANSIENT requestCancelled( CompletionStatus cs, Throwable t ) {
        TRANSIENT exc = new TRANSIENT( REQUEST_CANCELLED, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.requestCancelled",
                parameters, OMGSystemException.class, exc ) ;
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.