313314315316317318319320321
* * @return the JDBC driver class name if any */ public String getDriverClassName() { // get provider DriverDatabaseMetadataProvider provider = getDriverProvider(false); // return return (provider != null)? provider.getDriverClassName() : null; }
328329330331332333334335336337
public void setDriverClassName( String driverClassName ) { if (driverClassName == null) { driverProvider = null; } else { // get/create provider DriverDatabaseMetadataProvider provider = getDriverProvider(true); // set provider.setDriverClassName(driverClassName); } }
341342343344345346347348349
* * @return database URL as string */ public String getDatabaseUrl() { // get provider DriverDatabaseMetadataProvider provider = getDriverProvider(false); // return return (provider != null)? provider.getDatabaseUrl() : null; }
356357358359360361362363364365
public void setDatabaseUrl( String databaseUrl ) { if (databaseUrl == null) { driverProvider = null; } else { // get/create provider DriverDatabaseMetadataProvider provider = getDriverProvider(true); // set provider.setDatabaseUrl(databaseUrl); } }
369370371372373374375376
* * @return the user name */ public String getUserName() { // get provider DriverDatabaseMetadataProvider provider = getDriverProvider(false); return (provider != null)? provider.getUserName() : null; }
383384385386387388389390391
public void setUserName( String userName ) { if (userName == null) { driverProvider = null; } else { // get provider DriverDatabaseMetadataProvider provider = getDriverProvider(true); provider.setUserName(userName); } }
395396397398399400401402
* * @return user's password */ public String getPassword() { // get provider DriverDatabaseMetadataProvider provider = getDriverProvider(false); return (provider != null)? provider.getPassword() : null; }
409410411412413414415416417
public void setPassword( String password ) { if (password == null) { driverProvider = null; } else { // get provider DriverDatabaseMetadataProvider provider = getDriverProvider(true); provider.setPassword(password); } }