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()
  • Method Details

    • getInstance

      public static MetaDataUtilities getInstance()
      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 string, never null
    • isReservedTable

      public boolean isReservedTable(String tableName)
      Returns whether the given tablename is reserved.
      Parameters:
      tableName - the tablename, with or without schema
      Returns:
      true if reserved