| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | WebApp.
This class represents index information for the GUI. |
| Modifier and Type | Field and Description |
|---|---|
| protected Properties | attributes
The session attributes |
| protected boolean | cache
Whether the response can be cached. |
| protected String | headerLanguage
The language in the HTTP header. |
| protected String | mimeType
The mime type of the current response. |
| private Profiler | |
| protected final WebServer | server
The web server. |
| protected WebSession | session
The session. |
| protected boolean | stop
Whether to close the connection. |
| private static final Comparator |
| Modifier and Type | Method and Description |
|---|---|
| private static int | addColumns(boolean mainSchema, DbTableOrView table, StringBuilder builder, int treeIndex, boolean showColumnTypes, StringBuilder columnsBuilder)
|
| private static int | addIndexes(boolean mainSchema, DatabaseMetaData meta, String table, String schema, StringBuilder buff, int treeIndex)
|
| private static int | addTableOrView(DbSchema schema, boolean mainSchema, StringBuilder builder, int treeIndex, DatabaseMetaData meta, boolean showColumns, String indentation, boolean isOracle, boolean notManyTables, DbTableOrView table, boolean isView, AtomicReference<PreparedStatement> prepRef, String indentNode)
|
| private int | |
| private String | |
| private String | |
| private String | |
| protected String | |
| private String | |
| private String | |
| private boolean | |
| private String | |
| private static String | |
| private static String | |
| private String | |
| private static String | |
| pack-priv boolean | |
| private static String | |
| private static String | |
| private String | |
| private String | |
| private String | Returns: the formatted error messagethe exception e, boolean if the current database is a H2 database isH2)Get the formatted login error message. |
| private int | |
| pack-priv String | |
| private static String | |
| private String | |
| private String | getResultSet(String sql, ResultSet rs, boolean metadata, boolean list, boolean edit, long time, boolean allowEdit)
|
| pack-priv WebSession | |
| private String | |
| private String | |
| private static String | |
| private String | |
| private String | |
| private static PreparedStatement | |
| private String | |
| pack-priv String | Returns: the name of the file to return to the clientthe file that was requested file, NetworkConnectionInfo the network connection information networkConnectionInfo)Process an HTTP request. |
| private String | |
| pack-priv void | query(Connection
the connection conn, String the statement s, int the index i, int the number of statements size, StringBuilder the target buffer buff)Execute a query and append the result to the buffer. |
| pack-priv void | setSession(WebSession
the session session, Properties the attributes attributes)Set the web session and attributes. |
| private String | |
| private String | Returns: the file to open afterwardsSave the current connection settings to the properties file. |
| private String | |
| private String | |
| private String | |
| private void | |
| private void |
| attributes | back to summary |
|---|---|
| protected Properties attributes The session attributes | |
| cache | back to summary |
|---|---|
| protected boolean cache Whether the response can be cached. | |
| headerLanguage | back to summary |
|---|---|
| protected String headerLanguage The language in the HTTP header. | |
| mimeType | back to summary |
|---|---|
| protected String mimeType The mime type of the current response. | |
| profiler | back to summary |
|---|---|
| private Profiler profiler | |
| server | back to summary |
|---|---|
| protected final WebServer server The web server. | |
| session | back to summary |
|---|---|
| protected WebSession session The session. | |
| stop | back to summary |
|---|---|
| protected boolean stop Whether to close the connection. | |
| SYSTEM_SCHEMA_COMPARATOR | back to summary |
|---|---|
| private static final Comparator<DbTableOrView> SYSTEM_SCHEMA_COMPARATOR | |
| WebApp | back to summary |
|---|---|
| pack-priv WebApp(WebServer server) | |
| addColumns | back to summary |
|---|---|
| private static int addColumns(boolean mainSchema, DbTableOrView table, StringBuilder builder, int treeIndex, boolean showColumnTypes, StringBuilder columnsBuilder) | |
| addIndexes | back to summary |
|---|---|
| private static int addIndexes(boolean mainSchema, DatabaseMetaData meta, String table, String schema, StringBuilder buff, int treeIndex) throws SQLException | |
| addTableOrView | back to summary |
|---|---|
| private static int addTableOrView(DbSchema schema, boolean mainSchema, StringBuilder builder, int treeIndex, DatabaseMetaData meta, boolean showColumns, String indentation, boolean isOracle, boolean notManyTables, DbTableOrView table, boolean isView, AtomicReference<PreparedStatement> prepRef, String indentNode) throws SQLException | |
| addTablesAndViews | back to summary |
|---|---|
| private int addTablesAndViews(DbSchema schema, boolean mainSchema, StringBuilder builder, int treeIndex) throws SQLException | |
| admin | back to summary |
|---|---|
| private String admin() | |
| adminLogin | back to summary |
|---|---|
| private String adminLogin() | |
| adminSave | back to summary |
|---|---|
| private String adminSave() | |
| adminShutdown | back to summary |
|---|---|
| protected String adminShutdown() Stop the application and the server.
| |
| adminStartTranslate | back to summary |
|---|---|
| private String adminStartTranslate() | |
| autoCompleteList | back to summary |
|---|---|
| private String autoCompleteList() | |
| checkAdmin | back to summary |
|---|---|
| private boolean checkAdmin(String file) | |
| editResult | back to summary |
|---|---|
| private String editResult() | |
| escapeData | back to summary |
|---|---|
| private static String escapeData(ResultSet rs, int columnIndex) throws SQLException | |
| escapeIdentifier | back to summary |
|---|---|
| private static String escapeIdentifier(String name) | |
| executeLoop | back to summary |
|---|---|
| private String executeLoop(Connection conn, int count, String sql) throws SQLException | |
| formatAsError | back to summary |
|---|---|
| private static String formatAsError(String s) | |
| getCache | back to summary |
|---|---|
| pack-priv boolean getCache() | |
| getComboBox | back to summary |
|---|---|
| private static String getComboBox(String[] elements, String selected) | |
| getComboBox | back to summary |
|---|---|
| private static String getComboBox(String[][] elements, String selected) | |
| getCommandHistoryString | back to summary |
|---|---|
| private String getCommandHistoryString() | |
| getHistory | back to summary |
|---|---|
| private String getHistory() | |
| getLoginError | back to summary |
|---|---|
| private String getLoginError(Exception e, boolean isH2) Get the formatted login error message. | |
| getMaxrows | back to summary |
|---|---|
| private int getMaxrows() | |
| getMimeType | back to summary |
|---|---|
| pack-priv String getMimeType() Get the current mime type.
| |
| getParameterResultSet | back to summary |
|---|---|
| private static String getParameterResultSet(ParameterMetaData meta) throws SQLException | |
| getResult | back to summary |
|---|---|
| private String getResult(Connection conn, int id, String sql, boolean allowEdit, boolean forceEdit) | |
| getResultSet | back to summary |
|---|---|
| private String getResultSet(String sql, ResultSet rs, boolean metadata, boolean list, boolean edit, long time, boolean allowEdit) throws SQLException | |
| getSession | back to summary |
|---|---|
| pack-priv WebSession getSession() | |
| getStackTrace | back to summary |
|---|---|
| private String getStackTrace(int id, Throwable e, boolean isH2) | |
| index | back to summary |
|---|---|
| private String index() | |
| linkToSource | back to summary |
|---|---|
| private static String linkToSource(String s) | |
| login | back to summary |
|---|---|
| private String login(NetworkConnectionInfo networkConnectionInfo) | |
| logout | back to summary |
|---|---|
| private String logout() | |
| prepareViewDefinitionQuery | back to summary |
|---|---|
| private static PreparedStatement prepareViewDefinitionQuery(Connection conn, DbContents contents) | |
| process | back to summary |
|---|---|
| private String process(String file, NetworkConnectionInfo networkConnectionInfo) | |
| processRequest | back to summary |
|---|---|
| pack-priv String processRequest(String file, NetworkConnectionInfo networkConnectionInfo) Process an HTTP request.
| |
| query | back to summary |
|---|---|
| private String query() | |
| query | back to summary |
|---|---|
| pack-priv void query(Connection conn, String s, int i, int size, StringBuilder buff) Execute a query and append the result to the buffer.
| |
| setSession | back to summary |
|---|---|
| pack-priv void setSession(WebSession session, Properties attributes) Set the web session and attributes.
| |
| settingRemove | back to summary |
|---|---|
| private String settingRemove() | |
| settingSave | back to summary |
|---|---|
| private String settingSave() Save the current connection settings to the properties file.
| |
| tables | back to summary |
|---|---|
| private String tables() | |
| test | back to summary |
|---|---|
| private String test(NetworkConnectionInfo networkConnectionInfo) | |
| tools | back to summary |
|---|---|
| private String tools() | |
| trace | back to summary |
|---|---|
| private void trace(String s) | |
| unescapeData | back to summary |
|---|---|
| private void unescapeData(String x, ResultSet rs, int columnIndex) throws SQLException | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | columns
The indexed columns. |
| pack-priv String | name
The index name. |
| pack-priv String | type
The index type name. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| columns | back to summary |
|---|---|
| pack-priv String columns The indexed columns. | |
| name | back to summary |
|---|---|
| pack-priv String name The index name. | |
| type | back to summary |
|---|---|
| pack-priv String type The index type name. | |
| IndexInfo | back to summary |
|---|---|
| pack-priv IndexInfo() | |