Package org.apache.openjpa.meta

Examples of org.apache.openjpa.meta.MetaDataDefaults


                }
            }
            sup = sup.getSuperclass();
        } while (sups && !Object.class.equals(sup));

        MetaDataDefaults def = repos.getMetaDataFactory().getDefaults();
        for (Method m : methods) {
            for (Annotation anno : m.getDeclaredAnnotations()) {
                MetaDataTag tag = _tags.get(anno.annotationType());
                if (tag == null)
                    continue;
View Full Code Here


        }
        boolean all = ELEM_CASCADE_ALL == tag;
        if (all || ELEM_CASCADE_PER == tag) {
            cascades.add(PERSIST);
            if (puDefault) {
                MetaDataDefaults mdd = _repos.getMetaDataFactory().getDefaults();
                mdd.setDefaultCascadePersistEnabled(true);
            }
        }
           
        if (all || ELEM_CASCADE_REM == tag)
            cascades.add(REMOVE);
View Full Code Here

                new Collection[LifecycleEvent.ALL_EVENTS.length];
            if (!system)
                _highs = new int[LifecycleEvent.ALL_EVENTS.length];
        }

        MetaDataDefaults def = _repos.getMetaDataFactory().getDefaults();
        LifecycleCallbacks adapter;
        if (_listener != null)
            adapter = new BeanLifecycleCallbacks(_listener,
                attrs.getValue("method-name"), false, type);
        else
View Full Code Here

                }
            }
            sup = sup.getSuperclass();
        } while (sups && !Object.class.equals(sup));

        MetaDataDefaults def = repos.getMetaDataFactory().getDefaults();
        for (Method m : methods) {
            for (Annotation anno : (Annotation[]) AccessController
                .doPrivileged(J2DoPriv5Helper
                    .getDeclaredAnnotationsAction(m))) {
                MetaDataTag tag = _tags.get(anno.annotationType());
View Full Code Here

    public synchronized Exception[] fireEvent(Object source, Object related,
        ClassMetaData meta, int type) {
        boolean reentrant = _firing;
        _firing = true;
        List exceptions = (reentrant) ? new LinkedList() : _exceps;
        MetaDataDefaults def = meta.getRepository().getMetaDataFactory().
            getDefaults();

        boolean callbacks = def.getCallbacksBeforeListeners(type);
        if (callbacks)
            makeCallbacks(source, related, meta, type, exceptions);

        LifecycleEvent ev = (LifecycleEvent) fireEvent(null, source, related,
            type, _listeners, false, exceptions);
View Full Code Here

    public synchronized Exception[] fireEvent(Object source, Object related,
        ClassMetaData meta, int type) {
        boolean reentrant = _firing;
        _firing = true;
        List<Exception> exceptions = (reentrant) ? new LinkedList<Exception>() : _exceps;
        MetaDataDefaults def = meta.getRepository().getMetaDataFactory().
            getDefaults();

        boolean callbacks = def.getCallbacksBeforeListeners(type);
        if (callbacks)
            makeCallbacks(source, related, meta, type, exceptions);

        LifecycleEvent ev = (LifecycleEvent) fireEvent(null, source, related,
            type, _listeners, false, exceptions);
View Full Code Here

                new Collection[LifecycleEvent.ALL_EVENTS.length];
            if (!system)
                _highs = new int[LifecycleEvent.ALL_EVENTS.length];
        }

        MetaDataDefaults def = _repos.getMetaDataFactory().getDefaults();
        LifecycleCallbacks adapter;
        if (_listener != null)
            adapter = new BeanLifecycleCallbacks(_listener,
                attrs.getValue("method-name"), false, type);
        else
View Full Code Here

    public synchronized Exception[] fireEvent(Object source, Object related,
        ClassMetaData meta, int type) {
        boolean reentrant = _firing;
        _firing = true;
        List exceptions = (reentrant) ? new LinkedList() : _exceps;
        MetaDataDefaults def = meta.getRepository().getMetaDataFactory().
            getDefaults();

        boolean callbacks = def.getCallbacksBeforeListeners(type);
        if (callbacks)
            makeCallbacks(source, related, meta, type, exceptions);

        LifecycleEvent ev = (LifecycleEvent) fireEvent(null, source, related,
            type, _listeners, false, exceptions);
View Full Code Here

                }
            }
            sup = sup.getSuperclass();
        } while (sups && !Object.class.equals(sup));

        MetaDataDefaults def = repos.getMetaDataFactory().getDefaults();
        for (Method m : methods) {
            for (Annotation anno : (Annotation[]) AccessController
                .doPrivileged(J2DoPriv5Helper
                    .getDeclaredAnnotationsAction(m))) {
                MetaDataTag tag = _tags.get(anno.annotationType());
View Full Code Here

                new Collection[LifecycleEvent.ALL_EVENTS.length];
            if (!system)
                _highs = new int[LifecycleEvent.ALL_EVENTS.length];
        }

        MetaDataDefaults def = _repos.getMetaDataFactory().getDefaults();
        LifecycleCallbacks adapter;
        if (_listener != null)
            adapter = new BeanLifecycleCallbacks(_listener,
                attrs.getValue("method-name"), false, type);
        else
View Full Code Here

TOP

Related Classes of org.apache.openjpa.meta.MetaDataDefaults

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.