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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Dialect
    The database dialect.
    (package private) final String
    The string that can be used to escape wildcard characters.
    (package private) final String
    The characters used for quoting identifiers, or an empty string if none.
    (package private) final boolean
    Whether the schema name should be written between quotes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Syntax(DatabaseMetaData metadata, boolean quoteSchema)
    Creates a new Syntax initialized from the given database metadata.
    Syntax(Syntax other)
    Creates a new Syntax initialized to the same metadata than the given template.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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.
    • Syntax

      Syntax(Syntax other)
      Creates a new Syntax initialized to the same metadata than the given template.
      Parameters:
      other - the template from which to copy metadata.