Examples of TableFactory


Examples of cn.org.rapid_framework.generator.provider.db.table.TableFactory

  private String _package;
   
  public TableConfigSet() {
   
    //增加监听器,用于table的自定义className
    TableFactory tf = TableFactory.getInstance();
    tf.addTableFactoryListener(this);
  }
View Full Code Here

Examples of com.caucho.db.table.TableFactory

  private Query parseCreate()
    throws SQLException
  {
    int token;

    TableFactory factory = _database.createTableFactory();

    if ((token = scanToken()) != TABLE)
      throw error(L.l("expected TABLE at `{0}'", tokenName(token)));

    if ((token = scanToken()) != IDENTIFIER)
      throw error(L.l("expected identifier at `{0}'", tokenName(token)));

    factory.startTable(_lexeme);

    if ((token = scanToken()) != '(')
      throw error(L.l("expected '(' at `{0}'", tokenName(token)));

    do {
      token = scanToken();

      switch (token) {
      case IDENTIFIER:
        parseCreateColumn(factory, _lexeme);
        break;

      case UNIQUE:
        token = scanToken();
       
        if (token != KEY) {
          _token = token;
        }
       
        factory.addUnique(parseColumnNames());
        break;

      case PRIMARY:
        token = scanToken();
        if (token != KEY)
          throw error(L.l("expected 'key' at {0}", tokenName(token)));

        factory.addPrimaryKey(parseColumnNames());
        break;

      case KEY:
        String key = parseIdentifier();
View Full Code Here

Examples of com.caucho.db.table.TableFactory

  /**
   * Creates a table factory.
   */
  public TableFactory createTableFactory()
  {
    return new TableFactory(this);
  }
View Full Code Here

Examples of com.caucho.db.table.TableFactory

  /**
   * Creates a table factory.
   */
  public TableFactory createTableFactory()
  {
    return new TableFactory(this);
  }
View Full Code Here

Examples of com.caucho.db.table.TableFactory

  private Query parseCreate()
    throws SQLException
  {
    int token;

    TableFactory factory = _database.createTableFactory();

    if ((token = scanToken()) != TABLE)
      throw error(L.l("expected TABLE at `{0}'", tokenName(token)));

    if ((token = scanToken()) != IDENTIFIER)
      throw error(L.l("expected identifier at `{0}'", tokenName(token)));

    factory.startTable(_lexeme);

    if ((token = scanToken()) != '(')
      throw error(L.l("expected '(' at `{0}'", tokenName(token)));

    do {
      token = scanToken();

      switch (token) {
      case IDENTIFIER:
  parseCreateColumn(factory, _lexeme);
  break;

      case UNIQUE:
        token = scanToken();
       
        if (token != KEY) {
          _token = token;
        }
       
        factory.addUnique(parseColumnNames());
        break;

      case PRIMARY:
  token = scanToken();
  if (token != KEY)
    throw error(L.l("expected 'key' at {0}", tokenName(token)));

  factory.addPrimaryKey(parseColumnNames());
  break;

      case KEY:
  String key = parseIdentifier();
View Full Code Here

Examples of org.jitterbit.application.ui.widget.TableFactory

        showDisclaimer = true;
    }

    private KongaRowTable createTable(DatabaseObject dbObject) {
        TableModel model = new TableModel(updateKeys, dbObject);
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable table = factory.newTable(model, 4);
        TableStyles.wide().makeOver(table);
        TableCellRenderer valueRenderer = new ValueRenderer(updateKeys);
        table.setCellRendererAt(2, valueRenderer);
        TableStringEditor valueEditor = new TableStringEditor();
        valueEditor.setClickCountToStart(1);
View Full Code Here

Examples of org.jitterbit.application.ui.widget.TableFactory

        KongaTable raw = createRawTable(model);
        return new KongaRowTable(raw);
    }

    private KongaTable createRawTable(EntityTestHistoryTableModel model) {
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable raw = factory.newSortedTable(model, 10);
        raw.setComparator(model.getEntityColumnIndex(), new EntityTypeAndNameSorter());
        EntityTestHistoryTableRenderers.install(raw);
        return raw;
    }
View Full Code Here

Examples of org.jitterbit.application.ui.widget.TableFactory

        table = createTable(dbObject);
    }

    private KongaRowTable createTable(DatabaseObject dbObject) {
        TableModel model = new TableModel(dbObject);
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable table = factory.newTable(model, 4);
        TableStyles.normal().makeOver(table);
        return new KongaRowTable(table);
    }
View Full Code Here

Examples of org.jitterbit.application.ui.widget.TableFactory

    public int getNumberOfDisplayedProperties() {
        return tableModel.getRowCount();
    }

    private KongaRowTable createTable(PropertiesDescriptorTableModel model) {
        TableFactory factory = ComponentFactories.tableFactory();
        int visibleRows = getVisibleRowCount(model);
        KongaTable raw = factory.newTable(model, visibleRows);
        customizeTable(raw);
        return new KongaRowTable(raw);
    }
View Full Code Here

Examples of org.jitterbit.application.ui.widget.TableFactory

        }
        return model;
    }

    private KongaRowTable createTable() {
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable table = factory.newTable(tableModel);
        TableStyles.normal().makeOver(table);
        table.setVisibleRowCount(Math.min(4, tableModel.getRowCount()));
        table.setShowVerticalLines(true);
        table.setTerminateEditOnFocusLost(true);
        installEditors(table);
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.