org.jooq.util
Class GenerationTool

java.lang.Object
  extended by org.jooq.util.GenerationTool

public class GenerationTool
extends Object

The GenerationTool takes care of generating Java code from a database schema. It takes its configuration parameters from a standard Java properties file, using this format:

Author:
Lukas Eder

Constructor Summary
GenerationTool()
           
 
Method Summary
static long copyLarge(InputStream input, OutputStream output)
          Copy bytes from a large (over 2GB) InputStream to an OutputStream.
static void main(org.jooq.util.jaxb.Configuration configuration)
           
static void main(Properties properties, String... args)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerationTool

public GenerationTool()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Parameters:
args -
Throws:
Exception

main

public static void main(Properties properties,
                        String... args)
                 throws Exception
Throws:
Exception

main

public static void main(org.jooq.util.jaxb.Configuration configuration)
                 throws Exception
Throws:
Exception

copyLarge

public static long copyLarge(InputStream input,
                             OutputStream output)
                      throws IOException
Copy bytes from a large (over 2GB) InputStream to an OutputStream.

This method buffers the input internally, so there is no need to use a BufferedInputStream.

Parameters:
input - the InputStream to read from
output - the OutputStream to write to
Returns:
the number of bytes copied
Throws:
NullPointerException - if the input or output is null
IOException - if an I/O error occurs
Since:
Commons IO 1.3


Copyright © 2012. All Rights Reserved.