java.lang.Object
bayern.steinbrecher.dbConnector.query.QueryGenerator

public class QueryGenerator
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    @NotNull java.lang.String generateCheckDatabaseExistenceStatement​(@NotNull java.lang.String dbName)
    Since database connections currently (220-10-22) require to specify a database already on creation there not too much use in checking the existence of the database already connected to, i.e. this query is not too useful.
    @NotNull java.lang.String generateCreateTableStatement​(@NotNull java.lang.String dbName, @NotNull TableScheme<?,​?> tableScheme)  
    @NotNull java.lang.String generateQueryColumnNamesAndTypesStatement​(@NotNull java.lang.String dbName, DBConnection.Table<?,​?> table)  
    @NotNull java.lang.String generateQueryTableNamesStatement​(@NotNull java.lang.String dbName)  
    @NotNull java.lang.String generateSearchQueryStatement​(@NotNull java.lang.String dbName, DBConnection.Table<?,​?> table, @NotNull java.lang.Iterable<DBConnection.Column<?>> columnsToSelect, @NotNull java.lang.Iterable<QueryCondition<?>> conditions)  
    @NotNull java.util.Optional<java.lang.String> getType​(@NotNull java.lang.Class<?> columnType)  
    @NotNull java.util.Optional<java.lang.Class<?>> getType​(@NotNull java.lang.String sqlType)
    Returns the class used for representing values of the given SQL type.
    @NotNull java.lang.String quoteIdentifier​(@NotNull java.lang.String identifier)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait