Examples of DBString


Examples of com.antlersoft.bbq.db.DBString

  }
 
  void addString( String s, int lineNumber)
  throws Exception
  {
    DBString dbs=DBString.get(db.getSession(), s);
    if ( ! getStringList().existsReference( dbs, lineNumber))
    {
      getStringList().addReference( new DBStringReference(initializer,dbs,lineNumber));
    }
  }
View Full Code Here

Examples of com.antlersoft.bbq.db.DBString

          if ( constant.length()>0)
          {
            try
            {
              int lineNumber=codeAttribute.getLineNumber( instruction.getInstructionStart());
              DBString target=DBString.get(db.getSession(),constant);
              if ( ! stringRefUpdater.existsReference(target, lineNumber))
              {
                stringRefUpdater.addReference( new DBStringReference(DBMethod.this, target, lineNumber));
              }
            }
View Full Code Here

Examples of net.pleso.framework.client.dal.db.types.DBString

   * @see net.pleso.framework.client.ui.controls.dataGrid.interfaces.IDataBinder#bindRow(net.pleso.framework.client.ui.controls.dataGrid.interfaces.IDataGridRow)
   */
  public void bindRow(IDataGridRow dataGridRow) {
    for (int i = 0; i < columns.length; ++i) {
      // by default value in cell is empty string value
      IDBValue value = new DBString();

      // first check parent data column type - IRBDataColumn
      if (columns[i] instanceof IRBDataColumn) {
        value = ((IDataRow) dataGridRow.getDataRow())
            .getCell(((IRBDataColumn) columns[i]).getDataColumn());

        if (value != null) {
          // if value is boolean value
          if (value instanceof DBBoolean) {
            // set special widget for boolean values
            // all another types shows default handler
            dataGridRow.setCellWidget(i, new BooleanValueWidget((DBBoolean) value));
            continue;
          }
        }
      }

      // check IRBEnumDataColumn
      if (columns[i] instanceof IRBEnumDataColumn) {
        String stringValue = getEnumValue(value,
            ((IRBEnumDataColumn) columns[i]).getEnum());

        if (stringValue == null)
          dataGridRow.setCellWidget(i, new HTML("&nbsp;"));
        else
          dataGridRow.setCellText(i, stringValue);
        continue;
      }

      // insert handlers for your IRB data solumns types HERE !

      // default handler of value without check columns types
      if (value == null) {
        dataGridRow.setCellWidget(i, new HTML("&nbsp;"));
      } else {
        if (value.isNull())
          dataGridRow.setCellWidget(i, new HTML("&nbsp;"));
        else
          dataGridRow.setCellText(i, value.getValue());
      }
    }

    checkRowClassifier(dataGridRow);
  }
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.