本文整理汇总了Java中org.insightech.er.util.Check.isAlphabet方法的典型用法代码示例。如果您正苦于以下问题:Java Check.isAlphabet方法的具体用法?Java Check.isAlphabet怎么用?Java Check.isAlphabet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.insightech.er.util.Check
的用法示例。
在下文中一共展示了Check.isAlphabet方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getErrorMessage() {
String text = nameText.getText().trim();
if (text.equals("")) {
return "error.trigger.name.empty";
}
if (!Check.isAlphabet(text)) {
return "error.trigger.name.not.alphabet";
}
text = schemaText.getText();
if (!Check.isAlphabet(text)) {
return "error.schema.not.alphabet";
}
text = sqlText.getText();
if (text.equals("")) {
return "error.trigger.sql.empty";
}
return null;
}
示例2: validatePage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void validatePage() throws InputException {
String text = logicalNameText.getText().trim();
copyData.setLogicalName(text);
if (text.equals("")) {
throw new InputException("error.table.logical.name.empty");
}
text = physicalNameText.getText().trim();
if (!Check.isAlphabet(text)) {
if (copyData.getDiagram().getDiagramContents().getSettings().isValidatePhysicalName()) {
throw new InputException("error.table.physical.name.not.alphabet");
}
}
copyData.setPhysicalName(text);
}
示例3: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected String getErrorMessage() {
if (autoIncrementCheck != null && autoIncrementCheck.getSelection()) {
final SqlType selectedType = SqlType.valueOf(diagram.getDatabase(), typeCombo.getText());
if (selectedType == null || !selectedType.isNumber()) {
return "error.no.auto.increment.column";
}
}
final String text = uniqueKeyNameText.getText().trim();
if (!Check.isAlphabet(text)) {
return "error.unique.key.name.not.alphabet";
}
return super.getErrorMessage();
}
示例4: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getErrorMessage() {
String text = nameText.getText().trim();
if (text.equals("")) {
return "error.trigger.name.empty";
}
if (!Check.isAlphabet(text)) {
return "error.trigger.name.not.alphabet";
}
text = schemaText.getText();
if (!Check.isAlphabet(text)) {
return "error.schema.not.alphabet";
}
text = sqlText.getText();
if (text.equals("")) {
return "error.trigger.sql.empty";
}
return null;
}
示例5: validatePage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void validatePage() throws InputException {
String text = logicalNameText.getText().trim();
this.copyData.setLogicalName(text);
if (text.equals("")) {
throw new InputException("error.table.logical.name.empty");
}
text = physicalNameText.getText().trim();
if (!Check.isAlphabet(text)) {
if (copyData.getDiagram().getDiagramContents().getSettings()
.isValidatePhysicalName()) {
throw new InputException(
"error.table.physical.name.not.alphabet");
}
}
this.copyData.setPhysicalName(text);
}
示例6: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected String getErrorMessage() {
if (this.autoIncrementCheck != null
&& this.autoIncrementCheck.getSelection()) {
SqlType selectedType = SqlType.valueOf(this.diagram.getDatabase(),
this.typeCombo.getText());
if (selectedType == null || !selectedType.isNumber()) {
return "error.no.auto.increment.column";
}
}
String text = uniqueKeyNameText.getText().trim();
if (!Check.isAlphabet(text)) {
return "error.unique.key.name.not.alphabet";
}
return super.getErrorMessage();
}
示例7: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getErrorMessage() {
final String text = nameText.getText().trim();
if (text.equals("")) {
return "error.tablespace.name.empty";
}
if (!Check.isAlphabet(text)) {
return "error.tablespace.name.not.alphabet";
}
return null;
}
示例8: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getErrorMessage() {
final String text = nameText.getText().trim();
if (!Check.isAlphabet(text)) {
return "error.constraint.name.not.alphabet";
}
return null;
}
示例9: validatePage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void validatePage() throws InputException {
String text = constraintText.getText().trim();
copyData.setConstraint(text);
text = primaryKeyNameText.getText().trim();
if (!Check.isAlphabet(text)) {
throw new InputException("error.primary.key.name.not.alphabet");
}
copyData.setPrimaryKeyName(text);
text = optionText.getText().trim();
copyData.setOption(text);
}
示例10: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的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;
}
示例11: checkAlphabet
import org.insightech.er.util.Check; //导入方法依赖的package包/类
private static boolean checkAlphabet(final int type, final String str) {
if (str == null || str.equals("")) {
return true;
}
for (final int alphabetType : ALPHABET_TYPES) {
if (type == alphabetType) {
if (!Check.isAlphabet(str)) {
return false;
}
}
}
return true;
}
示例12: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getErrorMessage() {
String text = this.nameText.getText().trim();
if (text.equals("")) {
return "error.tablespace.name.empty";
}
if (!Check.isAlphabet(text)) {
return "error.tablespace.name.not.alphabet";
}
return null;
}
示例13: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getErrorMessage() {
String text = nameText.getText().trim();
if (!Check.isAlphabet(text)) {
return "error.constraint.name.not.alphabet";
}
return null;
}
示例14: validatePage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void validatePage() throws InputException {
String text = constraintText.getText().trim();
this.copyData.setConstraint(text);
text = primaryKeyNameText.getText().trim();
if (!Check.isAlphabet(text)) {
throw new InputException("error.primary.key.name.not.alphabet");
}
this.copyData.setPrimaryKeyName(text);
text = optionText.getText().trim();
this.copyData.setOption(text);
}
示例15: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的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;
}