Gets the connection string.

@param m
the m
@return the connection string
351882
public String getConnectionString(EntityMetadata m)
    {
        Properties properties = new Properties();

        String fileName = "teradata.properties";
        InputStream inputStream = getClass().getClassLoader().getResourceAsStream(fileName);

        if (inputStream != null)
        {
            try
            {
                properties.load(inputStream);
            }
            catch (IOException e)
            {
                throw new RuntimeException("Property file: " + fileName + "not found in the classpath", e);
            }
        }
        else
        {
            throw new RuntimeException("Property file: " + fileName + "not found in the classpath");
        }

        String connectionString = "jdbc:teradata://" + properties.getProperty("teradata.host") + "/database="
                + m.getSchema() + ",tmode=ANSI,charset=UTF8,user=" + properties.getProperty("teradata.user")
                + ",password=" + properties.getProperty("teradata.password") + "";
        return connectionString;
    }
1078815
public String getName()
	{
		// do our own IP:port string, since InetAddress.toString() always prepends a '/'
		final InetSocketAddress a = conn.getRemoteAddress();
		return "link " + a.getAddress().getHostAddress() + ":" + a.getPort();
	}
1065846
public Connection getConnection() throws SQLException {
        Connection conn = null;
        if (driver != null) {
            Properties props = new Properties();
            if (userName != null) {
                props.put("user", userName);
            }
            if (password != null) {
                props.put("password", password);
            }
            conn = driver.connect(jdbcURL, props);
        }
        if (conn == null) {
            if (userName != null) {
                conn = DriverManagerAccessor.getConnection(jdbcURL, userName, password);
            } else {
                conn = DriverManagerAccessor.getConnection(jdbcURL);
            }
        }
        return conn;
    }
605536
public MPConnection getMPConnection(SIBUuid8 remoteUuid)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getMPConnection", new Object[] { remoteUuid });

    MPConnection mpConn;
    synchronized(_mpConnectionsByMEConnection)
    {
      //look up the MPConnection based on the cellule
      mpConn = _mpConnectionsByMEUuid.get(remoteUuid);      
    }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getMPConnection", mpConn);
    
    //return the MPConnection
    return mpConn;
  }
1102039
public ConnectionInfo getConnection(String name) {
    final URI uri = uriWithPath("./connections/" + encodePathSegment(name));
    return this.rt.getForObject(uri, ConnectionInfo.class);
  }
231206
public String getString() 
    {
        String strFinal = FirstMLastConverter.partsToName(m_recThis, m_iNamePrefix, m_iNameFirst, m_iNameMiddle, m_iNameSur, m_iNameSuffix, m_iNameTitle);
        int maxLength = this.getMaxLength();
        if (strFinal.length() > maxLength)
            strFinal = strFinal.substring(0, maxLength);    // Truncate to max length
        return strFinal;
    }
1143816
public Map<String, Object> getOutboundConnectionInfo() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.entry(tc, "getOutboundConnectionInfo");
        Map<String, Object> outboundConnectionInfo = ThreadManager.getInstance().getOutboundConnectionInfo();
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.exit(tc, "getOutboundConnectionInfo", outboundConnectionInfo);
        return outboundConnectionInfo;
    }
313516
public String str()
  {
    String str = m_DTMXRTreeFrag.getDTM().getStringValue(m_dtmRoot).toString();

    return (null == str) ? "" : str;
  }
1324154
@Override
	public Connection getConnection() {
		try {
			String jdbcUrl = props.get(PROPS_JDBC_URL);
			String jdbcUser = props.get(PROPS_JDBC_USER);
			String jdbcPassword = props.get(PROPS_JDBC_PASSWORD);

			Connection connection = DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcPassword);

			String schema = getSchema();
			if (schema != null) {
				connection.setSchema(schema);
			}
			connection.setAutoCommit(getAutoCommit());
			connection.setReadOnly(getReadOnly());
			int transactionIsolation = getTransactionIsolation();
			if (transactionIsolation > 0) {
				connection.setTransactionIsolation(transactionIsolation);
			}
			return connection;
		} catch (SQLException ex) {
			ex.printStackTrace();
			return null;
		}
	}
679796
public Map<String, Object> getInboundConnectionInfo() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.entry(tc, "getInboundConnectionInfo");
        Map<String, Object> inboundConnectionInfo = ThreadManager.getInstance().getInboundConnectionInfo();
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.exit(tc, "getInboundConnectionInfo", inboundConnectionInfo);
        return inboundConnectionInfo;
    }
180821
public static String getMethodDescriptor(final Method m) {
        Class<?>[] parameters = m.getParameterTypes();
		StringBuilder sb = new StringBuilder();
        sb.append('(');
        for (int i = 0; i < parameters.length; ++i) {
            getDescriptor(sb, parameters[i]);
        }
        sb.append(')');
        getDescriptor(sb, m.getReturnType());
        return sb.toString();
    }
1273379
public Connection getConnection() throws IOException {
		Connection conn = null;
		try {
			if (this.datasource != null) {
				try {
					Class.forName(datasource.get("driver"));
				} catch (ClassNotFoundException e) {
					throw new IOException("Load jdbc driver fail: " + datasource.get("driver"));
				}
				String url = datasource.get("url");
				String user = datasource.get("user");
				String password = datasource.get("password");
				if (StringUtils.isNoneBlank(user)) {
					conn = DriverManager.getConnection(url, user, password);
				} else {
					conn = DriverManager.getConnection(url);
				}
				conn.setAutoCommit(datasource.getBoolean("auto_commit", true));
			}
		} catch (Exception e) {
			throw new IOException(e);
		}
		return conn;
	}
1263324
public static Charset getCharset(MediaType m) {
        String name = (m == null) ? null : m.getParameters().get(MediaType.CHARSET_PARAMETER);
        try {
            return (name == null) ? Charsets.UTF_8 : Charset.forName(name);
        } catch (Exception e) {
            return Charsets.UTF_8;
        }
    }
1150304
public String getText()
    {
        String strText = super.getText();
        if (strText != null)
            if (strText.equals(m_strDescription))
                strText = Constants.BLANK;
        return strText;
    }
679246
@Override
    public String getConnectedMEName() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getConnectedMEName");
        String meName = coreConnection.getMeName();
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "getConnectedMEName", meName);
        return meName;
    }
828653
public static String[] getMethodParamNames(final Method m) {
        if (METHOD_NAMES_POOL.containsKey(m)) return METHOD_NAMES_POOL.get(m);

        final String[] paramNames = new String[m.getParameterTypes().length];
        final String   n          = m.getDeclaringClass().getName();
        ClassReader    cr;
        try {
            cr = new ClassReader(n);
        } catch (IOException e) {
            return null;
        }
        cr.accept(new ClassVisitor(Opcodes.ASM5) {
            @Override
            public MethodVisitor visitMethod(final int access, final String name, final String desc, final String signature, final String[] exceptions) {
                final Type[] args = Type.getArgumentTypes(desc);
                // The method name is the same and the number of parameters is the same
                if (!name.equals(m.getName()) || !sameType(args, m.getParameterTypes())) {
                    return super.visitMethod(access, name, desc, signature, exceptions);
                }
                MethodVisitor v = super.visitMethod(access, name, desc, signature, exceptions);
                return new MethodVisitor(Opcodes.ASM5, v) {
                    @Override
                    public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) {
                        int i = index - 1;
                        // if it is a static method, the first is the parameter
                        // if it's not a static method, the first one is "this" and then the parameter of the method
                        if (Modifier.isStatic(m.getModifiers())) {
                            i = index;
                        }
                        if (i >= 0 && i < paramNames.length) {
                            paramNames[i] = name;
                        }
                        super.visitLocalVariable(name, desc, signature, start, end, index);
                    }
                };
            }
        }, 0);
        METHOD_NAMES_POOL.put(m, paramNames);
        return paramNames;
    }
936725
private ExtendedManagementProtocol getJMConnection() throws IOException {
		String jmHost = config.getString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY, null);
		String jmPort = config.getString(ConfigConstants.JOB_MANAGER_IPC_PORT_KEY, null);
		
		return RPC.getProxy(ExtendedManagementProtocol.class,
				new InetSocketAddress(jmHost, Integer.parseInt(jmPort)), NetUtils.getSocketFactory());
	}