Tabnine Logo
StandardField.getTypeId
Code IndexAdd Tabnine to your IDE (free)

How to use
getTypeId
method
in
org.tinygroup.metadata.config.stdfield.StandardField

Best Java code snippets using org.tinygroup.metadata.config.stdfield.StandardField.getTypeId (Showing top 8 results out of 315)

origin: org.tinygroup/metadata

public String getType(String id, String language) {
  StandardField standardField = getStandardField(id);
  String type = businessTypeProcessor.getType(standardField.getTypeId(),
      language);
  if (type != null) {
    return type;
  }
  throw new RuntimeException(String.format(
      "找不到ID:[%s]的标准字段对应的Language:[%s]类型。", id, language));
}
origin: org.tinygroup/org.tinygroup.metadata

public static StandardType getStandardType(StandardField standardField,
                      ClassLoader loader) {
  BusinessTypeProcessor businessTypeProcessor = getBusinessTypeProcessor(loader);
  BusinessType businessType = businessTypeProcessor
      .getBusinessTypes(standardField.getTypeId());
  return getStandardType(businessType, loader);
}
origin: org.tinygroup/org.tinygroup.metadata

public String getType(String id, String language) {
  StandardField standardField = getStandardField(id);
  String type = businessTypeProcessor.getType(standardField.getTypeId(),
      language);
  if (type != null) {
    return type;
  }
  throw new MetadataRuntimeException(STDFIELD_LANGUAGE_TYPE_NOT_EXISTS_ERROR, id, language);
}
origin: org.tinygroup/org.tinygroup.metadata

public static BusinessType getBusinessType(String fieldId,
                      ClassLoader loader) {
  StandardField field = getStandardField(fieldId, loader);
  BusinessTypeProcessor businessTypeProcessor = getBusinessTypeProcessor(loader);
  BusinessType businessType = businessTypeProcessor
      .getBusinessTypes(field.getTypeId());
  return businessType;
}
origin: org.tinygroup/metadata

  public static StandardType getStandardType(StandardField field) {
    BusinessTypeProcessor businessTypeProcessor = SpringUtil
        .getBean(MetadataUtil.BUSINESSTYPEPROCESSOR_BEAN);
    BusinessType businessType = businessTypeProcessor
        .getBusinessTypes(field.getTypeId());
    StandardTypeProcessor standardTypeProcessor = SpringUtil
        .getBean(MetadataUtil.STANDARDTYPEPROCESSOR_BEAN);
    return standardTypeProcessor.getStandardType(businessType.getTypeId());
  }
}
origin: org.tinygroup/org.tinygroup.metadata

public static StandardType getStandardType(String fieldId,
                      ClassLoader loader) {
  StandardField field = getStandardField(fieldId, loader);
  BusinessTypeProcessor businessTypeProcessor = getBusinessTypeProcessor(loader);
  BusinessType businessType = businessTypeProcessor
      .getBusinessTypes(field.getTypeId());
  StandardTypeProcessor standardTypeProcessor = getStandardTypeProcessor(loader);
  return standardTypeProcessor.getStandardType(businessType.getTypeId());
}
origin: org.tinygroup/metadata

public static StandardType getStandardType(String fieldId) {
  StandardField field = getStandardField(fieldId);
  BusinessTypeProcessor businessTypeProcessor = SpringUtil
      .getBean(MetadataUtil.BUSINESSTYPEPROCESSOR_BEAN);
  BusinessType businessType = businessTypeProcessor
      .getBusinessTypes(field.getTypeId());
  StandardTypeProcessor standardTypeProcessor = SpringUtil
      .getBean(MetadataUtil.STANDARDTYPEPROCESSOR_BEAN);
  return standardTypeProcessor.getStandardType(businessType.getTypeId());
}
 
origin: org.tinygroup/org.tinygroup.metadata

public void addStandardFields(StandardFields standardFields) {
  if (standardFields != null
      && standardFields.getStandardFieldList() != null) {
    for (StandardField field : standardFields.getStandardFieldList()) {
      if (standardFieldMap.containsKey(field.getId())) {
        if (ConfigUtil.isCheckStrict()) {
          //重复id
          throw new MetadataRuntimeException(STDFIELD_ADD_ALREADY_ERROR, field.getId());
        } else {
          LOGGER.error(new MetadataRuntimeException(STDFIELD_ADD_ALREADY_ERROR, field.getId()));
          continue;
        }
      }
      standardFieldMap.put(field.getId(), field);
      if (field.getNickNames() != null) {
        for (NickName name : field.getNickNames()) {
          StandardField newStandardField = new StandardField();
          newStandardField.setId(name.getId());
          newStandardField.setName(name.getName());
          newStandardField.setTitle(name.getTitle());
          newStandardField.setDefaultValue(field.getDefaultValue());
          newStandardField.setDescription(field.getDescription());
          newStandardField.setTypeId(field.getTypeId());
          standardFieldMap.put(name.getId(), newStandardField);
        }
      }
    }
  }
}
org.tinygroup.metadata.config.stdfieldStandardFieldgetTypeId

Popular methods of StandardField

  • getName
  • <init>
  • getId
  • getTitle
  • setName
  • setTitle
  • getDefaultValue
  • getDescription
  • getNickNames
  • setDefaultValue
  • setDescription
  • setId
  • setDescription,
  • setId,
  • setTypeId

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFrame (javax.swing)
  • JTextField (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now