Class Syntax

java.lang.Object
org.apache.sis.internal.metadata.sql.Syntax
Direct Known Subclasses:
Database, SQLBuilder

public class Syntax extends Object
Information about the syntax to use for building SQL statements. This object extract from DatabaseMetaData the information needed by SQLBuilder. It can be cached if many SQLBuilder instances are going to be created.
Since:
1.1
Version:
1.1
Author:
Martin Desruisseaux (Geomatys)
  • Field Details

    • dialect

      public final Dialect dialect
      The database dialect. This is used for a few database-dependent syntax.
  • Constructor Details

    • Syntax

      public Syntax(DatabaseMetaData metadata, boolean quoteSchema) throws SQLException
      Creates a new Syntax initialized from the given database metadata.
      Parameters:
      metadata - the database metadata.
      quoteSchema - whether the schema name should be written between quotes.
      Throws:
      SQLException - if an error occurred while fetching the database metadata.