public enum SqlObjectFactory extends Enum<SqlObjectFactory> implements ExtensionFactory<SqlObjectConfig>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<?> extensionType) |
<E> E |
attach(Class<E> extensionType,
SqlObjectConfig config,
Supplier<Handle> handle)
Create a sql object of the specified type bound to this handle.
|
SqlObjectConfig |
createConfig() |
static SqlObjectFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlObjectFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlObjectFactory INSTANCE
public static SqlObjectFactory[] values()
for (SqlObjectFactory c : SqlObjectFactory.values()) System.out.println(c);
public static SqlObjectFactory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic SqlObjectConfig createConfig()
createConfig in interface ExtensionFactory<SqlObjectConfig>public boolean accepts(Class<?> extensionType)
accepts in interface ExtensionFactory<SqlObjectConfig>public <E> E attach(Class<E> extensionType, SqlObjectConfig config, Supplier<Handle> handle)
attach in interface ExtensionFactory<SqlObjectConfig>extensionType - the type of sql object to createhandle - the Handle instance to attach ths sql object toCopyright © 2016. All rights reserved.