| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private final List | |
| private final Map | |
| private final Map | |
| private final Map | |
| private static SqlGeneratorFactory |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | checkType(Type type, SqlStatement statement, SqlGenerator<T extends SqlStatement> generator, Database database, SortedSet<SqlGenerator<T extends SqlStatement>> validGenerators)
|
| private SqlGeneratorChain | |
| public boolean | |
| public Sql[] | |
| public Sql[] | |
| public Sql[] | |
| public boolean | generateStatementsVolatile(SqlStatement statement, Database database)
Return true if the SqlStatement class queries the database in any way to determine Statements to execute. |
| public Set | |
| protected Collection | |
| public synchronized SortedSet | |
| private Type[] | |
| private Type | |
| public static synchronized SqlGeneratorFactory | |
| private boolean | |
| private Sql[] | Returns: the generated SQLthe generated SQL sqls)Save the generated SQL in the scope. |
| public void | |
| public static synchronized void | |
| public boolean | |
| public void | |
| public void | |
| public ValidationErrors | |
| public Warnings |
| GENERATED_SQL_ARRAY_SCOPE_KEY | back to summary |
|---|---|
| public static final String GENERATED_SQL_ARRAY_SCOPE_KEY | |
| generators | back to summary |
|---|---|
| private final List<SqlGenerator<T extends SqlStatement>> generators | |
| generatorsByKey | back to summary |
|---|---|
| private final Map<String, SortedSet<SqlGenerator<T extends SqlStatement>>> generatorsByKey | |
| genericInterfacesCache | back to summary |
|---|---|
| private final Map<Class<?>, Type[]> genericInterfacesCache | |
| genericSuperClassCache | back to summary |
|---|---|
| private final Map<Class<?>, Type> genericSuperClassCache | |
| instance | back to summary |
|---|---|
| private static SqlGeneratorFactory instance | |
| SqlGeneratorFactory | back to summary |
|---|---|
| private SqlGeneratorFactory() | |
| checkType | back to summary |
|---|---|
| private void checkType(Type type, SqlStatement statement, SqlGenerator<T extends SqlStatement> generator, Database database, SortedSet<SqlGenerator<T extends SqlStatement>> validGenerators) | |
| createGeneratorChain | back to summary |
|---|---|
| private SqlGeneratorChain | |
| generateRollbackStatementsVolatile | back to summary |
|---|---|
| public boolean generateRollbackStatementsVolatile(SqlStatement statement, Database database) | |
| generateSql | back to summary |
|---|---|
| public Sql[] generateSql(Change change, Database database) | |
| generateSql | back to summary |
|---|---|
| public Sql[] generateSql(SqlStatement[] statements, Database database) | |
| generateSql | back to summary |
|---|---|
| public Sql[] generateSql(SqlStatement statement, Database database) | |
| generateStatementsVolatile | back to summary |
|---|---|
| public boolean generateStatementsVolatile(SqlStatement statement, Database database) Return true if the SqlStatement class queries the database in any way to determine Statements to execute. If the statement queries the database, it cannot be used in updateSql type operations | |
| getAffectedDatabaseObjects | back to summary |
|---|---|
| public Set | |
| getGenerators | back to summary |
|---|---|
| protected Collection | |
| getGenerators | back to summary |
|---|---|
| public synchronized SortedSet | |
| getGenericInterfaces | back to summary |
|---|---|
| private Type[] getGenericInterfaces(Class<?> clazz) | |
| getGenericSuperclass | back to summary |
|---|---|
| private Type getGenericSuperclass(Class<?> clazz) | |
| getInstance | back to summary |
|---|---|
| public static synchronized SqlGeneratorFactory getInstance() Return singleton SqlGeneratorFactory | |
| isTypeEqual | back to summary |
|---|---|
| private boolean isTypeEqual(Type aType, Class<T> aClass) | |
| putSqlArrayInScope | back to summary |
|---|---|
| private Sql[] putSqlArrayInScope(Sql[] sqls) Save the generated SQL in the scope. | |
| register | back to summary |
|---|---|
| public void register(SqlGenerator<T extends SqlStatement> generator) | |
| reset | back to summary |
|---|---|
| public static synchronized void reset() | |
| supports | back to summary |
|---|---|
| public boolean supports(SqlStatement statement, Database database) | |
| unregister | back to summary |
|---|---|
| public void unregister(SqlGenerator<T extends SqlStatement> generator) | |
| unregister | back to summary |
|---|---|
| public void unregister(Class<T> generatorClass) | |
| validate | back to summary |
|---|---|
| public ValidationErrors validate(SqlStatement statement, Database database) | |
| warn | back to summary |
|---|---|
| public Warnings warn(SqlStatement statement, Database database) | |