Class MetaDataUtilities

java.lang.Object
org.tentackle.sql.metadata.MetaDataUtilities

@Service(MetaDataUtilities.class) public class MetaDataUtilities extends Object
Database metadata utility methods.
Replaceable by application-specific implementation via Service annotation.
Author:
harald
  • Constructor Details

    • MetaDataUtilities

      public MetaDataUtilities()
      Creates the utilities.
      Builds the map of JDBC type names.
  • Method Details

    • getInstance

      public static MetaDataUtilities getInstance()
      Gets the singleton.
      Returns:
      the singleton
    • jdbcTypeToString

      public String jdbcTypeToString(int jdbcType)
      Converts a JDBC type to a string.
      Parameters:
      jdbcType - the JDBC type
      Returns:
      the name of the Types constant, UNKNOWN if no such constant
    • isReservedTable

      public boolean isReservedTable(String tableName)
      Returns whether the given table name is reserved by Tentackle.
      The check is case-insensitive and ignores the schema.
      Parameters:
      tableName - the table name, with or without schema
      Returns:
      true if reserved