Custom Queries
The Custom Queries screen lets each application override the SQL Nomasx-1 runs by default. One line per (Application, Method) pair — Method is the connector hook (for example get_users, get_assignments, get_object_usage) and SQL Blob carries the replacement SQL. Optional dedicated JDBC / user / password let the override target a different schema than the application's main one.
This is the extension point. When a source system stores its security tables differently from the canonical Nomasx-1 expectation, override the method here rather than touching the product.
At a glance
Goal of the view
- Override per application. A row replaces the default query Nomasx-1 would run for the named method on the named application.
- Add a separate connection if needed. When the override SQL targets a different schema or different credentials, the dedicated JDBC / User / Password columns carry them; otherwise the override runs against the application's main connection.
- Trace the change. Audit user + Audit date record who introduced the override and when — useful when a scan starts behaving differently.
Columns
| Column | Source | What it tells you |
|---|---|---|
| Application ID | SQL_APPS_ID — application identifier. Joined to Applications for the friendly name. | Which application the override applies to. |
| Method | SQL_METHOD — connector hook name. | The query slot being overridden. |
| SQL Blob | SQL_BLOB — text. Hidden by default. | The replacement SQL fragment. |
| JDBC / User / Password | SQL_JDBC, SQL_USER, SQL_PASSWORD — optional. Hidden. | Dedicated connection used by the override. |
| Audit user / date | SQL_AUDIT_USER, SQL_AUDIT_DATE — who / when. | Change traceability. |
Edit dialog
Click Add in the toolbar to declare a new override, or double-click a row to edit. The dialog has three tabs.
Tab 1 — Properties
The pair that identifies the override. Both fields are mandatory.
| Field | What to enter |
|---|---|
| Application | Drop-down list of declared applications. The override applies to this one only. |
| Method | Name of the connector hook (get_users, get_assignments, get_object_usage, …) being overridden. |
Tab 2 — Database
Optional dedicated connection. Leave the three fields empty to run the override against the application's main connection.
| Field | What to enter |
|---|---|
| User | Read-only account used to run the override SQL. |
| Password | Password for the account. Stored encrypted. |
| JDBC | JDBC URL when the override targets a different schema than the application's main one. |
Tab 3 — Query
The replacement SQL itself. Required.
| Field | What to enter |
|---|---|
| SQL Blob | Multi-line text. Paste the SQL Nomasx-1 should run instead of the default for the method declared on the Properties tab. |
Tips & best practices
- Test the SQL outside Nomasx-1 first — a syntactically broken override surfaces as an empty grid on the consuming screen.
- Keep override scopes tight. Override one method at a time rather than rewriting an entire branch — easier to maintain and to roll back.
- Document the why in the change description during code review or in a ticket — six months later, the override has to be readable by a different administrator.
- Remove the row when no longer needed so Nomasx-1 falls back to the default behaviour for that method.