Skip to content

Commit

Permalink
Add GenerationTool JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kxbmap committed Jun 29, 2022
1 parent 2b01cb6 commit be9b94c
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;


/**
* Wrapper of jOOQ GenerationTool
*/
public class GenerationTool {

private static final Logger logger = LoggerFactory.getLogger(GenerationTool.class);
Expand Down Expand Up @@ -73,11 +75,21 @@ private static void showJooqLogo() {
}
}

public void generate(String[] args) throws Throwable {
/**
* Invoke jOOQ GenerationTool
* @param configurations configuration files
* @throws Throwable thrown by jOOQ GenerationTool
*/
public void generate(String[] configurations) throws Throwable {
//noinspection ConfusingArgumentToVarargsMethod
delegateMain.invokeExact(args);
delegateMain.invokeExact(configurations);
}

/**
* Entry point
* @param args configuration files
* @throws Throwable thrown by jOOQ GenerationTool
*/
public static void main(String[] args) throws Throwable {
showRunningInfo();
showJooqLogo();
Expand Down

0 comments on commit be9b94c

Please sign in to comment.