Examples of XPackage


Examples of org.hibernate.annotations.common.reflection.XPackage

      }
    }
  }

  public static void bindPackage(String packageName, Mappings mappings) {
    XPackage pckg;
    try {
      pckg = mappings.getReflectionManager().packageForName( packageName );
    }
    catch ( ClassNotFoundException cnf ) {
      LOG.packageNotFound( packageName );
      return;
    }
    if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
      SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
      if ( LOG.isTraceEnabled() ) {
        LOG.tracev( "Add sequence generator with name: {0}", idGen.getName() );
      }
    }
    if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
      TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );

    }
    bindGenericGenerators( pckg, mappings );
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.XPackage

      }
    }
  }

  public static void bindPackage(String packageName, Mappings mappings) {
    XPackage pckg;
    try {
      pckg = mappings.getReflectionManager().packageForName( packageName );
    }
    catch ( ClassNotFoundException cnf ) {
      LOG.packageNotFound( packageName );
      return;
    }
    if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
      SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
      if ( LOG.isTraceEnabled() ) {
        LOG.tracev( "Add sequence generator with name: {0}", idGen.getName() );
      }
    }
    if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
      TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );

    }
    bindGenericGenerators( pckg, mappings );
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.XPackage

      }
    }
  }

  public static void bindPackage(String packageName, Mappings mappings) {
    XPackage pckg;
    try {
      pckg = mappings.getReflectionManager().packageForName( packageName );
    }
    catch ( ClassNotFoundException cnf ) {
      LOG.packageNotFound( packageName );
      return;
    }
    if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
      SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
      if ( LOG.isTraceEnabled() ) {
        LOG.tracev( "Add sequence generator with name: {0}", idGen.getName() );
      }
    }
    if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
      TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );

    }
    bindGenericGenerators( pckg, mappings );
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.XPackage

      }
    }
  }

  public static void bindPackage(String packageName, Mappings mappings) {
    XPackage pckg;
    try {
      pckg = mappings.getReflectionManager().packageForName( packageName );
    }
    catch ( ClassNotFoundException cnf ) {
      LOG.packageNotFound( packageName );
      return;
    }
    if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
      SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
      if ( LOG.isTraceEnabled() ) {
        LOG.tracev( "Add sequence generator with name: {0}", idGen.getName() );
      }
    }
    if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
      TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );

    }
    bindGenericGenerators( pckg, mappings );
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.XPackage

      }
    }
  }

  public static void bindPackage(String packageName, Mappings mappings) {
    XPackage pckg;
    try {
      pckg = mappings.getReflectionManager().packageForName( packageName );
    }
    catch ( ClassNotFoundException cnf ) {
            LOG.packageNotFound(packageName);
      return;
    }
    if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
      SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
            LOG.trace("Add sequence generator with name: " + idGen.getName());
    }
    if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
      TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );

    }
    bindGenericGenerators( pckg, mappings );
View Full Code Here

Examples of org.hibernate.reflection.XPackage

      }
    }
  }

  public static void bindPackage(String packageName, ExtendedMappings mappings) {
    XPackage pckg = null;
    try {
      pckg = mappings.getReflectionManager().packageForName( packageName );
    }
    catch (ClassNotFoundException cnf) {
      log.warn( "Package not found or wo package-info.java: " + packageName );
      return;
    }
    if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
      SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
      log.debug( "Add sequence generator with name: " + idGen.getName() );
    }
    if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
      TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );

    }
    if ( pckg.isAnnotationPresent( GenericGenerator.class ) ) {
      GenericGenerator ann = pckg.getAnnotation( GenericGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
    }
    bindQueries( pckg, mappings );
    bindFilterDefs( pckg, mappings );
View Full Code Here

Examples of org.hibernate.reflection.XPackage

      }
    }
  }

  public static void bindPackage(String packageName, ExtendedMappings mappings) {
    XPackage pckg = null;
    try {
      pckg = mappings.getReflectionManager().packageForName( packageName );
    }
    catch (ClassNotFoundException cnf) {
      log.warn( "Package not found or wo package-info.java: " + packageName );
      return;
    }
    if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
      SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
      log.debug( "Add sequence generator with name: " + idGen.getName() );
    }
    if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
      TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );

    }
    if ( pckg.isAnnotationPresent( GenericGenerator.class ) ) {
      GenericGenerator ann = pckg.getAnnotation( GenericGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
    }
    bindQueries( pckg, mappings );
    bindFilterDefs( pckg, mappings );
View Full Code Here

Examples of org.hibernate.reflection.XPackage

      }
    }
  }

  public static void bindPackage(String packageName, ExtendedMappings mappings) {
    XPackage pckg = null;
    try {
      pckg = mappings.getReflectionManager().packageForName( packageName );
    }
    catch (ClassNotFoundException cnf) {
      log.warn( "Package not found or wo package-info.java: " + packageName );
      return;
    }
    if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
      SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
      log.debug( "Add sequence generator with name: " + idGen.getName() );
    }
    if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
      TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );

    }
    if ( pckg.isAnnotationPresent( GenericGenerator.class ) ) {
      GenericGenerator ann = pckg.getAnnotation( GenericGenerator.class );
      IdGenerator idGen = buildIdGenerator( ann, mappings );
      mappings.addGenerator( idGen );
    }
    bindQueries( pckg, mappings );
    bindFilterDefs( pckg, mappings );
View Full Code Here

Examples of xjavadoc.XPackage

     */
    protected String getGeneratedFileName(XClass clazz) throws XDocletException
    {
        Log log = LogUtil.getLog(WsdlSubTask.class, "getGeneratedFileName");

        XPackage pak = clazz.getContainingPackage();
        String package_structure = null;

        if (isPrefixWithPackageStructure() == true)
            // This will do package substitution too
            package_structure = PackageTagsHandler.packageNameAsPathFor(pak);
View Full Code Here

Examples of xjavadoc.XPackage

        for (Iterator i = classes.iterator(); i.hasNext(); ) {
            packages.add(((XClass) i.next()).getContainingPackage());
        }

        XPackage currentPackage = null;

        for (Iterator packageIterator = packages.iterator(); packageIterator.hasNext(); ) {
            currentPackage = (XPackage) packageIterator.next();
            setCurrentPackage(currentPackage);

            File oldDestDir = getDestDir();
            File dir = new File(getDestDir(), PackageTagsHandler.packageNameAsPathFor(currentPackage));

            setDestDir(dir);
            setTemplateURL(getClass().getResource("resources/classes-list.xdt"));
            setDestinationFile("classes-list.html");
            startProcess();

            classes = currentPackage.getClasses();
            setTemplateURL(getClass().getResource("resources/class-details.xdt"));
            for (Iterator i = classes.iterator(); i.hasNext(); ) {
                setCurrentClass((XClass) i.next());
                setDestinationFile(getCurrentClass().getName() + "-details.html");
                startProcess();
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.