gpt4 book ai didi

org.hibernate.annotations.common.reflection.XMethod类的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 04:29:05 30 4
gpt4 key购买 nike

本文整理了Java中org.hibernate.annotations.common.reflection.XMethod类的一些代码示例,展示了XMethod类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMethod类的具体详情如下:
包路径:org.hibernate.annotations.common.reflection.XMethod
类名称:XMethod

XMethod介绍

[英]Represent an invokable method

The underlying layer does not guaranty that xProperty == xMethod if the underlying artefact is the same However xProperty.equals(xMethod) is supposed to return true
[中]表示一个可调用的方法
如果基础人工制品与xProperty相同,则基础层不保证xProperty==xMethod。equals(xMethod)应该返回true

代码示例

代码示例来源:origin: hibernate/hibernate-orm

private static boolean hasAnnotationsOnIdClass(XClass idClass) {
//        if(idClass.getAnnotation(Embeddable.class) != null)
//            return true;

    List<XProperty> properties = idClass.getDeclaredProperties( XClass.ACCESS_FIELD );
    for ( XProperty property : properties ) {
      if ( property.isAnnotationPresent( Column.class ) || property.isAnnotationPresent( OneToMany.class ) ||
          property.isAnnotationPresent( ManyToOne.class ) || property.isAnnotationPresent( Id.class ) ||
          property.isAnnotationPresent( GeneratedValue.class ) || property.isAnnotationPresent( OneToOne.class ) ||
          property.isAnnotationPresent( ManyToMany.class )
          ) {
        return true;
      }
    }
    List<XMethod> methods = idClass.getDeclaredMethods();
    for ( XMethod method : methods ) {
      if ( method.isAnnotationPresent( Column.class ) || method.isAnnotationPresent( OneToMany.class ) ||
          method.isAnnotationPresent( ManyToOne.class ) || method.isAnnotationPresent( Id.class ) ||
          method.isAnnotationPresent( GeneratedValue.class ) || method.isAnnotationPresent( OneToOne.class ) ||
          method.isAnnotationPresent( ManyToMany.class )
          ) {
        return true;
      }
    }
    return false;
  }

代码示例来源:origin: hibernate/hibernate-orm

List<XMethod> methods = currentClazz.getDeclaredMethods();
for ( final XMethod xMethod : methods ) {
  if ( xMethod.isAnnotationPresent( callbackType.getCallbackAnnotation() ) ) {
    Method method = reflectionManager.toMethod( xMethod );
    final String methodName = method.getName();

代码示例来源:origin: hibernate/hibernate-orm

List<XMethod> methods = currentClazz.getDeclaredMethods();
for ( final XMethod xMethod : methods ) {
  if ( xMethod.isAnnotationPresent( callbackType.getCallbackAnnotation() ) ) {
    Method method = reflectionManager.toMethod( xMethod );
    final String methodName = method.getName();
  List<XMethod> methods = xListener.getDeclaredMethods();
  for ( final XMethod xMethod : methods ) {
    if ( xMethod.isAnnotationPresent( callbackType.getCallbackAnnotation() ) ) {
      final Method method = reflectionManager.toMethod( xMethod );
      final String methodName = method.getName();

代码示例来源:origin: org.hibernate/hibernate-annotations

private static boolean hasAnnotationsOnIdClass(XClass idClass) {
//        if(idClass.getAnnotation(Embeddable.class) != null)
//            return true;

    List<XProperty> properties = idClass.getDeclaredProperties( XClass.ACCESS_FIELD );
    for ( XProperty property : properties ) {
      if ( property.isAnnotationPresent( Column.class ) || property.isAnnotationPresent( OneToMany.class ) ||
          property.isAnnotationPresent( ManyToOne.class ) || property.isAnnotationPresent( Id.class ) ||
          property.isAnnotationPresent( GeneratedValue.class ) || property.isAnnotationPresent( OneToOne.class ) ||
          property.isAnnotationPresent( ManyToMany.class )
          ) {
        return true;
      }
    }
    List<XMethod> methods = idClass.getDeclaredMethods();
    for ( XMethod method : methods ) {
      if ( method.isAnnotationPresent( Column.class ) || method.isAnnotationPresent( OneToMany.class ) ||
          method.isAnnotationPresent( ManyToOne.class ) || method.isAnnotationPresent( Id.class ) ||
          method.isAnnotationPresent( GeneratedValue.class ) || method.isAnnotationPresent( OneToOne.class ) ||
          method.isAnnotationPresent( ManyToMany.class )
          ) {
        return true;
      }
    }
    return false;
  }

代码示例来源:origin: org.hibernate.orm/hibernate-core

private static boolean hasAnnotationsOnIdClass(XClass idClass) {
  List<XProperty> properties = idClass.getDeclaredProperties( XClass.ACCESS_FIELD );
  for ( XProperty property : properties ) {
    if ( property.isAnnotationPresent( Column.class ) || property.isAnnotationPresent( OneToMany.class ) ||
        property.isAnnotationPresent( ManyToOne.class ) || property.isAnnotationPresent( Id.class ) ||
        property.isAnnotationPresent( GeneratedValue.class ) || property.isAnnotationPresent( OneToOne.class ) ||
        property.isAnnotationPresent( ManyToMany.class )
        ) {
      return true;
    }
  }
  List<XMethod> methods = idClass.getDeclaredMethods();
  for ( XMethod method : methods ) {
    if ( method.isAnnotationPresent( Column.class ) || method.isAnnotationPresent( OneToMany.class ) ||
        method.isAnnotationPresent( ManyToOne.class ) || method.isAnnotationPresent( Id.class ) ||
        method.isAnnotationPresent( GeneratedValue.class ) || method.isAnnotationPresent( OneToOne.class ) ||
        method.isAnnotationPresent( ManyToMany.class )
        ) {
      return true;
    }
  }
  return false;
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

private static boolean hasAnnotationsOnIdClass(XClass idClass) {
//        if(idClass.getAnnotation(Embeddable.class) != null)
//            return true;

    List<XProperty> properties = idClass.getDeclaredProperties( XClass.ACCESS_FIELD );
    for ( XProperty property : properties ) {
      if ( property.isAnnotationPresent( Column.class ) || property.isAnnotationPresent( OneToMany.class ) ||
          property.isAnnotationPresent( ManyToOne.class ) || property.isAnnotationPresent( Id.class ) ||
          property.isAnnotationPresent( GeneratedValue.class ) || property.isAnnotationPresent( OneToOne.class ) ||
          property.isAnnotationPresent( ManyToMany.class )
          ) {
        return true;
      }
    }
    List<XMethod> methods = idClass.getDeclaredMethods();
    for ( XMethod method : methods ) {
      if ( method.isAnnotationPresent( Column.class ) || method.isAnnotationPresent( OneToMany.class ) ||
          method.isAnnotationPresent( ManyToOne.class ) || method.isAnnotationPresent( Id.class ) ||
          method.isAnnotationPresent( GeneratedValue.class ) || method.isAnnotationPresent( OneToOne.class ) ||
          method.isAnnotationPresent( ManyToMany.class )
          ) {
        return true;
      }
    }
    return false;
  }
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

private static boolean hasAnnotationsOnIdClass(XClass idClass) {
//        if(idClass.getAnnotation(Embeddable.class) != null)
//            return true;

    List<XProperty> properties = idClass.getDeclaredProperties( XClass.ACCESS_FIELD );
    for ( XProperty property : properties ) {
      if ( property.isAnnotationPresent( Column.class ) || property.isAnnotationPresent( OneToMany.class ) ||
          property.isAnnotationPresent( ManyToOne.class ) || property.isAnnotationPresent( Id.class ) ||
          property.isAnnotationPresent( GeneratedValue.class ) || property.isAnnotationPresent( OneToOne.class ) ||
          property.isAnnotationPresent( ManyToMany.class )
          ) {
        return true;
      }
    }
    List<XMethod> methods = idClass.getDeclaredMethods();
    for ( XMethod method : methods ) {
      if ( method.isAnnotationPresent( Column.class ) || method.isAnnotationPresent( OneToMany.class ) ||
          method.isAnnotationPresent( ManyToOne.class ) || method.isAnnotationPresent( Id.class ) ||
          method.isAnnotationPresent( GeneratedValue.class ) || method.isAnnotationPresent( OneToOne.class ) ||
          method.isAnnotationPresent( ManyToMany.class )
          ) {
        return true;
      }
    }
    return false;
  }
}

代码示例来源:origin: hibernate/hibernate-entitymanager

for ( int i = 0; i < size ; i++ ) {
  final XMethod xMethod = methods.get( i );
  if ( xMethod.isAnnotationPresent( annotation ) ) {
    Method method = reflectionManager.toMethod( xMethod );
    final String methodName = method.getName();
    for ( int i = 0; i < size ; i++ ) {
      final XMethod xMethod = methods.get( i );
      if ( xMethod.isAnnotationPresent( annotation ) ) {
        final Method method = reflectionManager.toMethod( xMethod );
        final String methodName = method.getName();

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.ejb

for ( int i = 0; i < size ; i++ ) {
  final XMethod xMethod = methods.get( i );
  if ( xMethod.isAnnotationPresent( annotation ) ) {
    Method method = reflectionManager.toMethod( xMethod );
    final String methodName = method.getName();
  for ( int i = 0; i < size ; i++ ) {
    final XMethod xMethod = methods.get( i );
    if ( xMethod.isAnnotationPresent( annotation ) ) {
      final Method method = reflectionManager.toMethod( xMethod );
      final String methodName = method.getName();

代码示例来源:origin: org.hibernate.orm/hibernate-core

List<XMethod> methods = currentClazz.getDeclaredMethods();
for ( final XMethod xMethod : methods ) {
  if ( xMethod.isAnnotationPresent( callbackType.getCallbackAnnotation() ) ) {
    Method method = reflectionManager.toMethod( xMethod );
    final String methodName = method.getName();

代码示例来源:origin: org.hibernate.orm/hibernate-core

List<XMethod> methods = currentClazz.getDeclaredMethods();
for ( final XMethod xMethod : methods ) {
  if ( xMethod.isAnnotationPresent( callbackType.getCallbackAnnotation() ) ) {
    Method method = reflectionManager.toMethod( xMethod );
    final String methodName = method.getName();
  List<XMethod> methods = xListener.getDeclaredMethods();
  for ( final XMethod xMethod : methods ) {
    if ( xMethod.isAnnotationPresent( callbackType.getCallbackAnnotation() ) ) {
      final Method method = reflectionManager.toMethod( xMethod );
      final String methodName = method.getName();

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com