public final class BindingResult extends Object
Immutable. empty() is the singleton returned when binding flags
are off (the default) — accessors are guaranteed non-null even in this case
(plan §5.6, §12).
Filter accessors (getDiagnosticsForStatement(TCustomSqlStatement),
getDiagnosticsForCode(BindingDiagnosticCode),
getDiagnosticsForClause(BindingClause)) return immutable, possibly
empty lists. They never throw on unknown inputs (including null).
| Modifier and Type | Method and Description |
|---|---|
static BindingResult |
empty()
Non-null empty singleton; safe to return when binding is disabled.
|
List<BindingDiagnostic> |
getDiagnostics() |
List<BindingDiagnostic> |
getDiagnosticsForClause(BindingClause clause) |
List<BindingDiagnostic> |
getDiagnosticsForCode(BindingDiagnosticCode code) |
List<BindingDiagnostic> |
getDiagnosticsForStatement(TCustomSqlStatement stmt) |
List<BindingReference> |
getReferences() |
List<BindingReference> |
getUnresolvedReferences() |
boolean |
hasErrors() |
static BindingResult |
of(List<BindingDiagnostic> diagnostics,
List<BindingReference> references) |
String |
toString() |
public static BindingResult empty()
public static BindingResult of(List<BindingDiagnostic> diagnostics, List<BindingReference> references)
public List<BindingDiagnostic> getDiagnostics()
public List<BindingReference> getReferences()
public boolean hasErrors()
public List<BindingDiagnostic> getDiagnosticsForStatement(TCustomSqlStatement stmt)
public List<BindingDiagnostic> getDiagnosticsForCode(BindingDiagnosticCode code)
public List<BindingDiagnostic> getDiagnosticsForClause(BindingClause clause)
public List<BindingReference> getUnresolvedReferences()