Revision 43093 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/SQLBuilder.java

View differences:

SQLBuilder.java
132 132
        public OrderByBuilder order_by();
133 133
        public SelectBuilder distinct();
134 134
        public SelectBuilder limit(long limit);
135
        
136
        /**
137
         * Specifies an offset to be applied to the SQL statement.
138
         * Only an offset can be applied if an order has been specified. 
139
         * Otherwise an IllegalStateException exception will be thrown when 
140
         * constructing the SQL statement invoking the toString method.
141
         * 
142
         * @param offset
143
         * @return this SelectBuilder
144
         */
135 145
        public SelectBuilder offset(long offset);
146
        
136 147
        public boolean has_column(String name);
137 148
        public boolean has_where();
138 149
        public boolean has_from();
139 150
        public boolean has_order_by();
140 151
        public boolean has_limit();
141 152
        public boolean has_offset();
153

  
154
        /**
155
         * Constructs the SQL statement.
156
         * If the values associated with the SQL statement are not valid 
157
         * an IllegalStateException exception is thrown.
158
         * 
159
         * @return the SQL select statement.
160
         * @throws IllegalStateException if the values of select statement are not valids.
161
         */
162
        @Override
163
        public String toString();
164
        
142 165
    }
143 166
    
144 167
    public interface UpdateBuilder extends Statement {

Also available in: Unified diff