Revision 43114 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
SQLBuilder.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.dal; |
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 |
import org.cresques.cts.IProjection; |
|
4 | 5 |
|
5 | 6 |
public interface SQLBuilder extends ExpressionBuilder { |
6 | 7 |
|
... | ... | |
75 | 76 |
public boolean has_database(); |
76 | 77 |
public boolean has_schema(); |
77 | 78 |
} |
79 |
|
|
80 |
public interface ColumnDescriptorBuilder { |
|
81 |
public String getName(); |
|
82 |
public int getType(); |
|
83 |
public int getSize(); |
|
84 |
public int getPrecision(); |
|
85 |
public boolean isPrimaryKey(); |
|
86 |
public boolean isAutomatic(); |
|
87 |
boolean allowNulls(); |
|
88 |
public Object getDefaultValue(); |
|
89 |
public int getGeometryType(); |
|
90 |
public int getGeometrySubtype(); |
|
91 |
public int getGeometrySRSId(); |
|
92 |
public boolean isGeometry(); |
|
93 |
|
|
94 |
public void setName(String name); |
|
95 |
public void setType(int type); |
|
96 |
public void setSize(int size); |
|
97 |
public void setPrecision(int precision); |
|
98 |
public void setIsPrimaryKey(boolean isPk); |
|
99 |
public void setIsAutomatic(boolean isAutomatic); |
|
100 |
public void setAllowNulls(boolean allowNulls); |
|
101 |
public void setDefaultValue(Object defaultValue); |
|
102 |
public void setGeometryType(int geom_type); |
|
103 |
public void setGeometrySubtype(int geom_subtype); |
|
104 |
public void setGeometrySRSId(int geom_srsid); |
|
105 |
} |
|
78 | 106 |
|
79 | 107 |
public interface CountBuilder extends Value { |
80 | 108 |
public CountBuilder all(); |
... | ... | |
194 | 222 |
public interface CreateTableBuilder extends Statement { |
195 | 223 |
public TableNameBuilder table(); |
196 | 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); |
|
226 |
public ColumnDescriptorBuilder getColumnDescriptor(String columnName); |
|
197 | 227 |
public List<String> toStrings(); |
198 | 228 |
} |
199 | 229 |
|
... | ... | |
228 | 258 |
public String default_schema(); |
229 | 259 |
|
230 | 260 |
public String sqltype(int dataType, int p, int s); |
261 |
|
|
262 |
public Object sqlgeometrytype(int type, int subtype); |
|
231 | 263 |
|
264 |
public Object sqlgeometrydimension(int type, int subtype); |
|
265 |
|
|
232 | 266 |
public SelectBuilder select(); |
233 | 267 |
|
234 | 268 |
public UpdateBuilder update(); |
Also available in: Unified diff