Class NativeSqlCache

java.lang.Object
org.litebridge.orm.nativesql.NativeSqlCache

public final class NativeSqlCache extends Object
Cache for parsed named parameter-based queries.
  • Constructor Details

    • NativeSqlCache

      public NativeSqlCache()
  • Method Details

    • getCachedSql

      public ParsedSql getCachedSql(String rawSql)
      Retrieves a cached parsed SQL statement for the given raw SQL string.

      If the SQL statement is not found in the cache, it is parsed and added to the cache.

      Parameters:
      rawSql - The raw SQL string to retrieve or parse.
      Returns:
      The parsed SQL statement.