Enhance
Stay organized with collections
Save and categorize content based on your preferences.
- java.lang.Object
-
- com.google.appengine.tools.enhancer.Enhance
-
public class Enhance
extends java.lang.Object
The command-line interface for ORM enhancing. Usage:
java -cp [classpath]
com.google.appengine.tools.enhancer.Enhance [options] [jdo-files] [class-files]
where options can be
-persistenceUnit [persistence-unit-name] : Name of a "persistence-unit" containing the classes
to enhance
-d [target-dir-name] : Write the enhanced classes to the specified directory
-api [api-name] : Name of the API we are enhancing for (JDO, JPA). Default is JDO
-enhancerName [name] : Name of the ClassEnhancer to use. Options ASM
-checkonly : Just check the classes for enhancement status
-v : verbose output
-enhancerVersion [version] : The version of the DataNucleus enhancer to use, where version
corresponds to a directory under lib/opt/user/datanucleus in the
sdk.
where classpath must contain the following
- your classes
- your meta-data files
-
-
Constructor Summary
Constructors
Constructor and Description |
Enhance(java.lang.String[] args) |
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Enhance
public Enhance(java.lang.String[] args)
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["The `Enhance` class is a command-line tool for enhancing classes for ORM (Object-Relational Mapping) using the `com.google.appengine.tools.enhancer` package."],["Users can specify options such as `-persistenceUnit`, `-d` (target directory), `-api` (JDO or JPA), `-enhancerName`, `-checkonly`, `-v` (verbose), and `-enhancerVersion` when running the tool from the command line."],["The tool can be invoked using the command: `java -cp [classpath] com.google.appengine.tools.enhancer.Enhance [options] [jdo-files] [class-files]`."],["The `Enhance` class provides a constructor that takes an array of `String` arguments and a static `main` method which also accepts `String` arguments."],["The classpath for the command-line tool must include the user's classes and meta-data files for proper enhancement."]]],[]]