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

x33g5p2x  于2022-01-29 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(118)

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

Table.setAbstract介绍

暂无

代码示例

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

if ( table != null ) {
  if ( !isAbstract ) {
    table.setAbstract( false );

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

secondaryTable.setAbstract( false );

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

public Table addTable(String schema, 
    String catalog, 
    String name) {
  
  String key = TableNameQualifier.qualify(quote(catalog), quote(schema), quote(name));
  Table table = (Table) tables.get(key);
  
  if (table == null) {
    table = new Table();
    table.setAbstract(false);
    table.setName(name);
    table.setSchema(schema);
    table.setCatalog(catalog);
    tables.put(key, table);
    
    String qualifier = StringHelper.qualifier(key);
    List<Table> schemaList = qualifiers.get(qualifier);
    if(schemaList==null) {
      schemaList = new ArrayList<Table>();
      qualifiers.put(qualifier, schemaList);                
    }
    schemaList.add(table);
  }
  else {
    table.setAbstract(false);
  }
  
  return table;
}

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

public Table addTable(String schema, 
    String catalog, 
    String name,
    String subselect,
    boolean isAbstract
) {
  String key = subselect==null ?
    Table.qualify(catalog, schema, name, '.') :
    subselect;
  Table table = (Table) tables.get(key);
  if (table == null) {
    table = new Table();
    table.setAbstract(isAbstract);
    table.setName(name);
    table.setSchema(schema);
    table.setCatalog(catalog);
    table.setSubselect(subselect);
    tables.put(key, table);
  }
  else {
    if (!isAbstract) table.setAbstract(false);
  }
  return table;
}

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

public Table addTable(String schema, 
    String catalog, 
    String name) {
  
  String key = TableNameQualifier.qualify(quote(catalog), quote(schema), quote(name));
  Table table = (Table) tables.get(key);
  
  if (table == null) {
    table = new Table();
    table.setAbstract(false);
    table.setName(name);
    table.setSchema(schema);
    table.setCatalog(catalog);
    tables.put(key, table);
    
    String qualifier = StringHelper.qualifier(key);
    List<Table> schemaList = qualifiers.get(qualifier);
    if(schemaList==null) {
      schemaList = new ArrayList<Table>();
      qualifiers.put(qualifier, schemaList);                
    }
    schemaList.add(table);
  }
  else {
    table.setAbstract(false);
  }
  
  return table;
}

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

public Table addTable(String schema, 
    String catalog, 
    String name,
    String subselect,
    boolean isAbstract
) {
  String key = subselect==null ?
    Table.qualify(catalog, schema, name) :
    subselect;
  Table table = (Table) tables.get(key);
  if (table == null) {
    table = new Table();
    table.setAbstract(isAbstract);
    table.setName(name);
    table.setSchema(schema);
    table.setCatalog(catalog);
    table.setSubselect(subselect);
    tables.put(key, table);
  }
  else {
    if (!isAbstract) table.setAbstract(false);
  }
  return table;
}

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

public Table addDenormalizedTable(
    String schema, 
    String catalog, 
    String name,
    boolean isAbstract, 
    String subselect,
    Table includedTable)
throws MappingException {
  String key = subselect==null ?
      Table.qualify(catalog, schema, name, '.') :
      subselect;
  if ( tables.containsKey(key) ) {
    throw new MappingException("duplicate table: " + name);
  }
  Table table = new DenormalizedTable(includedTable);
  table.setAbstract(isAbstract);
  table.setName(name);
  table.setSchema(schema);
  table.setCatalog(catalog);
  table.setSubselect(subselect);
  tables.put(key, table);
  return table;
}

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

public Table addDenormalizedTable(
    String schema, 
    String catalog, 
    String name,
    boolean isAbstract, 
    String subselect,
    Table includedTable)
throws MappingException {
  String key = subselect==null ?
      Table.qualify(catalog, schema, name) :
      subselect;
  if ( tables.containsKey(key) ) {
    throw new DuplicateMappingException("table", name);
  }
  
  Table table = new DenormalizedTable(includedTable);
  table.setAbstract(isAbstract);
  table.setName(name);
  table.setSchema(schema);
  table.setCatalog(catalog);
  table.setSubselect(subselect);
  tables.put(key, table);
  return table;
}

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

public Table addTable(
    String schema,
    String catalog,
    String name,
    String subselect,
    boolean isAbstract) {
  name = getObjectNameNormalizer().normalizeIdentifierQuoting( name );
  schema = getObjectNameNormalizer().normalizeIdentifierQuoting( schema );
  catalog = getObjectNameNormalizer().normalizeIdentifierQuoting( catalog );
  String key = subselect == null ? Table.qualify( catalog, schema, name ) : subselect;
  Table table = tables.get( key );
  if ( table == null ) {
    table = new Table();
    table.setAbstract( isAbstract );
    table.setName( name );
    table.setSchema( schema );
    table.setCatalog( catalog );
    table.setSubselect( subselect );
    tables.put( key, table );
  }
  else {
    if ( !isAbstract ) {
      table.setAbstract( false );
    }
  }
  return table;
}

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

public Table addTable(
    String schema,
    String catalog,
    String name,
    String subselect,
    boolean isAbstract) {
  name = getObjectNameNormalizer().normalizeIdentifierQuoting( name );
  schema = getObjectNameNormalizer().normalizeIdentifierQuoting( schema );
  catalog = getObjectNameNormalizer().normalizeIdentifierQuoting( catalog );
  String key = subselect == null ? Table.qualify( catalog, schema, name ) : subselect;
  Table table = tables.get( key );
  if ( table == null ) {
    table = new Table();
    table.setAbstract( isAbstract );
    table.setName( name );
    table.setSchema( schema );
    table.setCatalog( catalog );
    table.setSubselect( subselect );
    tables.put( key, table );
  }
  else {
    if ( !isAbstract ) {
      table.setAbstract( false );
    }
  }
  return table;
}

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

public Table addDenormalizedTable(
    String schema,
    String catalog,
    String name,
    boolean isAbstract,
    String subselect,
    Table includedTable) throws DuplicateMappingException {
  name = getObjectNameNormalizer().normalizeIdentifierQuoting( name );
  schema = getObjectNameNormalizer().normalizeIdentifierQuoting( schema );
  catalog = getObjectNameNormalizer().normalizeIdentifierQuoting( catalog );
  String key = subselect == null ? Table.qualify(catalog, schema, name) : subselect;
  if ( tables.containsKey( key ) ) {
    throw new DuplicateMappingException( "table", name );
  }
  Table table = new DenormalizedTable( includedTable );
  table.setAbstract( isAbstract );
  table.setName( name );
  table.setSchema( schema );
  table.setCatalog( catalog );
  table.setSubselect( subselect );
  tables.put( key, table );
  return table;
}

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

public Table addDenormalizedTable(
    String schema,
    String catalog,
    String name,
    boolean isAbstract,
    String subselect,
    Table includedTable) throws DuplicateMappingException {
  name = getObjectNameNormalizer().normalizeIdentifierQuoting( name );
  schema = getObjectNameNormalizer().normalizeIdentifierQuoting( schema );
  catalog = getObjectNameNormalizer().normalizeIdentifierQuoting( catalog );
  String key = subselect == null ? Table.qualify(catalog, schema, name) : subselect;
  if ( tables.containsKey( key ) ) {
    throw new DuplicateMappingException( "table", name );
  }
  Table table = new DenormalizedTable( includedTable );
  table.setAbstract( isAbstract );
  table.setName( name );
  table.setSchema( schema );
  table.setCatalog( catalog );
  table.setSubselect( subselect );
  tables.put( key, table );
  return table;
}

相关文章

微信公众号

最新文章

更多