Revision 43355 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
63 63
        public final static String UPDATE_table_SET_columnsAndValues_WHERE_expresion = "UPDATE_table_SET_columnsAndValues_WHERE_expresion";
64 64
        public final static String UPDATE_table_SET_columnsAndValues = "UPDATE_table_SET_columnsAndValues";
65 65
        public final static String GRANT_privileges_ON_table_TO_role = "GRANT_privileges_ON_table_TO_role";
66
    
66
        public final static String CREATE_INDEX_name_ON_table_column = "CREATE_INDEX_name_ON_table_column";
67
        public final static String CREATE_INDEX_name_ON_table_USING_GIST_column = "CREATE_INDEX_name_ON_table_USING_GIST_column";
68
   
67 69
    }
68 70
    
69 71
    public interface TableNameBuilder extends Visitable {
......
83 85
        public int getSize();
84 86
        public int getPrecision();
85 87
        public boolean isPrimaryKey();
88
        public boolean isIndexed();
86 89
        public boolean isAutomatic();
87 90
        boolean allowNulls();
88 91
        public Object getDefaultValue();
......
213 216
    public interface AlterTableBuilder extends Statement {
214 217
        public TableNameBuilder table();
215 218
        public AlterTableBuilder drop_column(String columnName);
216
        public AlterTableBuilder add_column(String columnName, int type, int type_p, int type_s, boolean isPk, boolean allowNulls, boolean isAutomatic, Object defaultValue);
217
        public AlterTableBuilder alter_column(String columnName, int type, int type_p, int type_s, boolean isPk, boolean allowNulls, boolean isAutomatic, Object defaultValue);
219
        public AlterTableBuilder add_column(String columnName, int type, int type_p, int type_s, boolean isPk, boolean isIndexed, boolean allowNulls, boolean isAutomatic, Object defaultValue);
220
        public AlterTableBuilder alter_column(String columnName, int type, int type_p, int type_s, boolean isPk, boolean isIndexed, boolean allowNulls, boolean isAutomatic, Object defaultValue);
218 221
        public AlterTableBuilder rename_column(String source, String target);
219 222
        public List<String> toStrings();
220 223
    }
221 224
    
222 225
    public interface CreateTableBuilder extends Statement {
223 226
        public TableNameBuilder table();
224
        public CreateTableBuilder add_column(String columnName, int type, int type_p, int type_s, boolean isPk, boolean allowNulls, boolean isAutomatic, Object defaultValue);
225
        public CreateTableBuilder add_geometry_column(String columnName, int geom_type, int geom_subtype, IProjection proj, boolean allowNulls);
227
        public CreateTableBuilder add_column(String columnName, int type, int type_p, int type_s, boolean isPk, boolean isIndexed, boolean allowNulls, boolean isAutomatic, Object defaultValue);
228
        public CreateTableBuilder add_geometry_column(String columnName, int geom_type, int geom_subtype, IProjection proj, boolean isIndexed, boolean allowNulls);
226 229
        public ColumnDescriptorBuilder getColumnDescriptor(String columnName);
227 230
        public List<String> toStrings();
228 231
    }
......
256 259
    }
257 260

  
258 261
    public String default_schema();
262
    
263
    public boolean supportSchemas();
259 264

  
260 265
    public String sqltype(int dataType, int p, int s);
261 266
    

Also available in: Unified diff