Interface SQLTranslator

  • All Superinterfaces:
    org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

    public interface SQLTranslator
    extends org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
    SQL translator.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String translate​(String sql, org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement sqlStatement, DatabaseType protocolType, DatabaseType storageType)
      Translate SQL.
      • Methods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

        getType, getTypeAliases, init, isDefault
    • Method Detail

      • translate

        String translate​(String sql,
                         org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement sqlStatement,
                         DatabaseType protocolType,
                         DatabaseType storageType)
        Translate SQL.
        Parameters:
        sql - to be translated SQL
        sqlStatement - to be translated SQL statement
        protocolType - protocol type
        storageType - storage type
        Returns:
        translated SQL