Forgive my ignorance, but what is the reason for making these Collection<?>
rather than Collection<? extends Persistent> ?  Is it for JPA POJO support?

-- 
Kevin


On 11/20/07 2:43 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> ==============================================================================
> --- 
> cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apac
> he/cayenne/BaseContext.java (original)
> +++ 
> cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apac
> he/cayenne/BaseContext.java Tue Nov 20 11:43:12 2007
> @@ -45,7 +45,7 @@
>  
>      public abstract void deleteObject(Object object) throws
> DeleteDenyException;
>  
> -    public abstract Collection deletedObjects();
> +    public abstract Collection<?> deletedObjects();
>  
>      public DataChannel getChannel() {
>          return channel;
> @@ -57,17 +57,17 @@
>  
>      public abstract Persistent localObject(ObjectId id, Object prototype);
>  
> -    public abstract Collection modifiedObjects();
> +    public abstract Collection<?> modifiedObjects();
>  
>      public abstract <T> T newObject(Class<T> persistentClass);
>  
>      public abstract void registerNewObject(Object object);
>  
> -    public abstract Collection newObjects();
> +    public abstract Collection<?> newObjects();
>  
>      public abstract QueryResponse performGenericQuery(Query query);
>  
> -    public abstract List performQuery(Query query);
> +    public abstract List<?> performQuery(Query query);

Reply via email to