@Test public void applyInfo() throws SQLException { SeverityLevelIntegerToken token = new SeverityLevelIntegerToken(); PreparedStatement statement = mock(PreparedStatement.class); token.apply(createLogEntry(Level.INFO), statement, 1); verify(statement).setInt(1, 3); }
@Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setInt(index, getReverseOfOrdinalAsLevelValue(logEntry)); }
SeverityLevelIntegerToken implements Token { @Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setInt(index, getReverseOfOrdinalAsLevelValue(logEntry)); } }
SeverityLevelIntegerToken implements Token { @Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setInt(index, getReverseOfOrdinalAsLevelValue(logEntry)); } SeverityLevelIntegerToken(); }
SeverityLevelIntegerToken implements Token { @Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setInt(index, getReverseOfOrdinalAsLevelValue(logEntry)); } SeverityLevelIntegerToken(); @Override Collection<LogEntryValue> getRequiredLogEntryValues(); @Override void render(final LogEntry logEntry, final StringBuilder builder); @Override void apply(final LogEntry logEntry, final PreparedStatement statement, final int index); }
SeverityLevelIntegerToken implements Token { @Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setInt(index, getReverseOfOrdinalAsLevelValue(logEntry)); } SeverityLevelIntegerToken(); @Override Collection<LogEntryValue> getRequiredLogEntryValues(); @Override void render(final LogEntry logEntry, final StringBuilder builder); @Override void apply(final LogEntry logEntry, final PreparedStatement statement, final int index);  }