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