svn-gvsig-desktop / 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 / store / jdbc / JDBCStoreParameters.java @ 46542
History | View | Annotate | Download (2.25 KB)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
package org.gvsig.fmap.dal.store.jdbc; |
7 |
|
8 |
import org.gvsig.fmap.dal.DataStoreParameters; |
9 |
import org.gvsig.fmap.dal.store.db.DBStoreParameters; |
10 |
|
11 |
/**
|
12 |
*
|
13 |
* @author fdiaz
|
14 |
*/
|
15 |
public interface JDBCStoreParameters extends JDBCConnectionParameters, DBStoreParameters { |
16 |
|
17 |
String BATCHSIZE_PARAMTER_NAME = "batchSize"; |
18 |
|
19 |
String getBaseFilter();
|
20 |
|
21 |
String getBaseOrder();
|
22 |
|
23 |
int getBatchSize();
|
24 |
|
25 |
String getCatalog();
|
26 |
|
27 |
JDBCStoreParameters getCopy(); |
28 |
|
29 |
String getDBName();
|
30 |
|
31 |
String[] getFields(); |
32 |
|
33 |
String getFieldsString();
|
34 |
|
35 |
String getHost();
|
36 |
|
37 |
String getJDBCDriverClassName();
|
38 |
|
39 |
String getPassword();
|
40 |
|
41 |
String[] getPkFields(); |
42 |
|
43 |
String getPkFieldsString();
|
44 |
|
45 |
Integer getPort();
|
46 |
|
47 |
String getSQL();
|
48 |
|
49 |
String getSchema();
|
50 |
|
51 |
/**
|
52 |
* Compound a string that can identify the source
|
53 |
*
|
54 |
* @return
|
55 |
*/
|
56 |
String getSourceId();
|
57 |
|
58 |
String getTable();
|
59 |
|
60 |
String getUrl();
|
61 |
|
62 |
String getUser();
|
63 |
|
64 |
boolean isTheSameStore(DataStoreParameters params);
|
65 |
|
66 |
boolean isValid();
|
67 |
|
68 |
void setBaseFilter(String initialFilter); |
69 |
|
70 |
void setBaseOrder(String order); |
71 |
|
72 |
void setBatchSize(int batchSize); |
73 |
|
74 |
/**
|
75 |
* Set <code>catalog</code> parameter
|
76 |
*
|
77 |
* @param className
|
78 |
*/
|
79 |
void setCatalog(String catalog); |
80 |
|
81 |
|
82 |
void setFields(String fields); |
83 |
|
84 |
void setFields(String[] fields); |
85 |
|
86 |
|
87 |
/**
|
88 |
* Set <code>JDBC Driver class name</code> parameter
|
89 |
*
|
90 |
* @param className
|
91 |
*/
|
92 |
void setJDBCDriverClassName(String className); |
93 |
|
94 |
|
95 |
void setPkFields(String fields); |
96 |
|
97 |
void setPkFields(String[] fields); |
98 |
|
99 |
void setPort(int port); |
100 |
|
101 |
|
102 |
void setSQL(String sql); |
103 |
|
104 |
/**
|
105 |
* Set <code>schema</code> parameter
|
106 |
*
|
107 |
* @param className
|
108 |
*/
|
109 |
void setSchema(String schema); |
110 |
|
111 |
void setTable(String table); |
112 |
|
113 |
/**
|
114 |
* Set <code>JDBC connection url</code> parameter
|
115 |
*
|
116 |
* @param url
|
117 |
*/
|
118 |
void setUrl(String url); |
119 |
|
120 |
/**
|
121 |
* Return table <code>name</code> or <code>schema.tableName</code> if
|
122 |
* <code>schema</code> parameter is set.
|
123 |
*
|
124 |
* @return
|
125 |
*/
|
126 |
String tableID();
|
127 |
|
128 |
|
129 |
} |