Examples of UnexpectedReturnValueException


Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

            }

            // Read all Items
            items = r.getBeanList(beanClass, maxItems);
            if (items == null)
                throw new UnexpectedReturnValueException(items, "DBReader.getBeanList");
            generateIdParams(rowset, items);
            assignSelectionMap(items);

            // set position at session object
            if (loadPageFromPosition)
View Full Code Here

Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

        }
        else
        {   // check type
            UIComponent comp = compList.get(0);
            if (!(comp instanceof HtmlInputText))
                throw new UnexpectedReturnValueException(comp.getClass().getName(), "compList.get");
            // cast
            input = (HtmlInputText)comp;
        }

        // disabled
View Full Code Here

Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

        }
        else
        {   // check type
            UIComponent comp = compList.get(0);
            if (!(comp instanceof HtmlSelectOneMenu))
                throw new UnexpectedReturnValueException(comp.getClass().getName(), "compList.get");
            // cast
            input = (HtmlSelectOneMenu)comp;
            // disabled
            boolean disabled = ii.isDisabled();
            input.setDisabled(disabled);
View Full Code Here

Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

        }
        else
        {   // check type
            UIComponent comp = compList.get(0);
            if (!(comp instanceof HtmlSelectBooleanCheckbox))
                throw new UnexpectedReturnValueException(comp.getClass().getName(), "compList.get");
            // cast
            input = (HtmlSelectBooleanCheckbox)comp;
        }

        // disabled
View Full Code Here

Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

        for (int i=0; i<count; i++)
        {  // check UIInput
          UIComponent comp = parent.getChildren().get(i);
          if (comp instanceof UIInput)
          {  if (inp!=null)
              throw new UnexpectedReturnValueException(comp, "comp.getChildren().get("+String.valueOf(i)+")");
            inp = (UIInput)comp;
          }
        }
        // No UIInput found
        if (inp==null)
          throw new UnexpectedReturnValueException(null, "comp.getChildren().get()");
        // done
        return inp;
    }
View Full Code Here

Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

        }
        else
        {   // check type
            UIComponent comp = compList.get(0);
            if (!(comp instanceof HtmlInputTextarea))
                throw new UnexpectedReturnValueException(comp.getClass().getName(), "compList.get");
            // cast
            input = (HtmlInputTextarea)comp;
        }

        // disabled
View Full Code Here

Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

            {
                case 1: hash.append('0');
                case 2: hash.append(part);
                        break;
                default:
                        throw new UnexpectedReturnValueException(part, "Integer.toHexString");
                        // hash.append(part.substring(2));
            }
        }
        return hash.toString();
    }
View Full Code Here

Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

            throw new InvalidArgumentException("driver", driver);
        // get Statement
        DBSQLScript script = new DBSQLScript();
        driver.addEnableRelationStmt(this, enable, script);
        if (script.getCount()!=1)
            throw new UnexpectedReturnValueException(script.getCount(), "driver.addEnableRelationStatement");
        return script.getStmt(0);
    }
View Full Code Here

Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

            throw new InvalidArgumentException("driver", driver);
        // get Statement
        DBSQLScript script = new DBSQLScript();
        driver.addEnableRelationStmt(this, enable, script);
        if (script.getCount()!=1)
            throw new UnexpectedReturnValueException(script.getCount(), "driver.addEnableRelationStatement");
        return script.getStmt(0);
    }
View Full Code Here

Examples of org.apache.empire.exceptions.UnexpectedReturnValueException

            }

            // Read all Items
            items = r.getBeanList(beanClass, maxItems);
            if (items == null)
                throw new UnexpectedReturnValueException(items, "DBReader.getBeanList");
            generateIdParams(rowset, items);
            assignSelectionMap(items);

            // set position at session object
            if (loadPageFromPosition)
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.