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


Java DBManager.isSupported方法代码示例

本文整理汇总了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());
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:21,代码来源:IndexDialog.java

示例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);
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:21,代码来源:ColumnDialog.java

示例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);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:19,代码来源:ColumnDialog.java

示例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();
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:27,代码来源:TableView.java

示例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;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:24,代码来源:DBSetting.java

示例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());
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:24,代码来源:IndexDialog.java

示例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);
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:26,代码来源:ColumnDialog.java

示例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);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:21,代码来源:ColumnDialog.java

示例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;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:25,代码来源:DBSetting.java

示例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);
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:12,代码来源:IndexDialog.java

示例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;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:34,代码来源:IndexDialog.java

示例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;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:11,代码来源:ColumnDialog.java

示例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());
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:14,代码来源:WithSchemaModel.java

示例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);
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:16,代码来源:IndexDialog.java

示例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;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:35,代码来源:IndexDialog.java


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