本文整理汇总了Java中org.insightech.er.db.DBManager.isSupported方法的典型用法代码示例。如果您正苦于以下问题:Java DBManager.isSupported方法的具体用法?Java DBManager.isSupported怎么用?Java DBManager.isSupported使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.insightech.er.db.DBManager
的用法示例。
在下文中一共展示了DBManager.isSupported方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: perfomeOK
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void perfomeOK() {
final String text = nameText.getText();
resultIndex = new Index(table, text, !uniqueCheckBox.getSelection(), typeCombo.getText(), null);
resultIndex.setDescription(descriptionText.getText().trim());
for (final NormalColumn selectedColumn : selectedColumns) {
final Boolean desc = Boolean.valueOf(descCheckBoxMap.get(selectedColumn).getSelection());
resultIndex.addColumn(selectedColumn, desc);
}
final DBManager dbManager = DBManagerFactory.getDBManager(table.getDiagram());
if (dbManager.isSupported(DBManager.SUPPORT_FULLTEXT_INDEX)) {
resultIndex.setFullText(fullTextCheckBox.getSelection());
}
}
示例2: initializeDetailTab
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
@Override
protected void initializeDetailTab(final Composite composite) {
uniqueKeyNameText = CompositeFactory.createText(this, composite, "label.unique.key.name", false, true);
super.initializeDetailTab(composite);
final DBManager manager = DBManagerFactory.getDBManager(diagram);
if (MySQLDBManager.ID.equals(diagram.getDatabase())) {
characterSetCombo = CompositeFactory.createCombo(this, composite, "label.character.set");
collationCombo = CompositeFactory.createCombo(this, composite, "label.collation");
}
if (manager.isSupported(DBManager.SUPPORT_AUTO_INCREMENT_SETTING)) {
CompositeFactory.fillLine(composite);
autoIncrementSettingButton = CompositeFactory.createLargeButton(composite, "label.auto.increment.setting", 2);
autoIncrementSettingButton.setEnabled(false);
}
}
示例3: initializeCheckBoxComposite
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
@Override
protected void initializeCheckBoxComposite(final Composite composite) {
primaryKeyCheck = CompositeFactory.createCheckbox(this, composite, "label.primary.key", false);
super.initializeCheckBoxComposite(composite);
final DBManager manager = DBManagerFactory.getDBManager(diagram);
if (manager.isSupported(DBManager.SUPPORT_AUTO_INCREMENT)) {
autoIncrementCheck = CompositeFactory.createCheckbox(this, composite, "label.auto.increment", false);
}
if (isRefered) {
uniqueKeyCheck.setEnabled(false);
}
enableAutoIncrement(false);
}
示例4: getNameWithSchema
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
public String getNameWithSchema(final String database) {
final StringBuilder sb = new StringBuilder();
final DBManager dbManager = DBManagerFactory.getDBManager(database);
if (!dbManager.isSupported(DBManager.SUPPORT_SCHEMA)) {
return Format.null2blank(getPhysicalName());
}
final TableViewProperties commonTableViewProperties = getDiagram().getDiagramContents().getSettings().getTableViewProperties();
String schema = getTableViewProperties().getSchema();
if (schema == null || schema.equals("")) {
schema = commonTableViewProperties.getSchema();
}
if (schema != null && !schema.equals("")) {
sb.append(schema);
sb.append(".");
}
sb.append(getPhysicalName());
return sb.toString();
}
示例5: getTableNameWithSchema
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
public String getTableNameWithSchema(final String tableName, final String schema, final boolean toUpperCase) {
String name = null;
if (Check.isEmpty(schema)) {
name = Format.null2blank(tableName);
} else {
final DBManager dbManager = DBManagerFactory.getDBManager(dbsystem);
if (!dbManager.isSupported(DBManager.SUPPORT_SCHEMA)) {
name = Format.null2blank(tableName);
} else {
name = schema + "." + Format.null2blank(tableName);
}
}
if (toUpperCase) {
name = name.toUpperCase();
}
return name;
}
示例6: perfomeOK
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void perfomeOK() {
String text = nameText.getText();
this.resultIndex = new Index(table, text,
!this.uniqueCheckBox.getSelection(), this.typeCombo.getText(),
null);
this.resultIndex.setDescription(this.descriptionText.getText().trim());
for (NormalColumn selectedColumn : selectedColumns) {
Boolean desc = Boolean.valueOf(this.descCheckBoxMap.get(
selectedColumn).getSelection());
this.resultIndex.addColumn(selectedColumn, desc);
}
DBManager dbManager = DBManagerFactory.getDBManager(table.getDiagram());
if (dbManager.isSupported(DBManager.SUPPORT_FULLTEXT_INDEX)) {
this.resultIndex.setFullText(this.fullTextCheckBox.getSelection());
}
}
示例7: initializeDetailTab
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
@Override
protected void initializeDetailTab(Composite composite) {
this.uniqueKeyNameText = CompositeFactory.createText(this, composite,
"label.unique.key.name", false, true);
super.initializeDetailTab(composite);
DBManager manager = DBManagerFactory.getDBManager(this.diagram);
if (MySQLDBManager.ID.equals(this.diagram.getDatabase())) {
this.characterSetCombo = CompositeFactory.createCombo(this,
composite, "label.character.set");
this.collationCombo = CompositeFactory.createCombo(this, composite,
"label.collation");
}
if (manager.isSupported(DBManager.SUPPORT_AUTO_INCREMENT_SETTING)) {
CompositeFactory.fillLine(composite);
this.autoIncrementSettingButton = CompositeFactory
.createLargeButton(composite,
"label.auto.increment.setting", 2);
this.autoIncrementSettingButton.setEnabled(false);
}
}
示例8: initializeCheckBoxComposite
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
@Override
protected void initializeCheckBoxComposite(Composite composite) {
this.primaryKeyCheck = CompositeFactory.createCheckbox(this, composite,
"label.primary.key", false);
super.initializeCheckBoxComposite(composite);
DBManager manager = DBManagerFactory.getDBManager(this.diagram);
if (manager.isSupported(DBManager.SUPPORT_AUTO_INCREMENT)) {
this.autoIncrementCheck = CompositeFactory.createCheckbox(this,
composite, "label.auto.increment", false);
}
if (this.isRefered) {
this.uniqueKeyCheck.setEnabled(false);
}
this.enableAutoIncrement(false);
}
示例9: getTableNameWithSchema
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
public String getTableNameWithSchema(String tableName, String schema,
boolean toUpperCase) {
String name = null;
if (Check.isEmpty(schema)) {
name = Format.null2blank(tableName);
} else {
DBManager dbManager = DBManagerFactory.getDBManager(this.dbsystem);
if (!dbManager.isSupported(DBManager.SUPPORT_SCHEMA)) {
name = Format.null2blank(tableName);
} else {
name = schema + "." + Format.null2blank(tableName);
}
}
if (toUpperCase) {
name = name.toUpperCase();
}
return name;
}
示例10: createCheckComposite
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
private void createCheckComposite(final Composite composite) {
final Composite checkComposite = CompositeFactory.createChildComposite(composite, 2, 4);
uniqueCheckBox = CompositeFactory.createCheckbox(this, checkComposite, "label.index.unique", false);
final DBManager dbManager = DBManagerFactory.getDBManager(table.getDiagram());
if (dbManager.isSupported(DBManager.SUPPORT_FULLTEXT_INDEX)) {
fullTextCheckBox = CompositeFactory.createCheckbox(this, checkComposite, "label.index.fulltext", false);
}
}
示例11: getErrorMessage
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected String getErrorMessage() {
final String text = nameText.getText().trim();
if (text.equals("")) {
return "error.index.name.empty";
}
if (!Check.isAlphabet(text)) {
return "error.index.name.not.alphabet";
}
if (indexColumnList.getItemCount() == 0) {
return "error.index.column.empty";
}
final DBManager dbManager = DBManagerFactory.getDBManager(table.getDiagram());
if (dbManager.isSupported(DBManager.SUPPORT_FULLTEXT_INDEX)) {
if (fullTextCheckBox.getSelection()) {
for (final NormalColumn indexColumn : selectedColumns) {
if (!indexColumn.isFullTextIndexable()) {
return "error.index.fulltext.impossible";
}
}
}
}
return null;
}
示例12: getCheckBoxCompositeNumColumns
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
@Override
protected int getCheckBoxCompositeNumColumns() {
final DBManager manager = DBManagerFactory.getDBManager(diagram);
if (manager.isSupported(DBManager.SUPPORT_AUTO_INCREMENT)) {
return 4;
}
return 3;
}
示例13: getNameWithSchema
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
public String getNameWithSchema(final String database) {
if (schema == null) {
return Format.null2blank(getName());
}
final DBManager dbManager = DBManagerFactory.getDBManager(database);
if (!dbManager.isSupported(DBManager.SUPPORT_SCHEMA)) {
return Format.null2blank(getName());
}
return schema + "." + Format.null2blank(getName());
}
示例14: createCheckComposite
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
private void createCheckComposite(Composite composite) {
Composite checkComposite = CompositeFactory.createChildComposite(
composite, 2, 4);
this.uniqueCheckBox = CompositeFactory.createCheckbox(this,
checkComposite, "label.index.unique", false);
DBManager dbManager = DBManagerFactory.getDBManager(this.table
.getDiagram());
if (dbManager.isSupported(DBManager.SUPPORT_FULLTEXT_INDEX)) {
this.fullTextCheckBox = CompositeFactory.createCheckbox(this,
checkComposite, "label.index.fulltext", false);
}
}
示例15: getErrorMessage
import org.insightech.er.db.DBManager; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected String getErrorMessage() {
String text = nameText.getText().trim();
if (text.equals("")) {
return "error.index.name.empty";
}
if (!Check.isAlphabet(text)) {
return "error.index.name.not.alphabet";
}
if (indexColumnList.getItemCount() == 0) {
return "error.index.column.empty";
}
DBManager dbManager = DBManagerFactory.getDBManager(this.table
.getDiagram());
if (dbManager.isSupported(DBManager.SUPPORT_FULLTEXT_INDEX)) {
if (fullTextCheckBox.getSelection()) {
for (NormalColumn indexColumn : selectedColumns) {
if (!indexColumn.isFullTextIndexable()) {
return "error.index.fulltext.impossible";
}
}
}
}
return null;
}