Revision 44058 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc2/OperationsFactory.java
OperationsFactory.java | ||
---|---|---|
10 | 10 |
import org.gvsig.fmap.dal.feature.FeatureType; |
11 | 11 |
import org.gvsig.fmap.dal.SQLBuilder; |
12 | 12 |
import org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices; |
13 |
import org.gvsig.fmap.dal.store.jdbc.JDBCNewStoreParameters; |
|
14 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters; |
|
13 | 15 |
import org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters; |
14 | 16 |
import org.gvsig.fmap.dal.store.jdbc2.spi.operations.AppendOperation; |
15 | 17 |
import org.gvsig.fmap.dal.store.jdbc2.spi.operations.CalculateEnvelopeOfColumnOperation; |
... | ... | |
30 | 32 |
|
31 | 33 |
public interface OperationsFactory { |
32 | 34 |
|
33 |
public FetchFeatureTypeOperation createFetchFeatureType( |
|
34 |
EditableFeatureType type, |
|
35 |
public interface TableReference { |
|
36 |
public String getDatabase(); |
|
37 |
public String getSchema(); |
|
38 |
public String getTable(); |
|
39 |
public String getSubquery(); |
|
40 |
public boolean hasDatabase(); |
|
41 |
public boolean hasSchema(); |
|
42 |
public boolean hasTable(); |
|
43 |
public boolean hasSubquery(); |
|
44 |
} |
|
45 |
|
|
46 |
public TableReference createTableReference( |
|
35 | 47 |
String database, |
36 | 48 |
String schema, |
37 | 49 |
String table, |
50 |
String subquery |
|
51 |
); |
|
52 |
|
|
53 |
public TableReference createTableReference(JDBCStoreParameters params); |
|
54 |
public TableReference createTableReference(JDBCNewStoreParameters params); |
|
55 |
|
|
56 |
public FetchFeatureTypeOperation createFetchFeatureType( |
|
57 |
EditableFeatureType type, |
|
58 |
TableReference table, |
|
38 | 59 |
List<String> primaryKeys, |
39 | 60 |
String defaultGeometryField, |
40 | 61 |
IProjection crs |
41 | 62 |
); |
42 | 63 |
|
43 |
// public FetchFeatureTypeOperation createFetchFeatureType( |
|
44 |
// EditableFeatureType type, |
|
45 |
// String defaultGeometryField, |
|
46 |
// IProjection crs |
|
47 |
// ); |
|
48 |
// |
|
49 | 64 |
public FetchFeatureProviderByReferenceOperation createFetchFeatureProviderByReference( |
50 | 65 |
FeatureReferenceProviderServices reference, |
51 | 66 |
FeatureType featureType, |
52 |
String database, |
|
53 |
String schema, |
|
54 |
String table |
|
67 |
TableReference table |
|
55 | 68 |
); |
56 | 69 |
|
57 | 70 |
public CalculateEnvelopeOfColumnOperation createCalculateEnvelopeOfColumn( |
58 |
String subquery, |
|
59 |
String database, |
|
60 |
String schema, |
|
61 |
String table, |
|
71 |
TableReference table, |
|
62 | 72 |
String columnName, |
63 | 73 |
String baseFilter, |
64 | 74 |
Envelope workingArea, |
... | ... | |
66 | 76 |
); |
67 | 77 |
|
68 | 78 |
public PerformChangesOperation createPerformChanges( |
69 |
String database, |
|
70 |
String schema, |
|
71 |
String table, |
|
79 |
TableReference table, |
|
72 | 80 |
FeatureType type, |
73 | 81 |
Iterator deleteds, |
74 | 82 |
Iterator inserteds, |
... | ... | |
77 | 85 |
); |
78 | 86 |
|
79 | 87 |
public AppendOperation createAppend( |
80 |
String database, |
|
81 |
String schema, |
|
82 |
String table, |
|
88 |
TableReference table, |
|
83 | 89 |
FeatureType type |
84 | 90 |
); |
85 | 91 |
|
86 | 92 |
public CountOperation createCount( |
87 |
String database, |
|
88 |
String schema, |
|
89 |
String table, |
|
90 |
String sql, |
|
93 |
TableReference table, |
|
91 | 94 |
String baseFilter, |
92 | 95 |
String filter |
93 | 96 |
); |
94 | 97 |
|
95 | 98 |
public TableIsEmptyOperation createTableIsEmpty( |
96 |
String database, |
|
97 |
String schema, |
|
98 |
String table, |
|
99 |
String sql, |
|
99 |
TableReference table, |
|
100 | 100 |
String baseFilter, |
101 | 101 |
String filtersql |
102 | 102 |
); |
103 | 103 |
|
104 | 104 |
public ResultSetForSetProviderOperation createResultSetForSetProvider( |
105 |
String database, |
|
106 |
String schema, |
|
107 |
String table, |
|
108 |
String subquery, |
|
105 |
TableReference table, |
|
109 | 106 |
String baseFilter, |
110 | 107 |
String baseOrder, |
111 | 108 |
FeatureQuery query, |
... | ... | |
123 | 120 |
); |
124 | 121 |
|
125 | 122 |
public DropTableOperation createDropTable( |
126 |
String database, |
|
127 |
String schemaName, |
|
128 |
String tableName |
|
123 |
TableReference table |
|
129 | 124 |
); |
130 | 125 |
|
131 | 126 |
public CreateTableOperation createTable( |
132 |
String database, |
|
133 |
String schemaName, |
|
134 |
String tableName, |
|
127 |
TableReference table, |
|
135 | 128 |
FeatureType type, |
136 | 129 |
List<Pair<String, SQLBuilder.Privilege>> userAndPrivileges, |
137 | 130 |
List<String> additionalSQLs |
... | ... | |
140 | 133 |
public CanCreateTablesOperation createCanCreateTables(); |
141 | 134 |
|
142 | 135 |
public UpdateTableStatisticsOperation createUpdateTableStatistics( |
143 |
String database, |
|
144 |
String schemaName, |
|
145 |
String tableName |
|
136 |
TableReference table |
|
146 | 137 |
); |
147 | 138 |
|
148 | 139 |
public CanModifyTableOperation createCanModifyTableOperation( |
149 |
String dbName, |
|
150 |
String schemaName, |
|
151 |
String tableName |
|
140 |
TableReference table |
|
152 | 141 |
); |
153 | 142 |
|
154 | 143 |
public ExecuteOperation createExecute(String sql); |
Also available in: Unified diff