@Test public void testGetIdentifierQuoteString() throws SQLException { try (Connection conn = DriverManager.getConnection("jdbc:hsqldb:res:mydb", "sa", "")) { assertEquals("\"", SqlIdentifierQuoter.getIdentifierQuoteString(conn.getMetaData())); } }
@VisibleForTesting @NonNull static String getIdentifierQuoteString(@NonNull DatabaseMetaData metaData) throws SQLException { String identifierQuoteString = metaData.getIdentifierQuoteString(); return !isIdentifierQuotingSupported(identifierQuoteString) ? "\"" : identifierQuoteString; }
SqlIdentifierQuoter { @VisibleForTesting @NonNull static String getIdentifierQuoteString(@NonNull DatabaseMetaData metaData) throws SQLException { String identifierQuoteString = metaData.getIdentifierQuoteString(); return !isIdentifierQuotingSupported(identifierQuoteString) ? "\"" : identifierQuoteString; } }
SqlIdentifierQuoter { @VisibleForTesting @NonNull static String getIdentifierQuoteString(@NonNull DatabaseMetaData metaData) throws SQLException { String identifierQuoteString = metaData.getIdentifierQuoteString(); return !isIdentifierQuotingSupported(identifierQuoteString) ? "\"" : identifierQuoteString; }  }
SqlIdentifierQuoter { @VisibleForTesting @NonNull static String getIdentifierQuoteString(@NonNull DatabaseMetaData metaData) throws SQLException { String identifierQuoteString = metaData.getIdentifierQuoteString(); return !isIdentifierQuotingSupported(identifierQuoteString) ? "\"" : identifierQuoteString; }  @NonNull abstract String quote(@NonNull String identifier, boolean force); @NonNull static SqlIdentifierQuoter create(@NonNull DatabaseMetaData metaData); }
SqlIdentifierQuoter { @VisibleForTesting @NonNull static String getIdentifierQuoteString(@NonNull DatabaseMetaData metaData) throws SQLException { String identifierQuoteString = metaData.getIdentifierQuoteString(); return !isIdentifierQuotingSupported(identifierQuoteString) ? "\"" : identifierQuoteString; }  @NonNull abstract String quote(@NonNull String identifier, boolean force); @NonNull static SqlIdentifierQuoter create(@NonNull DatabaseMetaData metaData);  }