org.eclipse.persistence.internal.helper.Helper.getDefaultStartDatabaseDelimiter()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.eclipse.persistence.internal.helper.Helper.getDefaultStartDatabaseDelimiter()方法的一些代码示例,展示了Helper.getDefaultStartDatabaseDelimiter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.getDefaultStartDatabaseDelimiter()方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称:Helper
方法名:getDefaultStartDatabaseDelimiter

Helper.getDefaultStartDatabaseDelimiter介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public void setHistoricalName(String name) {
  if (name.startsWith(Helper.getDefaultStartDatabaseDelimiter()) && name.endsWith(Helper.getDefaultEndDatabaseDelimiter())) {
    this.historicalNameDelimited = name;
    this.historicalName = this.historicalNameDelimited.replaceAll(Helper.getDefaultStartDatabaseDelimiter(), "");
    this.historicalName = this.historicalName.replaceAll(Helper.getDefaultEndDatabaseDelimiter(), "");
  } else {
    this.historicalName = name ;
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public void setHistoricalName(String name) {
  if (name.startsWith(Helper.getDefaultStartDatabaseDelimiter()) && name.endsWith(Helper.getDefaultEndDatabaseDelimiter())) {
    this.historicalNameDelimited = name;
    this.historicalName = this.historicalNameDelimited.replaceAll(Helper.getDefaultStartDatabaseDelimiter(), "");
    this.historicalName = this.historicalName.replaceAll(Helper.getDefaultEndDatabaseDelimiter(), "");
  } else {
    this.historicalName = name ;
  }
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public void setHistoricalName(String name) {
  if (name.startsWith(Helper.getDefaultStartDatabaseDelimiter()) && name.endsWith(Helper.getDefaultEndDatabaseDelimiter())) {
    this.historicalNameDelimited = name;
    this.historicalName = this.historicalNameDelimited.replaceAll(Helper.getDefaultStartDatabaseDelimiter(), "");
    this.historicalName = this.historicalName.replaceAll(Helper.getDefaultEndDatabaseDelimiter(), "");
  } else {
    this.historicalName = name ;
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
public void setFullyQualifiedTableName(String fullyQualifiedTableName) {
  m_databaseTable.setPossiblyQualifiedName(fullyQualifiedTableName, Helper.getDefaultStartDatabaseDelimiter(), Helper.getDefaultEndDatabaseDelimiter());  
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * All field names should be set through this method to ensure delimited
 * identifiers and upper casing defaults are set.
 */
protected void setFieldName(DatabaseField field, String name) {
  // This may set the use delimited identifier flag to true.
  field.setName(name, Helper.getDefaultStartDatabaseDelimiter(), Helper.getDefaultEndDatabaseDelimiter());
  
  // The check is necessary to avoid overriding a true setting (set after 
  // setting the name of the field). We don't want to override it at this
  // point if the global flag is set to false. 
  if (m_project.useDelimitedIdentifier()) {
    field.setUseDelimiters(true);
  } else if (m_project.getShouldForceFieldNamesToUpperCase() && ! field.shouldUseDelimiters()) {
    field.useUpperCaseForComparisons(true);
  }
}

相关文章

Helper类方法