本文整理了Java中org.eclipse.persistence.internal.helper.Helper.truncate()
方法的一些代码示例,展示了Helper.truncate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.truncate()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称:Helper
方法名:truncate
[英]If the size of the original string is larger than the passed in size, this method will remove the vowels from the original string. The removal starts backward from the end of original string, and stops if the resulting string size is equal to the passed in size. If the resulting string is still larger than the passed in size after removing all vowels, the end of the resulting string will be truncated.
[中]如果原始字符串的大小大于传入的大小,此方法将从原始字符串中删除元音。删除操作从原始字符串的末尾向后开始,如果生成的字符串大小等于传入的大小,则停止。如果删除所有元音后生成的字符串仍然大于传入的大小,则生成字符串的结尾将被截断。
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
uniqueKeyName = Helper.truncate(shortenedTableName, maximumNameLength - serialName.length()) + serialName;
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
uniqueKeyName = Helper.truncate(shortenedTableName, maximumNameLength - serialName.length()) + serialName;
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
uniqueKeyName = Helper.truncate(shortenedTableName, maximumNameLength - serialName.length()) + serialName;
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
int delimiterLength = startDelimiter.length() + endDelimiter.length();
if (shortenedFieldName.length() + delimiterLength >= maximumNameLength) {
foreignKeyName = startDelimiter + Helper.truncate(shortenedFieldName, maximumNameLength - delimiterLength) + endDelimiter;
} else {
foreignKeyName = startDelimiter + Helper.truncate(shortenedTableName, maximumNameLength - shortenedFieldName.length() - delimiterLength) + shortenedFieldName + endDelimiter;
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
int delimiterLength = startDelimiter.length() + endDelimiter.length();
if (shortenedFieldName.length() + delimiterLength >= maximumNameLength) {
foreignKeyName = startDelimiter + Helper.truncate(shortenedFieldName, maximumNameLength - delimiterLength) + endDelimiter;
} else {
foreignKeyName = startDelimiter + Helper.truncate(shortenedTableName, maximumNameLength - shortenedFieldName.length() - delimiterLength) + shortenedFieldName + endDelimiter;
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
int delimiterLength = startDelimiter.length() + endDelimiter.length();
if (shortenedFieldName.length() + delimiterLength >= maximumNameLength) {
indexName = startDelimiter + Helper.truncate(shortenedFieldName, maximumNameLength - delimiterLength) + endDelimiter;
} else {
indexName = startDelimiter + Helper.truncate(shortenedTableName, maximumNameLength - shortenedFieldName.length() - delimiterLength) + shortenedFieldName + endDelimiter;
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
int delimiterLength = startDelimiter.length() + endDelimiter.length();
if (shortenedFieldName.length() + delimiterLength >= maximumNameLength) {
indexName = startDelimiter + Helper.truncate(shortenedFieldName, maximumNameLength - delimiterLength) + endDelimiter;
} else {
indexName = startDelimiter + Helper.truncate(shortenedTableName, maximumNameLength - shortenedFieldName.length() - delimiterLength) + shortenedFieldName + endDelimiter;
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
int delimiterLength = startDelimiter.length() + endDelimiter.length();
if (shortenedFieldName.length() + delimiterLength >= maximumNameLength) {
foreignKeyName = startDelimiter + Helper.truncate(shortenedFieldName, maximumNameLength - delimiterLength) + endDelimiter;
} else {
foreignKeyName = startDelimiter + Helper.truncate(shortenedTableName, maximumNameLength - shortenedFieldName.length() - delimiterLength) + shortenedFieldName + endDelimiter;
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
int delimiterLength = startDelimiter.length() + endDelimiter.length();
if (shortenedFieldName.length() + delimiterLength >= maximumNameLength) {
indexName = startDelimiter + Helper.truncate(shortenedFieldName, maximumNameLength - delimiterLength) + endDelimiter;
} else {
indexName = startDelimiter + Helper.truncate(shortenedTableName, maximumNameLength - shortenedFieldName.length() - delimiterLength) + shortenedFieldName + endDelimiter;
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
definition.setName(Helper.truncate(name, MAX_NAME_SIZE));
Enumeration fieldsEnum = fieldNames.keys();
String prefixArgToken;
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
definition.setName(Helper.truncate(name, MAX_NAME_SIZE));
Enumeration fieldsEnum = fieldNames.keys();
String prefixArgToken;
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
definition.setName(Helper.truncate(name, MAX_NAME_SIZE));
Enumeration fieldsEnum = fieldNames.keys();
String prefixArgToken;
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
definition.setName(Helper.truncate(project.getName() + "SEQ_SEL", MAX_NAME_SIZE));
definition.addArgument("SEQ_NAME", String.class, 100);
definition.addArgument("PREALLOC_SIZE", java.math.BigDecimal.class, 10);
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
definition.setName(Helper.truncate(project.getName() + "SEQ_SEL", MAX_NAME_SIZE));
definition.addArgument("SEQ_NAME", String.class, 100);
definition.addArgument("PREALLOC_SIZE", java.math.BigDecimal.class, 10);
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
definition.setName(Helper.truncate(project.getName() + "SEQ_SEL", MAX_NAME_SIZE));
definition.addArgument("SEQ_NAME", String.class, 100);
definition.addArgument("PREALLOC_SIZE", java.math.BigDecimal.class, 10);
内容来源于网络,如有侵权,请联系作者删除!