当前位置: 首页>>代码示例>>Java>>正文


Java HSQLDBDBManager类代码示例

本文整理汇总了Java中org.insightech.er.db.impl.hsqldb.HSQLDBDBManager的典型用法代码示例。如果您正苦于以下问题:Java HSQLDBDBManager类的具体用法?Java HSQLDBDBManager怎么用?Java HSQLDBDBManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


HSQLDBDBManager类属于org.insightech.er.db.impl.hsqldb包,在下文中一共展示了HSQLDBDBManager类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initialize

import org.insightech.er.db.impl.hsqldb.HSQLDBDBManager; //导入依赖的package包/类
@Override
protected void initialize(final Composite composite) {
    final String database = diagram.getDatabase();

    nameText = CompositeFactory.createText(this, composite, "label.sequence.name", 4, false, true);
    schemaText = CompositeFactory.createText(this, composite, "label.schema", 4, false, true);

    if (DB2DBManager.ID.equals(diagram.getDatabase())) {
        dataTypeCombo = CompositeFactory.createReadOnlyCombo(this, composite, "Data Type", 2);
        dataTypeCombo.add("BIGINT");
        dataTypeCombo.add("INTEGER");
        dataTypeCombo.add("SMALLINT");
        dataTypeCombo.add("DECIMAL(p)");

        decimalSizeText = CompositeFactory.createNumText(this, composite, "Size", 1, 30, false);
        decimalSizeText.setEnabled(false);

    } else if (HSQLDBDBManager.ID.equals(database)) {
        dataTypeCombo = CompositeFactory.createReadOnlyCombo(this, composite, "Data Type", 4);
        dataTypeCombo.add("BIGINT");
        dataTypeCombo.add("INTEGER");

    }

    incrementText = CompositeFactory.createNumText(this, composite, "Increment", 4, NUMBER_TEXT_SIZE, true);

    if (!H2DBManager.ID.equals(database)) {
        startText = CompositeFactory.createNumText(this, composite, "Start", 4, NUMBER_TEXT_SIZE, true);

        minValueText = CompositeFactory.createNumText(this, composite, "MinValue", 4, NUMBER_TEXT_SIZE, true);

        maxValueText = CompositeFactory.createNumText(this, composite, "MaxValue", 4, NUMBER_TEXT_SIZE, true);
    }

    if (!HSQLDBDBManager.ID.equals(diagram.getDatabase())) {
        if (DB2DBManager.ID.equals(diagram.getDatabase())) {
            cacheText = CompositeFactory.createNumText(this, composite, "Cache", 1, NUMBER_TEXT_SIZE, true);
            nocacheCheckBox = CompositeFactory.createCheckbox(this, composite, "nocache", false, 3);
        } else {
            cacheText = CompositeFactory.createNumText(this, composite, "Cache", 4, NUMBER_TEXT_SIZE, true);

        }
    }

    if (!H2DBManager.ID.equals(database)) {
        cycleCheckBox = CompositeFactory.createCheckbox(this, composite, "Cycle", false, 5);
    }

    if (DB2DBManager.ID.equals(diagram.getDatabase())) {
        orderCheckBox = CompositeFactory.createCheckbox(this, composite, "Order", false, 5);
    }

    descriptionText = CompositeFactory.createTextArea(this, composite, "label.description", -1, 100, 4, true);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:55,代码来源:SequenceDialog.java

示例2: initialize

import org.insightech.er.db.impl.hsqldb.HSQLDBDBManager; //导入依赖的package包/类
@Override
protected void initialize(Composite composite) {
	String database = this.diagram.getDatabase();

	this.nameText = CompositeFactory.createText(this, composite,
			"label.sequence.name", 4, false, true);
	this.schemaText = CompositeFactory.createText(this, composite,
			"label.schema", 4, false, true);

	if (DB2DBManager.ID.equals(diagram.getDatabase())) {
		this.dataTypeCombo = CompositeFactory.createReadOnlyCombo(this,
				composite, "Data Type", 2);
		this.dataTypeCombo.add("BIGINT");
		this.dataTypeCombo.add("INTEGER");
		this.dataTypeCombo.add("SMALLINT");
		this.dataTypeCombo.add("DECIMAL(p)");

		this.decimalSizeText = CompositeFactory.createNumText(this,
				composite, "Size", 1, 30, false);
		this.decimalSizeText.setEnabled(false);

	} else if (HSQLDBDBManager.ID.equals(database)) {
		this.dataTypeCombo = CompositeFactory.createReadOnlyCombo(this,
				composite, "Data Type", 4);
		this.dataTypeCombo.add("BIGINT");
		this.dataTypeCombo.add("INTEGER");

	}

	this.incrementText = CompositeFactory.createNumText(this, composite,
			"Increment", 4, NUMBER_TEXT_SIZE, true);

	if (!H2DBManager.ID.equals(database)) {
		this.startText = CompositeFactory.createNumText(this, composite,
				"Start", 4, NUMBER_TEXT_SIZE, true);

		this.minValueText = CompositeFactory.createNumText(this, composite,
				"MinValue", 4, NUMBER_TEXT_SIZE, true);

		this.maxValueText = CompositeFactory.createNumText(this, composite,
				"MaxValue", 4, NUMBER_TEXT_SIZE, true);
	}

	if (!HSQLDBDBManager.ID.equals(diagram.getDatabase())) {
		if (DB2DBManager.ID.equals(diagram.getDatabase())) {
			this.cacheText = CompositeFactory.createNumText(this,
					composite, "Cache", 1, NUMBER_TEXT_SIZE, true);
			this.nocacheCheckBox = CompositeFactory.createCheckbox(this,
					composite, "nocache", false, 3);
		} else {
			this.cacheText = CompositeFactory.createNumText(this,
					composite, "Cache", 4, NUMBER_TEXT_SIZE, true);

		}
	}

	if (!H2DBManager.ID.equals(database)) {
		this.cycleCheckBox = CompositeFactory.createCheckbox(this,
				composite, "Cycle", false, 5);
	}

	if (DB2DBManager.ID.equals(diagram.getDatabase())) {
		this.orderCheckBox = CompositeFactory.createCheckbox(this,
				composite, "Order", false, 5);
	}

	this.descriptionText = CompositeFactory.createTextArea(this, composite,
			"label.description", -1, 100, 4, true);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:70,代码来源:SequenceDialog.java


注:本文中的org.insightech.er.db.impl.hsqldb.HSQLDBDBManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。