org.hibernate.cfg.Settings.getDefaultSchemaName()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(172)

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

Settings.getDefaultSchemaName介绍

暂无

代码示例

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

result.append( "." );
final String schemaName = factory.getSettings().getDefaultSchemaName();
if ( schemaName != null ) {
  result.append( schemaName );
final String schemaName = factory.getSettings().getDefaultSchemaName();
if ( schemaName != null ) {
  result.append(schemaName);

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

public Map<String, String> getAliasTableMap(SessionFactoryImplementor factory) {
  Map<String, String> mergedAliasTableMap = mergeAliasMaps( factory );
  if ( !mergedAliasTableMap.isEmpty() ) {
    return mergedAliasTableMap;
  }
  else if ( persistentClass != null ) {
    String table = persistentClass.getTable().getQualifiedName(
        factory.getDialect(),
        factory.getSettings().getDefaultCatalogName(),
        factory.getSettings().getDefaultSchemaName()
    );
    return Collections.singletonMap( null, table );
  }
  else {
    return Collections.emptyMap();
  }
}

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

dialect,
    settings.getDefaultCatalogName(),
    settings.getDefaultSchemaName()
);
              dialect,
              settings.getDefaultCatalogName(),
              settings.getDefaultSchemaName()

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

private void associateSubclassNamesToSubclassTableIndexes(
    PersistentClass persistentClass,
    Set<String> classNames,
    String[][] mapping,
    SessionFactoryImplementor factory) {
  final String tableName = persistentClass.getTable().getQualifiedName(
      factory.getDialect(),
      factory.getSettings().getDefaultCatalogName(),
      factory.getSettings().getDefaultSchemaName()
  );
  associateSubclassNamesToSubclassTableIndex( tableName, classNames, mapping );
  Iterator itr = persistentClass.getJoinIterator();
  while ( itr.hasNext() ) {
    final Join join = (Join) itr.next();
    final String secondaryTableName = join.getTable().getQualifiedName(
        factory.getDialect(),
        factory.getSettings().getDefaultCatalogName(),
        factory.getSettings().getDefaultSchemaName()
    );
    associateSubclassNamesToSubclassTableIndex( secondaryTableName, classNames, mapping );
  }
}

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

jdbcServices.getJdbcEnvironment().getDialect(),
    settings.getDefaultCatalogName(),
    settings.getDefaultSchemaName(),
    (RootClass) model
);

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

factory.getDialect(),
    factory.getSettings().getDefaultCatalogName(),
    factory.getSettings().getDefaultSchemaName()
);
propertyTableNumbers[i] = getTableId( tabname, this.tableNames );
    factory.getDialect(),
    factory.getSettings().getDefaultCatalogName(),
    factory.getSettings().getDefaultSchemaName()
);
Integer tabnum = getTableId( tabname, subclassTableNameClosure );
        factory.getDialect(),
        factory.getSettings().getDefaultCatalogName(),
        factory.getSettings().getDefaultSchemaName()
    ),
    subclassTableNameClosure
            factory.getDialect(),
            factory.getSettings().getDefaultCatalogName(),
            factory.getSettings().getDefaultSchemaName()
        ),
        subclassTableNameClosure

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

factory.getDialect(),
factory.getSettings().getDefaultCatalogName(),
factory.getSettings().getDefaultSchemaName(),
null
);

代码示例来源:origin: org.ow2.bonita/bonita-server

private String getSchemaPrefix() throws SQLException {
 String schemaPrefix = "";
 final String defaultSchema = ((SessionFactoryImplementor) session.getSessionFactory()).getSettings()
   .getDefaultSchemaName();
 if (defaultSchema != null && !defaultSchema.trim().isEmpty()) {
  schemaPrefix = defaultSchema + ".";
 }
 return schemaPrefix;
}

代码示例来源:origin: com.atlassian.hibernate/hibernate.adapter

@Override
@SuppressWarnings("deprecation")
public String getDefaultSchema() {
  return getSessionFactoryV5().getSettings().getDefaultSchemaName();
}

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

result.append( "." );
final String schemaName = factory.getSettings().getDefaultSchemaName();
if ( schemaName != null ) {
  result.append( schemaName );
final String schemaName = factory.getSettings().getDefaultSchemaName();
if ( schemaName != null ) {
  result.append(schemaName);

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

result.append( "." );
final String schemaName = factory.getSettings().getDefaultSchemaName();
if ( schemaName != null ) {
  result.append( schemaName );
final String schemaName = factory.getSettings().getDefaultSchemaName();
if ( schemaName != null ) {
  result.append(schemaName);

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

dialect,
  settings.getDefaultCatalogName(),
  settings.getDefaultSchemaName()
);
      dialect,
      settings.getDefaultCatalogName(),
      settings.getDefaultSchemaName()
  ) );
buf.append(" union ");

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

dialect,
  settings.getDefaultCatalogName(),
  settings.getDefaultSchemaName()
);
      dialect,
      settings.getDefaultCatalogName(),
      settings.getDefaultSchemaName()
  ) );
buf.append(" union ");

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

dialect,
  settings.getDefaultCatalogName(),
  settings.getDefaultSchemaName()
);
      dialect,
      settings.getDefaultCatalogName(),
      settings.getDefaultSchemaName()
  ) );
buf.append(" union ");

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

settings.getDialect(),
    settings.getDefaultCatalogName(),
    settings.getDefaultSchemaName(), 
    (RootClass) model
);

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

factory.getDialect(), 
    factory.getSettings().getDefaultCatalogName(), 
    factory.getSettings().getDefaultSchemaName() 
);
      factory.getDialect(), 
      factory.getSettings().getDefaultCatalogName(), 
      factory.getSettings().getDefaultSchemaName() 
  ) );

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

factory.getDialect(), 
    factory.getSettings().getDefaultCatalogName(), 
    factory.getSettings().getDefaultSchemaName() 
);
      factory.getDialect(), 
      factory.getSettings().getDefaultCatalogName(), 
      factory.getSettings().getDefaultSchemaName() 
  ) );
          factory.getDialect(),
          factory.getSettings().getDefaultCatalogName(),
          factory.getSettings().getDefaultSchemaName()
      );
      tableNames.add( tableName );

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

factory.getDialect(), 
    factory.getSettings().getDefaultCatalogName(), 
    factory.getSettings().getDefaultSchemaName() 
);
      factory.getDialect(), 
      factory.getSettings().getDefaultCatalogName(), 
      factory.getSettings().getDefaultSchemaName() 
  ) );
          factory.getDialect(),
          factory.getSettings().getDefaultCatalogName(),
          factory.getSettings().getDefaultSchemaName()
      );
      tableNames.add( tableName );

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

factory.getDialect(), 
    factory.getSettings().getDefaultCatalogName(), 
    factory.getSettings().getDefaultSchemaName() 
);

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

jdbcServices.getJdbcEnvironment().getDialect(),
    settings.getDefaultCatalogName(),
    settings.getDefaultSchemaName(),
    rootClass
);

相关文章

Settings类方法