congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ManyToMany.value
Code IndexAdd Tabnine to your IDE (free)

How to use
value
method
in
net.java.ao.ManyToMany

Best Java code snippets using net.java.ao.ManyToMany.value (Showing top 6 results out of 315)

origin: net.java.dev.activeobjects/activeobjects-core

private static void validateManyToManyAnnotation(final Method method) {
  final ManyToMany manyToMany = method.getAnnotation(ManyToMany.class);
  if (manyToMany != null) {
    final Class<? extends RawEntity<?>> throughType = manyToMany.value();
    final String reverse = manyToMany.reverse();
    if (reverse.length() != 0) {
      try {
        throughType.getMethod(reverse);
      } catch (final NoSuchMethodException exception) {
        throw new IllegalArgumentException(method + " has a ManyToMany annotation with an invalid reverse element value. It must be the name of the corresponding getter method on the joining entity.", exception);
      }
    }
    if (manyToMany.through().length() != 0) {
      try {
        throughType.getMethod(manyToMany.through());
      } catch (final NoSuchMethodException exception) {
        throw new IllegalArgumentException(method + " has a ManyToMany annotation with an invalid through element value. It must be the name of the getter method on the joining entity that refers to the remote entities.", exception);
      }
    }
  }
}
origin: net.java.dev.activeobjects/activeobjects

private static void validateManyToManyAnnotation(final Method method) {
  final ManyToMany manyToMany = method.getAnnotation(ManyToMany.class);
  if (manyToMany != null) {
    final Class<? extends RawEntity<?>> throughType = manyToMany.value();
    final String reverse = manyToMany.reverse();
    if (reverse.length() != 0) {
      try {
        throughType.getMethod(reverse);
      } catch (final NoSuchMethodException exception) {
        throw new IllegalArgumentException(method + " has a ManyToMany annotation with an invalid reverse element value. It must be the name of the corresponding getter method on the joining entity.", exception);
      }
    }
    if (manyToMany.through().length() != 0) {
      try {
        throughType.getMethod(manyToMany.through());
      } catch (final NoSuchMethodException exception) {
        throw new IllegalArgumentException(method + " has a ManyToMany annotation with an invalid through element value. It must be the name of the getter method on the joining entity that refers to the remote entities.", exception);
      }
    }
  }
}
origin: net.java.dev.activeobjects/activeobjects

/**
 * @see <a href="https://studio.atlassian.com/browse/AO-325">AO-325</a>
 */
@Deprecated
private RawEntity[] legacyFetchManyToMany(final RawEntity<K> proxy, final Method method, final ManyToMany manyToManyAnnotation) throws SQLException {
  final Class<? extends RawEntity<?>> throughType = manyToManyAnnotation.value();
  final Class<? extends RawEntity<?>> type = (Class<? extends RawEntity<?>>) method.getReturnType().getComponentType();
  return retrieveRelations(proxy, null,
      Common.getMappingFields(getFieldNameConverter(),
          throughType, type), throughType, (Class<? extends RawEntity>) type,
      Common.where(manyToManyAnnotation, getFieldNameConverter()),
      Common.getPolymorphicFieldNames(getFieldNameConverter(), throughType, entityInfo.getEntityType()),
      Common.getPolymorphicFieldNames(getFieldNameConverter(), throughType, type));
}
origin: net.java.dev.activeobjects/activeobjects-core

/**
 * @see <a href="https://studio.atlassian.com/browse/AO-325">AO-325</a>
 */
@Deprecated
private RawEntity[] legacyFetchManyToMany(final RawEntity<K> proxy, final Method method, final ManyToMany manyToManyAnnotation) throws SQLException {
  final Class<? extends RawEntity<?>> throughType = manyToManyAnnotation.value();
  final Class<? extends RawEntity<?>> type = (Class<? extends RawEntity<?>>) method.getReturnType().getComponentType();
  return retrieveRelations(proxy, null,
      Common.getMappingFields(getFieldNameConverter(),
          throughType, type), throughType, (Class<? extends RawEntity>) type,
      Common.where(manyToManyAnnotation, getFieldNameConverter()),
      Common.getPolymorphicFieldNames(getFieldNameConverter(), throughType, entityInfo.getEntityType()),
      Common.getPolymorphicFieldNames(getFieldNameConverter(), throughType, type));
}
origin: net.java.dev.activeobjects/activeobjects

private RawEntity[] fetchManyToMany(final Method method, final ManyToMany annotation) throws SQLException, NoSuchMethodException {
  final Class remoteType = method.getReturnType().getComponentType();
  final Class throughType = annotation.value();
  final String whereClause = Common.where(annotation, getFieldNameConverter());
  final Preload preloadAnnotation = (Preload) remoteType.getAnnotation(Preload.class);
origin: net.java.dev.activeobjects/activeobjects-core

private RawEntity[] fetchManyToMany(final Method method, final ManyToMany annotation) throws SQLException, NoSuchMethodException {
  final Class remoteType = method.getReturnType().getComponentType();
  final Class throughType = annotation.value();
  final String whereClause = Common.where(annotation, getFieldNameConverter());
  final Preload preloadAnnotation = (Preload) remoteType.getAnnotation(Preload.class);
net.java.aoManyToManyvalue

Popular methods of ManyToMany

  • <init>
  • reverse
  • through
  • where

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • ImageIO (javax.imageio)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now