Package org.apache.jackrabbit.ocm.manager.collectionconverter.impl

Examples of org.apache.jackrabbit.ocm.manager.collectionconverter.impl.ManageableSet


            if (collectionClass.equals(Vector.class)) {
                return new ManageableVector();
            }

            if (collectionClass.equals(HashSet.class)) {
                return new ManageableSet();
            }
           
            if (collectionClass.equals(Collection.class) || collectionClass.equals(List.class)) {
                return new ManageableArrayList();
            }

            if (collectionClass.equals(Set.class)) {
                return new ManageableSet();
            }
           
            Object collection = collectionClass.newInstance();
            if (!(collection instanceof ManageableCollection)) {
                throw new JcrMappingException("Unsupported collection type :"
View Full Code Here


                return manageableVector;
            }

            if (object.getClass().equals(HashSet.class)) {
                return new ManageableSet((Set) object);
            }
           
            if (object.getClass().equals(Collection.class)
                || object.getClass().equals(List.class)) {
                ManageableArrayList manageableArrayList = new ManageableArrayList();
                manageableArrayList.addAll((Collection) object);

                return manageableArrayList;
            }
            if (object.getClass().equals(Set.class)) {
                return new ManageableSet((Set) object);
            }
        }
        catch (Exception e) {
            throw new JcrMappingException("Impossible to create the manageable collection", e);
        }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.ocm.manager.collectionconverter.impl.ManageableSet

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.