Here you can find the source of isOracleForSid(DatabaseMetaData metadata, String oracleProduct)
public static boolean isOracleForSid(DatabaseMetaData metadata, String oracleProduct) throws SQLException
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt import java.sql.DatabaseMetaData; import java.sql.SQLException; public class Main { public static boolean isOracleForSid(DatabaseMetaData metadata, String oracleProduct) throws SQLException { if (metadata != null && metadata.getDatabaseProductName() != null && metadata.getDatabaseProductName().indexOf(oracleProduct) > -1) { return true; }//from w w w . j a v a 2 s. c om return false; } }