Examples of CallbackMethod


Examples of com.impetus.kundera.persistence.event.CallbackMethod

                                entityClass);

                        // add them all to metadata
                        for (Class<?> jpaAnnotation : jpaAnnotations)
                        {
                            CallbackMethod callBackMethod = new ExternalCallbackMethod(entityListener, method);
                            addCallBackMethod(metadata, jpaAnnotation, callBackMethod);
                        }
                    }
                }
            }
        }

        // list all internal listeners now.
        // iterate through all public methods of entityClass
        // since this is already an @Entity class, it will sure have a default
        // no-arg constructor
        for (Method method : entityClass.getMethods())
        {
            // find valid jpa annotations for this method
            List<Class<?>> jpaAnnotations = getValidJPAAnnotationsFromMethod(entityClass, method, 0, entityClass);
            // add them all to metadata
            for (Class<?> jpaAnnotation : jpaAnnotations)
            {
                CallbackMethod callbackMethod = new InternalCallbackMethod(metadata, method);
                addCallBackMethod(metadata, jpaAnnotation, callbackMethod);
            }
        }
    }
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.