org.firebirdsql.jdbc.field

## Interface TrimmableField

- All Known Implementing Classes:
    FBLongVarCharField

      @InternalApi
      public interface TrimmableField

  Trim behaviour of `getString` in string fields.
  Since:
    5
  Author:
    Mark Rotteveel

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isTrimTrailing()`
    `void` | `setTrimTrailing(boolean trimTrailing)` Enable or disable trimming of trailing spaces.
    `static java.lang.String` | `trimTrailing(java.lang.String value)` Trims trailing spaces from a string `value`.

- - ### Method Detail

    - #### setTrimTrailing

          void setTrimTrailing(boolean trimTrailing)

      Enable or disable trimming of trailing spaces.

      NOTE: The behaviour applies to `FBField.getString()` and code paths that work through `getString()` (this usually includes `FBField.getObject()`.

      Parameters:
        `trimTrailing` - `true` trim trailing spaces

    - #### isTrimTrailing

          boolean isTrimTrailing()

      Returns:
        `true` trim trailing enabled, `false` trim trailing disabled

    - #### trimTrailing

          static java.lang.String trimTrailing(java.lang.String value)

      Trims trailing spaces from a string `value`.
      Parameters:
        `value` - value to trim
      Returns:
        value without trailing spaces, `null` if `value` was null

Copyright © 2001-2025 Jaybird (Firebird JDBC) team. All rights reserved.