public ManageableCollection createCollectionProxy ( PBKey brokerKey , Query query , Class collectionClass ) { Object args [ ] = { brokerKey , collectionClass , query } ; try { return ( ManageableCollection ) getCollectionProxyConstructor ( collectionClass ) . newInstance ( args ) ; } catch ( InstantiationException ex ) { throw new PersistenceBrokerException ( "Exception while creating a new collection proxy instance" , ex ) ; } catch ( InvocationTargetException ex ) { throw new PersistenceBrokerException ( "Exception while creating a new collection proxy instance" , ex ) ; } catch ( IllegalAccessException ex ) { throw new PersistenceBrokerException ( "Exception while creating a new collection proxy instance" , ex ) ; } }
Create a Collection Proxy for a given query .