svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.h2spatial.app / org.gvsig.h2spatial.app.h2gis132 / src / main / resources / org / gvsig / fmap / dal / store / h2 / H2SpatialParameters.xml @ 45469
History | View | Annotate | Download (7.18 KB)
1 | 45469 | jjdelcerro | <?xml version="1.0"?>
|
---|---|---|---|
2 | <definitions>
|
||
3 | <version>1.0.0</version> |
||
4 | <classes>
|
||
5 | <class name="H2SpatialResourceParameters"> |
||
6 | <extends>
|
||
7 | <class>JDBC2ResourceParameters</class> |
||
8 | </extends>
|
||
9 | <description>_H2_Spatial_loading_parameters</description> |
||
10 | <fields>
|
||
11 | <field name="JDBCDriverClass" type="string" mandatory="true" |
||
12 | defaultValue="org.h2.Driver" group="Advanced"> |
||
13 | <description>JDBC Driver class</description> |
||
14 | </field>
|
||
15 | <field name="host" type="string" mandatory="false" defaultValue="" group="Connection"> |
||
16 | <description></description> |
||
17 | </field>
|
||
18 | <field name="port" type="integer" mandatory="false" defaultValue="9123" group="Connection"> |
||
19 | <description></description> |
||
20 | </field>
|
||
21 | <field name="MaxSecondsIdle" type="integer" mandatory="false" defaultValue="10" group="Connection"> |
||
22 | <description></description> |
||
23 | </field>
|
||
24 | <field name="ServerPort" type="integer" mandatory="false" defaultValue="-1" group="Connection"> |
||
25 | <description></description> |
||
26 | </field>
|
||
27 | <field name="ServerAllowOthers" type="boolean" mandatory="false" defaultValue="false" group="Connection"> |
||
28 | <description></description> |
||
29 | </field>
|
||
30 | <field name="database_file" label="Database file" type="file" mandatory="true" defaultValue="" group="Basic"> |
||
31 | <description></description> |
||
32 | </field>
|
||
33 | <field name="UseSSL" type="boolean" mandatory="false" |
||
34 | defaultValue="false" group="Basic"> |
||
35 | <description>Use SSL connetion</description> |
||
36 | </field>
|
||
37 | <field name="dbuser" type="string" mandatory="false" group="Basic" defaultValue="SA" > |
||
38 | <description></description> |
||
39 | </field>
|
||
40 | <!--
|
||
41 | <field name="LOCK_TIMEOUT" type="integer" mandatory="false" group="Advanced" defaultValue="1000" >
|
||
42 | <description>Sets the lock timeout (in milliseconds) for the current session. The default value for this setting is 1000 (one second).</description>
|
||
43 | </field>
|
||
44 | <field name="MULTI_THREADED" type="integer" mandatory="false" group="Advanced" defaultValue="1000" >
|
||
45 | <description>Enabled (1) or disabled (0) multi-threading inside the database engine. MULTI_THREADED is enabled by default with default MVStore storage engine. MULTI_THREADED is disabled by default when using PageStore storage engine, enabling this with PageStore is experimental only.
|
||
46 | This is a global setting, which means it is not possible to open multiple databases with different modes at the same time in the same virtual machine. This setting is not persistent, however the value is kept until the virtual machine exits or it is changed.
|
||
47 | Admin rights are required to execute this command, as it affects all connections</description>
|
||
48 | </field>
|
||
49 | <field name="CHACHE_SIZE" type="integer" mandatory="false" group="Advanced" defaultValue="-1" >
|
||
50 | <description>Sets the size of the cache in KB (each KB being 1024 bytes) for the current database. The default is 65536 per available GB of RAM, i.e. 64 MB per GB. The value is rounded to the next higher power of two. Depending on the virtual machine, the actual memory required may be higher.
|
||
51 | This setting is persistent and affects all connections as there is only one cache per database. Using a very small value (specially 0) will reduce performance a lot. This setting only affects the database engine (the server in a client/server environment; in embedded mode, the database engine is in the same process as the application). It has no effect for in-memory databases.
|
||
52 | Admin rights are required to execute this command, as it affects all connections. This command commits an open transaction in this connection. This setting is persistent.?
|
||
53 | If -1 use the default value.</description>
|
||
54 | </field>
|
||
55 | <field name="LOG" type="integer" mandatory="false" group="Advanced" defaultValue="2" >
|
||
56 | <availableValues>
|
||
57 | <value label="0 - Transaction log is disabled completely">0</value>
|
||
58 | <value label="1 - Transaction log is enabled, but FileDescriptor.sync is disabled">1</value>
|
||
59 | <value label="2 - Transaction log is enabled, and FileDescriptor.sync is called for each checkpoint">2</value>
|
||
60 | </availableValues>
|
||
61 | <description>Sets the transaction log mode. The values 0, 1, and 2 are supported, the default is 2. This setting affects all connections.
|
||
62 | LOG 0 means the transaction log is disabled completely. It is the fastest mode, but also the most dangerous: if the process is killed while the database is open in this mode, the data might be lost. It must only be used if this is not a problem, for example when initially loading a database, or when running tests.
|
||
63 | LOG 1 means the transaction log is enabled, but FileDescriptor.sync is disabled. This setting is about half as fast as with LOG 0. This setting is useful if no protection against power failure is required, but the data must be protected against killing the process.
|
||
64 | LOG 2 (the default) means the transaction log is enabled, and FileDescriptor.sync is called for each checkpoint. This setting is about half as fast as LOG 1. Depending on the file system, this will also protect against power failure in the majority if cases.
|
||
65 | Admin rights are required to execute this command, as it affects all connections</description>
|
||
66 | <field name="LOCK_MODE" type="integer" mandatory="false" group="Advanced" defaultValue="3" >
|
||
67 | <availableValues>
|
||
68 | <value label="0 - READ_UNCOMMITTED, no locking">0</value>
|
||
69 | <value label="1 - SERIALIZABLE, table level locking">1</value>
|
||
70 | <value label="2 - Table level locking with garbage collection">2</value>
|
||
71 | <value label="3 - READ_COMMITTED, table level locking+read locks released immediately">3</value>
|
||
72 | </availableValues>
|
||
73 | <description>Sets the lock mode. The values 0, 1, 2, and 3 are supported. The default is 3 (READ_COMMITTED). This setting affects all connections.
|
||
74 | The value 0 means no locking (should only be used for testing; also known as READ_UNCOMMITTED). Please note that using SET LOCK_MODE 0 while at the same time using multiple connections may result in inconsistent transactions.
|
||
75 | The value 1 means table level locking (also known as SERIALIZABLE).
|
||
76 | The value 2 means table level locking with garbage collection (if the application does not close all connections).
|
||
77 | The value 3 means table level locking, but read locks are released immediately (default; also known as READ_COMMITTED).
|
||
78 | </description>
|
||
79 | </field>
|
||
80 | -->
|
||
81 | </fields>
|
||
82 | </class>
|
||
83 | |||
84 | <class name="H2SpatialStoreParameters"> |
||
85 | <extends>
|
||
86 | <class>JDBC2StoreParameters</class> |
||
87 | <class>H2SpatialResourceParameters</class> |
||
88 | </extends>
|
||
89 | <fields/> |
||
90 | </class>
|
||
91 | |||
92 | <class name="H2SpatialNewStoreParameters"> |
||
93 | <extends>
|
||
94 | <class>JDBC2NewStoreParameters</class> |
||
95 | <class>H2SpatialResourceParameters</class> |
||
96 | </extends>
|
||
97 | <fields/> |
||
98 | </class>
|
||
99 | |||
100 | |||
101 | <class name="H2SpatialServerExplorerParameters"> |
||
102 | <extends>
|
||
103 | <class>H2SpatialResourceParameters</class> |
||
104 | <class>JDBC2ServerExplorerParameters</class> |
||
105 | </extends>
|
||
106 | <fields/> |
||
107 | </class>
|
||
108 | |||
109 | |||
110 | </classes>
|
||
111 | </definitions> |