This factory is the main entry point for client code, to access jOOQ classes and functionality. Here, you can instanciate all of those objects that cannot be accessed through other objects. For example, to create a {@link Field}representing a constant value, you can write:
Field<String> field = Factory.val("Hello World")
Also, some SQL clauses cannot be expressed easily with DSL, for instance the EXISTS clause, as it is not applied on a concrete object (yet). Hence you should write
Condition condition = Factory.exists(new Factory().select(...));
A Factory
holds a reference to a JDBC {@link Connection} andoperates upon that connection. This means, that a Factory
is not thread-safe, since a JDBC Connection is not thread-safe either.
@author Lukas Eder
|
|
|
|
|
|
|
|