01: /*-------------------------------------------------------------------------
02: *
03: * Copyright (c) 2004-2005, PostgreSQL Global Development Group
04: * Copyright (c) 2004, Open Cloud Limited.
05: *
06: * IDENTIFICATION
07: * $PostgreSQL: pgjdbc/org/postgresql/core/v3/V3Query.java,v 1.4 2005/01/11 08:25:44 jurka Exp $
08: *
09: *-------------------------------------------------------------------------
10: */
11: package org.postgresql.core.v3;
12:
13: import org.postgresql.core.Query;
14:
15: /**
16: * Common interface for all V3 query implementations.
17: *
18: * @author Oliver Jowett (oliver@opencloud.com)
19: */
20: interface V3Query extends Query {
21: /**
22: * Return a list of the SimpleQuery objects that
23: * make up this query. If this object is already a
24: * SimpleQuery, returns null (avoids an extra array
25: * construction in the common case).
26: *
27: * @return an array of single-statement queries, or <code>null</code>
28: * if this object is already a single-statement query.
29: */
30: SimpleQuery[] getSubqueries();
31: }
|