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/spi/operations/CanModifyTableOperation.java
CanModifyTableOperation.java | ||
---|---|---|
3 | 3 |
import java.sql.Connection; |
4 | 4 |
import org.gvsig.fmap.dal.exception.DataException; |
5 | 5 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCHelper; |
6 |
import org.gvsig.fmap.dal.store.jdbc2.OperationsFactory.TableReference; |
|
6 | 7 |
|
7 | 8 |
public class CanModifyTableOperation extends AbstractConnectionOperation { |
8 | 9 |
|
9 |
private final String schemaName; |
|
10 |
private final String tableName; |
|
11 |
private final String dbName; |
|
10 |
private final TableReference table; |
|
12 | 11 |
|
13 | 12 |
public CanModifyTableOperation( |
14 | 13 |
JDBCHelper helper |
15 | 14 |
) { |
16 |
this(helper, null, null, null);
|
|
15 |
this(helper, null); |
|
17 | 16 |
} |
18 | 17 |
|
19 | 18 |
public CanModifyTableOperation( |
20 | 19 |
JDBCHelper helper, |
21 |
String dbName, |
|
22 |
String schemaName, |
|
23 |
String tableName |
|
20 |
TableReference table |
|
24 | 21 |
) { |
25 | 22 |
super(helper); |
26 |
this.dbName = dbName; |
|
27 |
this.schemaName = schemaName; |
|
28 |
this.tableName = tableName; |
|
23 |
this.table = table; |
|
29 | 24 |
} |
30 | 25 |
|
31 | 26 |
@Override |
32 | 27 |
public Object perform(Connection conn) throws DataException { |
33 |
return this.canModifyTable(conn, |
|
34 |
dbName, schemaName, tableName); |
|
28 |
return this.canModifyTable(conn,table); |
|
35 | 29 |
} |
36 | 30 |
|
37 |
public boolean canModifyTable(Connection conn, |
|
38 |
String dbName, |
|
39 |
String schemaName, |
|
40 |
String tableName |
|
41 |
) throws DataException { |
|
42 |
|
|
31 |
public boolean canModifyTable(Connection conn,TableReference table) throws DataException { |
|
43 | 32 |
return true; |
44 | 33 |
} |
45 | 34 |
|
Also available in: Unified diff