com.sqlapp.data.db.dialect.Dialect.getOpenQuote()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(113)

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

Dialect.getOpenQuote介绍

[英]クォート終了文字
[中]クォート終了文字

代码示例

代码示例来源:origin: com.sqlapp/sqlapp-core

protected String doQuote(String target){
  StringBuilder builder = new StringBuilder(target.length() + 2);
  builder.append(getOpenQuote()).append(target).append(getCloseQuote());
  return builder.toString();
}

代码示例来源:origin: com.sqlapp/sqlapp-core

/**
 * 文字列がクォートされているかの判定
 * 
 * @param target
 * @return 文字列がクォートされているかの判定
 */
public boolean isQuoted(String target) {
  if (isEmpty(target)) {
    return false;
  }
  if (target.charAt(0) == getOpenQuote()
      && target.charAt(target.length() - 1) == getCloseQuote()) {
    return true;
  }
  return false;
}

代码示例来源:origin: com.sqlapp/sqlapp-core-db2

protected void setColumnDefinition(Function obj, String columnDef){
  Matcher mathcer=COLUMN_PATTERN.matcher(columnDef);
  if (mathcer.matches()){
    String name=CommonUtils.unwrap(mathcer.group("name"), this.getDialect().getOpenQuote());
    final String def=mathcer.group("def");
    obj.getReturning().getTable().getColumns().add(name, c->{
      c.setDataTypeName(def);
    });
  }
}

相关文章