本文整理了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
[英]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());
}
内容来源于网络,如有侵权,请联系作者删除!