@Test public void testGetPropertyInfo1() throws Exception { DriverPropertyInfo info[] = drv.getPropertyInfo("jdbc:teiid:vdb@mm: assertEquals(29, info.length); assertEquals(false, info[1].required); assertEquals("ApplicationName", info[1].name); assertEquals("x", info[1].value); for (DriverPropertyInfo dpi : info) { assertFalse(dpi.name, dpi.description.startsWith("<Missing message")); } }
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException { if(info == null) { info = new Properties(); } else { info = PropertiesUtils.clone(info); } List<DriverPropertyInfo> driverProps = new LinkedList<DriverPropertyInfo>(); parseURL(url, info); for (String property: JDBCURL.KNOWN_PROPERTIES.keySet()) { DriverPropertyInfo dpi = new DriverPropertyInfo(property, info.getProperty(property)); if (property.equals(BaseDataSource.VDB_NAME)) { dpi.required = true; } dpi.description = JDBCPlugin.Util.getString(property + "_desc"); if (JDBCPlugin.Util.keyExists(property + "_choices")) { dpi.choices = JDBCPlugin.Util.getString(property + "_choices").split(","); } driverProps.add(dpi); } DriverPropertyInfo [] propInfo = new DriverPropertyInfo[driverProps.size()]; return driverProps.toArray(propInfo); }
TeiidDriver implements Driver { public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException { if(info == null) { info = new Properties(); } else { info = PropertiesUtils.clone(info); } List<DriverPropertyInfo> driverProps = new LinkedList<DriverPropertyInfo>(); parseURL(url, info); for (String property: JDBCURL.KNOWN_PROPERTIES.keySet()) { DriverPropertyInfo dpi = new DriverPropertyInfo(property, info.getProperty(property)); if (property.equals(BaseDataSource.VDB_NAME)) { dpi.required = true; } dpi.description = JDBCPlugin.Util.getString(property + "_desc"); if (JDBCPlugin.Util.keyExists(property + "_choices")) { dpi.choices = JDBCPlugin.Util.getString(property + "_choices").split(","); } driverProps.add(dpi); } DriverPropertyInfo [] propInfo = new DriverPropertyInfo[driverProps.size()]; return driverProps.toArray(propInfo); } }
TeiidDriver implements Driver { public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException { if(info == null) { info = new Properties(); } else { info = PropertiesUtils.clone(info); } List<DriverPropertyInfo> driverProps = new LinkedList<DriverPropertyInfo>(); parseURL(url, info); for (String property: JDBCURL.KNOWN_PROPERTIES.keySet()) { DriverPropertyInfo dpi = new DriverPropertyInfo(property, info.getProperty(property)); if (property.equals(BaseDataSource.VDB_NAME)) { dpi.required = true; } dpi.description = JDBCPlugin.Util.getString(property + "_desc"); if (JDBCPlugin.Util.keyExists(property + "_choices")) { dpi.choices = JDBCPlugin.Util.getString(property + "_choices").split(","); } driverProps.add(dpi); } DriverPropertyInfo [] propInfo = new DriverPropertyInfo[driverProps.size()]; return driverProps.toArray(propInfo); }  }
TeiidDriver implements Driver { public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException { if(info == null) { info = new Properties(); } else { info = PropertiesUtils.clone(info); } List<DriverPropertyInfo> driverProps = new LinkedList<DriverPropertyInfo>(); parseURL(url, info); for (String property: JDBCURL.KNOWN_PROPERTIES.keySet()) { DriverPropertyInfo dpi = new DriverPropertyInfo(property, info.getProperty(property)); if (property.equals(BaseDataSource.VDB_NAME)) { dpi.required = true; } dpi.description = JDBCPlugin.Util.getString(property + "_desc"); if (JDBCPlugin.Util.keyExists(property + "_choices")) { dpi.choices = JDBCPlugin.Util.getString(property + "_choices").split(","); } driverProps.add(dpi); } DriverPropertyInfo [] propInfo = new DriverPropertyInfo[driverProps.size()]; return driverProps.toArray(propInfo); }  static TeiidDriver getInstance(); ConnectionImpl connect(String url, Properties info); void setLocalProfile(ConnectionProfile embeddedProfile); void setSocketProfile(ConnectionProfile socketProfile); boolean acceptsURL(String url); int getMajorVersion(); int getMinorVersion(); String getDriverName(); DriverPropertyInfo[] getPropertyInfo(String url, Properties info); boolean jdbcCompliant(); Logger getParentLogger(); }
TeiidDriver implements Driver { public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException { if(info == null) { info = new Properties(); } else { info = PropertiesUtils.clone(info); } List<DriverPropertyInfo> driverProps = new LinkedList<DriverPropertyInfo>(); parseURL(url, info); for (String property: JDBCURL.KNOWN_PROPERTIES.keySet()) { DriverPropertyInfo dpi = new DriverPropertyInfo(property, info.getProperty(property)); if (property.equals(BaseDataSource.VDB_NAME)) { dpi.required = true; } dpi.description = JDBCPlugin.Util.getString(property + "_desc"); if (JDBCPlugin.Util.keyExists(property + "_choices")) { dpi.choices = JDBCPlugin.Util.getString(property + "_choices").split(","); } driverProps.add(dpi); } DriverPropertyInfo [] propInfo = new DriverPropertyInfo[driverProps.size()]; return driverProps.toArray(propInfo); }  static TeiidDriver getInstance(); ConnectionImpl connect(String url, Properties info); void setLocalProfile(ConnectionProfile embeddedProfile); void setSocketProfile(ConnectionProfile socketProfile); boolean acceptsURL(String url); int getMajorVersion(); int getMinorVersion(); String getDriverName(); DriverPropertyInfo[] getPropertyInfo(String url, Properties info); boolean jdbcCompliant(); Logger getParentLogger();  }