Package quickdb.exception

Examples of quickdb.exception.DictionaryIncompleteException


                statement = nameSta + "=" + valueId;
            } else {
                statement = manager.primaryKey.peek() + " > 0";
            }
        }catch(Exception e){
            throw new DictionaryIncompleteException();
        }

        if (sizeCollectionInt != 0) {
            manager.sizeCollection.push(sizeCollectionInt);
        }
View Full Code Here


                    case FOREIGNKEY:
                        value = rs.getObject(body.colName());
                        if (manager.dropDown) {
                            Integer index = (Integer) value;
                            if(!this.contains(get.getClass().getName())){
                                throw new DictionaryIncompleteException();
                            }
                            String indexName = EntityDictionary.dict.get(get.getClass().getName()).
                                    getData().get(0).colName();

                            if (admin.obtainWhere(get, indexName + "=" + index)) {
                                body.set().invoke(object, new Object[]{get});
                            }
                        }
                        break;
                    case PRIMITIVE:
                        if (value instanceof Timestamp) {
                            body.set().invoke(object, new Object[]{
                                        manager.getRef().manageTimeData(get.getClass(),
                                        ((Timestamp) value))});
                        } else {
                            body.set().invoke(object, new Object[]{value});
                        }
                        break;
                }
            }
        }catch(Exception e){
            throw new DictionaryIncompleteException();
        }
        if (data.isHasParent()) {
            this.restoreParent(admin, manager, object, rs);
        }
        for (int i = manager.primaryKey.size() - 1; i >= primKeyItems; i--) {
View Full Code Here

        }
        try {
            parent = manager.getRef().emptyInstance(child.getClass().getSuperclass().getName());

            if(!this.contains(parent.getClass().getName())){
                throw new DictionaryIncompleteException();
            }
            DictionaryData data = EntityDictionary.dict.get(parent.getClass().getName());

            manager.primaryKey.push(data.getData().get(0).colName());
            for (DictionaryBody body : data.getData()) {
View Full Code Here

        try {
            parent = manager.getRef().emptyInstance(child.getClass().getSuperclass().getName());
           
            if(!this.contains(parent.getClass().getName())){
                throw new DictionaryIncompleteException();
            }
            DictionaryData data = EntityDictionary.dict.get(parent.getClass().getName());

            String sql = data.getData().get(0).colName() + "=" + rs.getObject("parent_id");
            admin.obtainWhere(parent, sql);
View Full Code Here

TOP

Related Classes of quickdb.exception.DictionaryIncompleteException

Copyright © 2018 www.massapicom. 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.