org.codehaus.cargo.container.configuration.entry.DataSource.getDriverClass()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中org.codehaus.cargo.container.configuration.entry.DataSource.getDriverClass()方法的一些代码示例,展示了DataSource.getDriverClass()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataSource.getDriverClass()方法的具体详情如下:
包路径:org.codehaus.cargo.container.configuration.entry.DataSource
类名称:DataSource
方法名:getDriverClass

DataSource.getDriverClass介绍

[英]The class name of the Driver or XADataSource. Example: org.hsqldb.jdbcDriver.
[中]驱动程序或XADataSource的类名。示例:org.hsqldb.jdbcDriver

代码示例

代码示例来源:origin: codehaus-cargo/cargo

/**
 * adds the driver details necessary for normal DataSource objects.
 */
private void addDriverAttributes()
{
  buffer.append("    class='com.evermind.sql.DriverManagerDataSource' \n ");
  buffer.append("    connection-driver='" + ds.getDriverClass() + "'\n");
}

代码示例来源:origin: codehaus-cargo/cargo

@Override
  protected void addConfigurationScriptProperties(Map<String, String> propertiesMap)
  {
    propertiesMap.put("cargo.datasource.driver.module", driverModule);
    propertiesMap.put("cargo.datasource.driver.class", ds.getDriverClass());
  }
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-wildfly

@Override
  protected void addConfigurationScriptProperties(Map<String, String> propertiesMap)
  {
    propertiesMap.put("cargo.datasource.driver.module", driverModule);
    propertiesMap.put("cargo.datasource.driver.class", ds.getDriverClass());
  }
}

代码示例来源:origin: codehaus-cargo/cargo

@Override
  protected void addConfigurationScriptProperties(Map<String, String> propertiesMap)
  {
    propertiesMap.put("cargo.datasource.driver.module", driverModule);
    propertiesMap.put("cargo.datasource.driver.class", ds.getDriverClass());
  }
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-orion

/**
 * adds the driver details necessary for normal DataSource objects.
 */
private void addDriverAttributes()
{
  buffer.append("    class='com.evermind.sql.DriverManagerDataSource' \n ");
  buffer.append("    connection-driver='" + ds.getDriverClass() + "'\n");
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jrun

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: codehaus-cargo/cargo

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: codehaus-cargo/cargo

/**
 * {@inheritDoc}
 */
@Override
public String buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: codehaus-cargo/cargo

/**
 * {@inheritDoc}
 */
@Override
public String buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: codehaus-cargo/cargo

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic

/**
 * {@inheritDoc}
 */
@Override
public String buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jrun

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jrun

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-jrun

/**
 * {@inheritDoc}
 */
@Override
public String buildConfigurationEntryForXADataSourceConfiguredDataSource(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: codehaus-cargo/cargo

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithNoTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: codehaus-cargo/cargo

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithLocalTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-container-weblogic

/**
 * {@inheritDoc}
 */
@Override
public String buildEntryForDriverConfiguredDataSourceWithXaTx(DataSource ds)
{
  return configureDataSourceWithImplementationClass(ds, ds.getDriverClass());
}

代码示例来源:origin: codehaus-cargo/cargo

@Override
protected void addConfigurationScriptProperties(Map<String, String> propertiesMap)
{
  propertiesMap.put("cargo.datasource.id", ds.getId());
  propertiesMap.put("cargo.datasource.driver", ds.getDriverClass());
  propertiesMap.put("cargo.datasource.url", ds.getUrl());
  propertiesMap.put("cargo.datasource.username", ds.getUsername());
  propertiesMap.put("cargo.datasource.password", ds.getPassword());
  propertiesMap.put("cargo.datasource.jndi", ds.getJndiLocation());
  propertiesMap.put("cargo.datasource.driver.classpath", getDataSourceClasspath());
}

相关文章