Examples of addColumn()


Examples of org.hibernate.mapping.Table.addColumn()

              columnElement.attributeValue( "name" ), propertyPath
          );
          column.setName( mappings.getNamingStrategy().columnName(
            logicalColumnName ) );
          if ( table != null ) {
            table.addColumn( column ); // table=null -> an association
                                       // - fill it in later
            //TODO fill in the mappings for table == null
            mappings.addColumnBinding( logicalColumnName, column, table );
          }
View Full Code Here

Examples of org.hibernate.mapping.UniqueKey.addColumn()

      }
    }
    for ( Column column : columns ) {
      if ( table.containsColumn( column ) ) {
        uc = table.getOrCreateUniqueKey( keyName );
        uc.addColumn( table.getColumn( column ) );
        unbound.remove( column );
      }
    }
    if ( unbound.size() > 0 || unboundNoLogical.size() > 0 ) {
      StringBuilder sb = new StringBuilder( "Unable to create unique key constraint (" );
View Full Code Here

Examples of org.hibernate.metamodel.relational.UniqueKey.addColumn()

          // create a default name
        }

        UniqueKey uniqueKey = table.getOrCreateUniqueKey( constraintName );
        for ( String columnName : constraintSource.columnNames() ) {
          uniqueKey.addColumn( table.locateOrCreateColumn( quoteIdentifier( columnName ) ) );
        }
      }
    }
  }
View Full Code Here

Examples of org.hibernate.sql.Insert.addColumn()

   
    Insert insert = new Insert( getDialect() )
        .setTableName( qualifiedTableName )
        .addColumns( keyColumnNames );
   
    if ( hasIdentifier) insert.addColumn( identifierColumnName );
   
    if ( hasIndex /*&& !indexIsFormula*/ ) {
      insert.addColumns( indexColumnNames, indexColumnIsSettable );
    }
   
View Full Code Here

Examples of org.hibernate.sql.SelectFragment.addColumn()

      boolean selectable = ( allProperties || !subclassColumnLazyClosure[i] ) &&
        !isSubclassTableSequentialSelect( columnTableNumbers[i] ) &&
        subclassColumnSelectableClosure[i];
      if ( selectable ) {
        String subalias = generateTableAlias( name, columnTableNumbers[i] );
        select.addColumn( subalias, columns[i], columnAliases[i] );
      }
    }

    int[] formulaTableNumbers = getSubclassFormulaTableNumberClosure();
    String[] formulaTemplates = getSubclassFormulaTemplateClosure();
View Full Code Here

Examples of org.hibernate.sql.SimpleSelect.addColumn()

   */
  protected String generateSelectVersionString() {
    SimpleSelect select = new SimpleSelect( getFactory().getDialect() )
        .setTableName( getVersionedTableName() );
    if ( isVersioned() ) {
      select.addColumn( versionColumnName );
    }
    else {
      select.addColumns( rootTableKeyColumnNames );
    }
    if ( getFactory().getSettings().isCommentsEnabled() ) {
View Full Code Here

Examples of org.hibernate.sql.Update.addColumn()

    SessionFactoryImplementor factory = lockable.getFactory();
    Update update = new Update( factory.getDialect() );
    update.setTableName( lockable.getRootTableName() );
    update.setPrimaryKeyColumnNames( lockable.getRootTableIdentifierColumnNames() );
    update.setVersionColumnName( lockable.getVersionColumnName() );
    update.addColumn( lockable.getVersionColumnName() );
    if ( factory.getSettings().isCommentsEnabled() ) {
      update.setComment( lockMode + " lock " + lockable.getEntityName() );
    }
    return update.toStatementString();
  }
View Full Code Here

Examples of org.itsnat.core.domutil.ElementTable.addColumn()

        TestUtil.checkError(table.getColumnCount() == 2);

        // En este ejemplo nos basamos en las filas y columnas originales y a�adimos m�s,
        // el patr�n de las 2 primeras celdas de la primera fila se conservar�
        table.addColumn()// El patr�n ser� el del primer elemento (el 0,0 o 1,1 visualmente)
        table.addRow(new String[]{"Item 2,1","Item 2,2","Item 2,3"});
        table.addRow(new String[]{"Item 3,1","Item 3,2","Item 3,3"});

        TestUtil.checkError(table.getRowCount() == 3);
    }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.tables.DefaultCellTable.addColumn()

            public String getValue(ThreadFactoryRecord record) {
                return String.valueOf(record.getPriority());
            }
        };

        factoryTable.addColumn(nameColumn, "Factory Name");
        factoryTable.addColumn(groupColumn, "Group");
        factoryTable.addColumn(prioColumn, "Priority");

        factoryTable.setRowData(0, Collections.EMPTY_LIST);
        add(factoryTable);
View Full Code Here

Examples of org.jboss.as.console.mbui.widgets.ModelNodeCellTable.addColumn()

            @Override
            public int compare(ModelNode node1, ModelNode node2) {
                return node1.get(FILE_NAME).asString().compareTo(node2.get(FILE_NAME).asString());
            }
        });
        table.addColumn(nameColumn, "Log File Name");

        // column: last modified
        TextColumn<ModelNode> lastModifiedColumn = new TextColumn<ModelNode>() {
            @Override
            public String getValue(ModelNode node) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.