本文整理汇总了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);
}
示例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);
}