org.hibernate.mapping.Index.buildSqlCreateIndexString()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(120)

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

Index.buildSqlCreateIndexString介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

public static String buildSqlCreateIndexString(
    Dialect dialect,
    String name,
    Table table,
    Iterator<Column> columns,
    boolean unique,
    String defaultCatalog,
    String defaultSchema) {
  return buildSqlCreateIndexString(
      dialect,
      name,
      table,
      columns,
      Collections.EMPTY_MAP,
      unique,
      defaultCatalog,
      defaultSchema
  );
}

代码示例来源:origin: hibernate/hibernate-orm

public String sqlCreateString(Dialect dialect, Mapping mapping, String defaultCatalog, String defaultSchema)
    throws HibernateException {
  return buildSqlCreateIndexString(
      dialect,
      getQuotedName( dialect ),
      getTable(),
      getColumnIterator(),
      columnOrderMap,
      false,
      defaultCatalog,
      defaultSchema
  );
}

代码示例来源:origin: hibernate/hibernate-orm

String defaultCatalog,
  String defaultSchema) {
return buildSqlCreateIndexString(
    dialect,
    name,

代码示例来源:origin: hibernate/hibernate-orm

public static String buildSqlCreateIndexString(
    Dialect dialect,
    String name,
    Table table,
    Iterator<Column> columns,
    java.util.Map<Column, String> columnOrderMap,
    boolean unique,
    Metadata metadata) {
  final JdbcEnvironment jdbcEnvironment = metadata.getDatabase().getJdbcEnvironment();
  final String tableName = jdbcEnvironment.getQualifiedObjectNameFormatter().format(
      table.getQualifiedTableName(),
      dialect
  );
  return buildSqlCreateIndexString(
      dialect,
      name,
      tableName,
      columns,
      columnOrderMap,
      unique
  );
}

代码示例来源:origin: hibernate/hibernate-orm

@Override
public String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata) {
  if ( hasNullable( uniqueKey ) ) {
    return org.hibernate.mapping.Index.buildSqlCreateIndexString(
        dialect,
        uniqueKey.getName(),
        uniqueKey.getTable(),
        uniqueKey.columnIterator(),
        uniqueKey.getColumnOrderMap(),
        true,
        metadata
    );
  }
  else {
    return super.getAlterTableToAddUniqueKeyCommand( uniqueKey, metadata );
  }
}

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

public String sqlCreateString(Dialect dialect, Mapping mapping, String defaultCatalog, String defaultSchema)
    throws HibernateException {
  return buildSqlCreateIndexString(
      dialect,
      getName(),
      getTable(),
      getColumnIterator(),
      false,
      defaultCatalog,
      defaultSchema
  );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

public String sqlCreateString(Dialect dialect, Mapping mapping, String defaultCatalog, String defaultSchema)
    throws HibernateException {
  return buildSqlCreateIndexString(
      dialect,
      getName(),
      getTable(),
      getColumnIterator(),
      false,
      defaultCatalog,
      defaultSchema
  );
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public String sqlCreateString(Dialect dialect, Mapping mapping, String defaultCatalog, String defaultSchema)
    throws HibernateException {
  return buildSqlCreateIndexString(
      dialect,
      getName(),
      getTable(),
      getColumnIterator(),
      false,
      defaultCatalog,
      defaultSchema
  );
}

代码示例来源:origin: hibernate/hibernate

public String sqlCreateString(Dialect dialect, Mapping mapping, String defaultCatalog, String defaultSchema) throws HibernateException {
  return buildSqlCreateIndexString(dialect, getName(), getTable(), getColumnIterator(), false, defaultCatalog, defaultSchema);
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public String sqlCreateString(Dialect dialect, Mapping p, String defaultCatalog, String defaultSchema) {
  if ( dialect.supportsUniqueConstraintInCreateAlterTable() ) {
    return super.sqlCreateString( dialect, p, defaultCatalog, defaultSchema );
  }
  else {
    return Index.buildSqlCreateIndexString( dialect, getName(), getTable(), getColumnIterator(), true,
        defaultCatalog, defaultSchema );
  }
}

代码示例来源:origin: hibernate/hibernate

public String sqlCreateString(Dialect dialect, Mapping p, String defaultCatalog, String defaultSchema) {
  if ( dialect.supportsUniqueConstraintInCreateAlterTable() ) {
    return super.sqlCreateString(dialect, p, defaultCatalog, defaultSchema);
  } 
  else {
    return Index.buildSqlCreateIndexString(dialect, getName(), getTable(), getColumnIterator(), true, defaultCatalog, defaultSchema);
  }
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

@Override
public String sqlCreateString(Dialect dialect, Mapping p, String defaultCatalog, String defaultSchema) {
  if ( dialect.supportsUniqueConstraintInCreateAlterTable() ) {
    return super.sqlCreateString( dialect, p, defaultCatalog, defaultSchema );
  }
  else {
    return Index.buildSqlCreateIndexString( dialect, getName(), getTable(), getColumnIterator(), true,
        defaultCatalog, defaultSchema );
  }
}

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

@Override
public String sqlCreateString(Dialect dialect, Mapping p, String defaultCatalog, String defaultSchema) {
  if ( dialect.supportsUniqueConstraintInCreateAlterTable() ) {
    return super.sqlCreateString( dialect, p, defaultCatalog, defaultSchema );
  }
  else {
    return Index.buildSqlCreateIndexString( dialect, getName(), getTable(), getColumnIterator(), true,
        defaultCatalog, defaultSchema );
  }
}

相关文章