本文整理汇总了Java中ca.sqlpower.sql.JDBCDataSourceType.putProperty方法的典型用法代码示例。如果您正苦于以下问题:Java JDBCDataSourceType.putProperty方法的具体用法?Java JDBCDataSourceType.putProperty怎么用?Java JDBCDataSourceType.putProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ca.sqlpower.sql.JDBCDataSourceType
的用法示例。
在下文中一共展示了JDBCDataSourceType.putProperty方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import ca.sqlpower.sql.JDBCDataSourceType; //导入方法依赖的package包/类
@Override
protected void setUp() throws Exception {
collection = new StubDataSourceCollection<JDBCDataSource>();
firstDSType = new JDBCDataSourceType();
firstDSType.setJdbcUrl("First Testing URL");
firstDSType.putProperty(JDBCDataSourceType.SUPPORTS_UPDATEABLE_RESULT_SETS, String.valueOf(true));
firstDSType.setComment("First testing comment");
collection.addDataSourceType(firstDSType);
secondDSType = new JDBCDataSourceType();
secondDSType.setJdbcUrl("Second Testing URL");
secondDSType.putProperty(JDBCDataSourceType.SUPPORTS_UPDATEABLE_RESULT_SETS, String.valueOf(false));
secondDSType.setComment("Second testing comment");
editor = new DataSourceTypeEditor(collection, null);
newDSTypePanel = new NewDataSourceTypePanel(editor, collection);
}
示例2: setUp
import ca.sqlpower.sql.JDBCDataSourceType; //导入方法依赖的package包/类
@Override
protected void setUp() throws Exception {
dsType = new JDBCDataSourceType();
dsType.setName("Testing DS Name Shouldn't Change");
DataSourceCollection collection = new StubDataSourceCollection();
JDBCDataSourceType firstDSType = new JDBCDataSourceType();
firstDSType.setJdbcUrl("First Testing URL");
firstDSType.putProperty(JDBCDataSourceType.SUPPORTS_UPDATEABLE_RESULT_SETS, String.valueOf(true));
firstDSType.setComment("First testing comment");
collection.addDataSourceType(firstDSType);
JDBCDataSourceType secondDSType = new JDBCDataSourceType();
secondDSType.setJdbcUrl("Second Testing URL");
secondDSType.putProperty(JDBCDataSourceType.SUPPORTS_UPDATEABLE_RESULT_SETS, String.valueOf(false));
secondDSType.setComment("Second testing comment");
dsTypeCopyPanel = new DataSourceTypeCopyPropertiesPanel(dsType, collection);
}