org.hibernate.sql.Alias.toAliasString()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(97)

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

Alias.toAliasString介绍

暂无

代码示例

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

public String[] toAliasStrings(String[] sqlIdentifiers) {
  String[] aliases = new String[ sqlIdentifiers.length ];
  for ( int i=0; i<sqlIdentifiers.length; i++ ) {
    aliases[i] = toAliasString(sqlIdentifiers[i]);
  }
  return aliases;
}

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

@Override
public String getIdentifierColumnAlias(String suffix) {
  if ( hasIdentifier ) {
    return new Alias( suffix ).toAliasString( identifierColumnAlias );
  }
  else {
    return null;
  }
}

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

buf.append( new Alias(suffix).toAliasString(columnAlias) );

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

public CaseFragment setReturnColumnName(String returnColumnName, String suffix) {
  return setReturnColumnName( new Alias(suffix).toAliasString(returnColumnName) );
}

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

public String getDiscriminatorAlias(String suffix) {
  // NOTE: this assumes something about how propertySelectFragment is implemented by the subclass!
  // was toUnqotedAliasStrings( getdiscriminatorColumnName() ) before - now tried
  // to remove that unqoting and missing aliases..
  return entityMetamodel.hasSubclasses() ?
      new Alias( suffix ).toAliasString( getDiscriminatorAlias() ) :
      null;
}

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

public void createPrimaryKey() {
  //Primary key constraint
  PrimaryKey pk = new PrimaryKey( table );
  pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
  table.setPrimaryKey(pk);
  pk.addColumns( getKey().getColumnIterator() );
}

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

public void createPrimaryKey() {
  //Primary key constraint
  final Table table = getTable();
  PrimaryKey pk = new PrimaryKey( table );
  pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
  table.setPrimaryKey( pk );
  pk.addColumns( getKey().getColumnIterator() );
}

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

public String[] toAliasStrings(String[] sqlIdentifiers) {
  String[] aliases = new String[ sqlIdentifiers.length ];
  for ( int i=0; i<sqlIdentifiers.length; i++ ) {
    aliases[i] = toAliasString(sqlIdentifiers[i]);
  }
  return aliases;
}

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

public String[] toAliasStrings(String[] sqlIdentifiers) {
  String[] aliases = new String[ sqlIdentifiers.length ];
  for ( int i=0; i<sqlIdentifiers.length; i++ ) {
    aliases[i] = toAliasString(sqlIdentifiers[i]);
  }
  return aliases;
}

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

public String getDiscriminatorAlias(String suffix) {
  // NOTE: this assumes something about how propertySelectFragment is implemented by the subclass!
  // was toUnqotedAliasStrings( getdiscriminatorColumnName() ) before - now tried
  // to remove that unqoting and missing aliases..
  return entityMetamodel.hasSubclasses() ?
      new Alias( suffix ).toAliasString( getDiscriminatorAlias() ) :
      null;
}

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

public String getIdentifierColumnAlias(String suffix) {
  if ( hasIdentifier ) {
    return new Alias( suffix ).toAliasString( identifierColumnAlias );
  }
  else {
    return null;
  }
}

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

public String getIdentifierColumnAlias(String suffix) {
  if ( hasIdentifier ) {
    return new Alias( suffix ).toAliasString( identifierColumnAlias );
  }
  else {
    return null;
  }
}

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

public String getDiscriminatorAlias(String suffix) {
  // NOTE: this assumes something about how propertySelectFragment is implemented by the subclass!
  // was toUnqotedAliasStrings( getdiscriminatorColumnName() ) before - now tried
  // to remove that unqoting and missing aliases..
  return entityMetamodel.hasSubclasses() ?
      new Alias( suffix ).toAliasString( getDiscriminatorAlias() ) :
      null;
}

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

public void createPrimaryKey() {
  //Primary key constraint
  PrimaryKey pk = new PrimaryKey();
  pk.setTable(table);
  pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
  table.setPrimaryKey(pk);
  pk.addColumns( getKey().getColumnIterator() );
}

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

public void createPrimaryKey() {
  //Primary key constraint
  final MappedTable table = getMappedTable();
  MappedPrimaryKey pk = new PrimaryKey( table );
  pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
  table.setPrimaryKey( pk );
  pk.addColumns( getKey().getMappedColumns() );
}

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

public void createPrimaryKey() {
  //Primary key constraint
  PrimaryKey pk = new PrimaryKey();
  pk.setTable(table);
  pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
  table.setPrimaryKey(pk);
  pk.addColumns( getKey().getColumnIterator() );
}

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

public void createPrimaryKey() {
  //Primary key constraint
  PrimaryKey pk = new PrimaryKey();
  pk.setTable(table);
  pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
  table.setPrimaryKey(pk);
  pk.addColumns( getKey().getColumnIterator() );
}

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

public void createPrimaryKey() {
  //Primary key constraint
  PrimaryKey pk = new PrimaryKey();
  pk.setTable(table);
  pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
  table.setPrimaryKey(pk);
  pk.addColumns( getKey().getColumnIterator() );
}

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

public void createPrimaryKey() {
  //Primary key constraint
  PrimaryKey pk = new PrimaryKey();
  Table table = getTable();
  pk.setTable(table);
  pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
  table.setPrimaryKey(pk);
  pk.addColumns( getKey().getColumnIterator() );
}

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

public void createPrimaryKey() {
  //Primary key constraint
  PrimaryKey pk = new PrimaryKey();
  Table table = getTable();
  pk.setTable(table);
  pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
  table.setPrimaryKey(pk);
  pk.addColumns( getKey().getColumnIterator() );
}

相关文章