本文整理匯總了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);
}