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 @ 44058
History | View | Annotate | Download (918 Bytes)
1 |
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 |
import org.gvsig.fmap.dal.store.jdbc2.OperationsFactory.TableReference; |
7 |
|
8 |
public class CanModifyTableOperation extends AbstractConnectionOperation { |
9 |
|
10 |
private final TableReference table; |
11 |
|
12 |
public CanModifyTableOperation(
|
13 |
JDBCHelper helper |
14 |
) { |
15 |
this(helper, null); |
16 |
} |
17 |
|
18 |
public CanModifyTableOperation(
|
19 |
JDBCHelper helper, |
20 |
TableReference table |
21 |
) { |
22 |
super(helper);
|
23 |
this.table = table;
|
24 |
} |
25 |
|
26 |
@Override
|
27 |
public Object perform(Connection conn) throws DataException { |
28 |
return this.canModifyTable(conn,table); |
29 |
} |
30 |
|
31 |
public boolean canModifyTable(Connection conn,TableReference table) throws DataException { |
32 |
return true; |
33 |
} |
34 |
|
35 |
} |