Examples of GenericObject


Examples of de.willuhn.datasource.GenericObject

      {
        if (item == null || item.getData() == null)
          return;
        try
        {
          GenericObject i = (GenericObject) item.getData();
          Object value = i.getAttribute("betrag");
          if (value == null || !(value instanceof Double))
            return;
         
          Double betrag = (Double) value;
         
View Full Code Here

Examples of de.willuhn.datasource.GenericObject

            }
         
          });
         
          long count = 1;
          GenericObject o = null;
          while ((o = reader.read()) != null)
          {
            try
            {
              ((AbstractDBObject)o).insert();
            }
            catch (Exception e)
            {
              if (o instanceof Protokoll)
              {
                // Bei den Protokollen kann das passieren. Denn beim Import der Datei werden vorher
                // die Konten importiert. Und deren Anlage fuehrt auch bereits zur Erstellung von
                // Protokollen, deren IDs dann im Konflikt zu diesen hier stehen.
                Logger.write(Level.DEBUG,"unable to import " + o.getClass().getName() + ":" + o.getID() + ", skipping",e);
              }
              else
              {
                Logger.error("unable to import " + o.getClass().getName() + ":" + o.getID() + ", skipping",e);
                monitor.log("  " + i18n.tr("{0} fehlerhaft ({1}), �berspringe",new String[]{BeanUtil.toString(o),e.getMessage()}));
              }
            }
            if (count++ % 100 == 0)
              monitor.addPercentComplete(1);
View Full Code Here

Examples of de.willuhn.datasource.GenericObject

    public void handleMessage(Message message) throws Exception
    {
      if (message == null)
        return;
     
      final GenericObject o = ((ObjectMessage)message).getObject();
     
      if (o == null)
        return;
     
      // Checken, ob uns der Transfer-Typ interessiert
View Full Code Here

Examples of de.willuhn.datasource.GenericObject

     */
    public void handleMessage(Message message) throws Exception
    {
      if (message == null || !(message instanceof ImportMessage))
        return;
      final GenericObject o = ((ImportMessage)message).getObject();
     
      if (o == null || !(o instanceof SammelTransferBuchung))
        return;
     
      GUI.getDisplay().syncExec(new Runnable() {
View Full Code Here

Examples of de.willuhn.datasource.GenericObject

  {
    target.add(root);
    GenericIterator children = root.getChildren();
    while (children.hasNext())
    {
      GenericObject o = children.next();
      if (o instanceof GenericObjectNode)
        _addGroup((GenericObjectNode)o,target);
    }
  }
View Full Code Here

Examples of de.willuhn.datasource.GenericObject

    public void handleMessage(Message message) throws Exception
    {
      if (message == null)
        return;
     
      final GenericObject o = ((ObjectMessage)message).getObject();
     
      if (o == null)
        return;
     
      // Checken, ob uns der Transfer-Typ interessiert
      if (!getObjectType().isAssignableFrom(o.getClass()))
        return;
     
      if (message instanceof ObjectChangedMessage)
      {
        GUI.startSync(new Runnable() {
View Full Code Here

Examples of de.willuhn.datasource.GenericObject

     */
    @Override
    public void handleMessage(Message message) throws Exception
    {
      ImportMessage im = (ImportMessage) message;
      GenericObject o = im.getObject();
      if (!(o instanceof Nachricht))
        return;
     
      final Nachricht n = (Nachricht) o;
     
View Full Code Here

Examples of de.willuhn.datasource.GenericObject

  {
    // Wenn es keine Import-Message ist ignorieren wir die folgenden
    if (message == null || !(message instanceof ImportMessage))
      return;
   
    GenericObject o = ((ImportMessage)message).getObject();
   
    if (!(o instanceof Umsatz))
      return; // interessiert uns nicht
   
    // wir haben einen Umsatz, den es zu bearbeiten gilt...
View Full Code Here

Examples of de.willuhn.datasource.GenericObject

    public void handleMessage(Message message) throws Exception
    {
      if (message == null)
        return;
     
      final GenericObject o = ((ObjectMessage)message).getObject();

      if (o == null || !(o instanceof Umsatz))
        return;
     
      // wir machen das Update in einer Bulk-Operation, damit die Summen-Zeile nicht
View Full Code Here

Examples of de.willuhn.datasource.GenericObject

    public void handleMessage(Message message) throws Exception
    {
      if (message == null)
        return;
     
      final GenericObject o = ((ObjectMessage)message).getObject();

      if (o == null || !(o instanceof Umsatz))
        return;

      GUI.getDisplay().syncExec(new Runnable() {
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.