Revision 24505
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/DataExplorer.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 | 4 |
|
5 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
5 |
import org.gvsig.fmap.dal.exception.DataException; |
|
6 | 6 |
|
7 | 7 |
/** |
8 | 8 |
* DataExplorer is an abstraction for any type of data server. It allows connecting |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/DataManager.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 | 4 |
|
5 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
6 |
import org.gvsig.fmap.dal.exceptions.ProviderNotRegisteredException;
|
|
5 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
6 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
|
7 | 7 |
import org.gvsig.fmap.dal.resource.ResourceManager; |
8 | 8 |
import org.gvsig.tools.evaluator.Evaluator; |
9 | 9 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/resource/spi/ResourceManagerProviderServices.java | ||
---|---|---|
3 | 3 |
import java.util.List; |
4 | 4 |
|
5 | 5 |
import org.gvsig.fmap.dal.DataParameters; |
6 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
7 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
6 |
import org.gvsig.fmap.dal.exception.DataException; |
|
7 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
8 | 8 |
import org.gvsig.fmap.dal.resource.Resource; |
9 | 9 |
import org.gvsig.fmap.dal.resource.ResourceManager; |
10 | 10 |
import org.gvsig.fmap.dal.resource.ResourceParameters; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/resource/spi/AbstractResource.java | ||
---|---|---|
36 | 36 |
import java.util.Iterator; |
37 | 37 |
import java.util.List; |
38 | 38 |
|
39 |
import org.gvsig.fmap.dal.exceptions.CopyParametersException;
|
|
40 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
39 |
import org.gvsig.fmap.dal.exception.CopyParametersException; |
|
40 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
41 | 41 |
import org.gvsig.fmap.dal.resource.ResourceNotification; |
42 | 42 |
import org.gvsig.fmap.dal.resource.ResourceParameters; |
43 | 43 |
import org.gvsig.fmap.dal.resource.exception.AccessResourceException; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/resource/exception/ResourceException.java | ||
---|---|---|
3 | 3 |
import java.util.HashMap; |
4 | 4 |
import java.util.Map; |
5 | 5 |
|
6 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
6 |
import org.gvsig.fmap.dal.exception.DataException; |
|
7 | 7 |
import org.gvsig.fmap.dal.resource.Resource; |
8 | 8 |
|
9 | 9 |
public abstract class ResourceException extends DataException { |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/resource/impl/DefaultResourceManager.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
import org.gvsig.fmap.dal.DALLocator; |
12 | 12 |
import org.gvsig.fmap.dal.DataParameters; |
13 |
import org.gvsig.fmap.dal.exceptions.CopyParametersException;
|
|
14 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
15 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
13 |
import org.gvsig.fmap.dal.exception.CopyParametersException; |
|
14 |
import org.gvsig.fmap.dal.exception.DataException; |
|
15 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
16 | 16 |
import org.gvsig.fmap.dal.resource.Resource; |
17 | 17 |
import org.gvsig.fmap.dal.resource.ResourceParameters; |
18 | 18 |
import org.gvsig.fmap.dal.resource.exception.AccessResourceException; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/resource/ResourceManager.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.Iterator; |
4 | 4 |
|
5 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
5 |
import org.gvsig.fmap.dal.exception.DataException; |
|
6 | 6 |
import org.gvsig.tools.observer.WeakReferencingObservable; |
7 | 7 |
import org.gvsig.tools.observer.Observer; |
8 | 8 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/spi/DataExplorerProvider.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import org.gvsig.fmap.dal.DataExplorer; |
31 | 31 |
import org.gvsig.fmap.dal.DataExplorerParameters; |
32 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
32 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
33 | 33 |
|
34 | 34 |
public interface DataExplorerProvider extends DataExplorer { |
35 | 35 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/spi/AbstractDataParameters.java | ||
---|---|---|
6 | 6 |
|
7 | 7 |
import org.gvsig.fmap.dal.DataParameterDescriptor; |
8 | 8 |
import org.gvsig.fmap.dal.DataParameters; |
9 |
import org.gvsig.fmap.dal.exceptions.CopyParametersException;
|
|
9 |
import org.gvsig.fmap.dal.exception.CopyParametersException; |
|
10 | 10 |
import org.gvsig.tools.persistence.AbstractPersistenceManager; |
11 | 11 |
import org.gvsig.tools.persistence.PersistenceException; |
12 | 12 |
import org.gvsig.tools.persistence.PersistenceValueNotFoundException; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/spi/DataStoreProvider.java | ||
---|---|---|
3 | 3 |
import java.util.Iterator; |
4 | 4 |
|
5 | 5 |
import org.gvsig.fmap.dal.DataExplorer; |
6 |
import org.gvsig.fmap.dal.exceptions.CloseException;
|
|
7 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
8 |
import org.gvsig.fmap.dal.exceptions.OpenException;
|
|
9 |
import org.gvsig.fmap.dal.exceptions.ReadException;
|
|
6 |
import org.gvsig.fmap.dal.exception.CloseException; |
|
7 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
8 |
import org.gvsig.fmap.dal.exception.OpenException; |
|
9 |
import org.gvsig.fmap.dal.exception.ReadException; |
|
10 | 10 |
|
11 | 11 |
public interface DataStoreProvider { |
12 | 12 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/spi/DataManagerProviderServices.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.dal.spi; |
2 | 2 |
|
3 | 3 |
import org.gvsig.fmap.dal.DataManager; |
4 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
5 |
import org.gvsig.fmap.dal.exceptions.ProviderNotRegisteredException;
|
|
4 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
5 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
|
6 | 6 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
7 | 7 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
8 | 8 |
import org.gvsig.fmap.dal.feature.FeatureType; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/FeatureSetProvider.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.Iterator; |
4 | 4 |
|
5 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
5 |
import org.gvsig.fmap.dal.exception.DataException; |
|
6 | 6 |
|
7 | 7 |
public interface FeatureSetProvider { |
8 | 8 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/FeatureStoreProvider.java | ||
---|---|---|
4 | 4 |
import java.util.Iterator; |
5 | 5 |
|
6 | 6 |
import org.gvsig.fmap.dal.DataStoreParameters; |
7 |
import org.gvsig.fmap.dal.exceptions.CreateException;
|
|
8 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
9 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
7 |
import org.gvsig.fmap.dal.exception.CreateException; |
|
8 |
import org.gvsig.fmap.dal.exception.DataException; |
|
9 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
10 | 10 |
import org.gvsig.fmap.dal.feature.Feature; |
11 | 11 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
12 | 12 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/AbstractFeatureStoreProvider.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import org.gvsig.fmap.dal.DALLocator; |
6 | 6 |
import org.gvsig.fmap.dal.DataExplorer; |
7 |
import org.gvsig.fmap.dal.exceptions.CloseException;
|
|
8 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
9 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
10 |
import org.gvsig.fmap.dal.exceptions.OpenException;
|
|
11 |
import org.gvsig.fmap.dal.exceptions.ReadException;
|
|
7 |
import org.gvsig.fmap.dal.exception.CloseException; |
|
8 |
import org.gvsig.fmap.dal.exception.DataException; |
|
9 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
10 |
import org.gvsig.fmap.dal.exception.OpenException; |
|
11 |
import org.gvsig.fmap.dal.exception.ReadException; |
|
12 | 12 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
13 | 13 |
import org.gvsig.fmap.dal.feature.FeatureType; |
14 |
import org.gvsig.fmap.dal.feature.exceptions.PerformEditingException;
|
|
14 |
import org.gvsig.fmap.dal.feature.exception.PerformEditingException; |
|
15 | 15 |
import org.gvsig.fmap.dal.feature.impl.expansionadapter.ExpansionAdapter; |
16 | 16 |
import org.gvsig.fmap.dal.feature.impl.expansionadapter.MemoryExpansionAdapter; |
17 | 17 |
import org.gvsig.fmap.dal.resource.spi.ResourceManagerProviderServices; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/FeatureStoreProviderServices.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 | 4 |
|
5 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
5 |
import org.gvsig.fmap.dal.exception.DataException; |
|
6 | 6 |
import org.gvsig.fmap.dal.feature.Command; |
7 | 7 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
8 | 8 |
import org.gvsig.fmap.dal.feature.Feature; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/index/FeatureIndexProvider.java | ||
---|---|---|
30 | 30 |
|
31 | 31 |
import java.util.List; |
32 | 32 |
|
33 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
34 |
import org.gvsig.fmap.dal.feature.exceptions.FeatureIndexException;
|
|
33 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
34 |
import org.gvsig.fmap.dal.feature.exception.FeatureIndexException; |
|
35 | 35 |
import org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices; |
36 | 36 |
|
37 | 37 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/index/AbstractFeatureIndexProvider.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
package org.gvsig.fmap.dal.feature.spi.index; |
30 | 30 |
|
31 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
31 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
32 | 32 |
|
33 | 33 |
|
34 | 34 |
public abstract class AbstractFeatureIndexProvider implements FeatureIndexProvider { |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/index/FeatureIndexProviderServices.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
package org.gvsig.fmap.dal.feature.spi.index; |
30 | 30 |
|
31 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
31 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
32 | 32 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
33 | 33 |
import org.gvsig.fmap.dal.feature.FeatureIndex; |
34 | 34 |
import org.gvsig.fmap.dal.feature.FeatureType; |
35 |
import org.gvsig.fmap.dal.feature.exceptions.FeatureIndexException;
|
|
35 |
import org.gvsig.fmap.dal.feature.exception.FeatureIndexException; |
|
36 | 36 |
import org.gvsig.fmap.dal.feature.spi.FeatureStoreProviderServices; |
37 | 37 |
|
38 | 38 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/memory/AbstractMemoryStoreProvider.java | ||
---|---|---|
4 | 4 |
import java.util.Iterator; |
5 | 5 |
|
6 | 6 |
import org.gvsig.fmap.dal.DataStoreParameters; |
7 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
8 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
7 |
import org.gvsig.fmap.dal.exception.DataException; |
|
8 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
9 | 9 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
10 | 10 |
import org.gvsig.fmap.dal.feature.FeatureType; |
11 |
import org.gvsig.fmap.dal.feature.exceptions.PerformEditingException;
|
|
11 |
import org.gvsig.fmap.dal.feature.exception.PerformEditingException; |
|
12 | 12 |
import org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProvider; |
13 | 13 |
import org.gvsig.fmap.dal.feature.spi.DefaultFeatureData; |
14 | 14 |
import org.gvsig.fmap.dal.feature.spi.FeatureData; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/spi/memory/MemoryFeatureSet.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.Iterator; |
4 | 4 |
|
5 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
5 |
import org.gvsig.fmap.dal.exception.DataException; |
|
6 | 6 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
7 | 7 |
import org.gvsig.fmap.dal.feature.spi.FeatureSetProvider; |
8 | 8 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/ConcurrentDataModificationException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class ConcurrentDataModificationException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -8352205502388246169L; |
|
11 |
private final static String MESSAGE_FORMAT = "Concurrent modification in store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_ConcurrentDataModificationException"; |
|
13 |
|
|
14 |
public ConcurrentDataModificationException(String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/DataExportException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class DataExportException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 2776287871021464378L; |
|
11 |
|
|
12 |
private final static String MESSAGE_FORMAT = "Can't export to %(target)s."; |
|
13 |
private final static String MESSAGE_KEY = "_DataExportException"; |
|
14 |
|
|
15 |
public DataExportException(Throwable cause, String target) { |
|
16 |
super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID); |
|
17 |
this.setValue("target", target); |
|
18 |
} |
|
19 |
} |
|
0 | 20 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/StoreUpdateFeatureTypeException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class StoreUpdateFeatureTypeException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -3117799038163318881L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't update feature type in store '%(store)s."; |
|
12 |
private final static String MESSAGE_KEY = "_StoreUpdateFeatureTypeException"; |
|
13 |
|
|
14 |
public StoreUpdateFeatureTypeException(Throwable cause, String store) { |
|
15 |
super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID); |
|
16 |
this.setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/PerformEditingException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class PerformEditingException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -4303159486787919718L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't perform editing in '%(resource)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_PerformEditingException"; |
|
13 |
|
|
14 |
public PerformEditingException(String resource, Throwable cause) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("resource", resource); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/SelectionNotAllowedException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class SelectionNotAllowedException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 6572957305406890773L; |
|
11 |
private final static String MESSAGE_FORMAT = "Selection not allowed in store %(store)s."; |
|
12 |
private final static String MESSAGE_KEY = "_SelectionNotAllowedException"; |
|
13 |
|
|
14 |
public SelectionNotAllowedException(String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
this.setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/CreateFeatureException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class CreateFeatureException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -7335241420683266251L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't create feature in store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_CreateFeatureException"; |
|
13 |
|
|
14 |
public CreateFeatureException(Throwable cause, String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/StoreUndoException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class StoreUndoException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -944510163710231013L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't undo in store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_StoreUndoException"; |
|
13 |
|
|
14 |
public StoreUndoException(Throwable cause, String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/WriteNotAllowedException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class WriteNotAllowedException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 4935538241520381746L; |
|
11 |
private final static String MESSAGE_FORMAT = "Unsuported writing for the store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_WriteNotAllowedException"; |
|
13 |
|
|
14 |
public WriteNotAllowedException(String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/NeedEditingModeException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class NeedEditingModeException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 4295472399799040181L; |
|
11 |
|
|
12 |
private final static String MESSAGE_FORMAT = "Operation not allowed if not in editing mode for store '%(store)s'."; |
|
13 |
private final static String MESSAGE_KEY = "_NeedEditingModeException"; |
|
14 |
|
|
15 |
public NeedEditingModeException(String store) { |
|
16 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
17 |
setValue("store", store); |
|
18 |
} |
|
19 |
} |
|
0 | 20 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/AlreadyEditingException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class AlreadyEditingException extends DataException { |
|
6 |
|
|
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
*/ |
|
11 |
private static final long serialVersionUID = 6589349326410416899L; |
|
12 |
|
|
13 |
private final static String MESSAGE_FORMAT = "Store '%(store)s' is already in editing mode."; |
|
14 |
private final static String MESSAGE_KEY = "_AlreadyEditingException"; |
|
15 |
|
|
16 |
public AlreadyEditingException(String store) { |
|
17 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
18 |
setValue("store", store); |
|
19 |
} |
|
20 |
} |
|
0 | 21 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/IllegalFeatureException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class IllegalFeatureException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 1367845204038351116L; |
|
11 |
private final static String MESSAGE_FORMAT = "Feature not allowed for the store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_IllegalFeatureException"; |
|
13 |
|
|
14 |
public IllegalFeatureException(String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/NoNewFeatureInsertException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class NoNewFeatureInsertException extends DataException { |
|
6 |
/** |
|
7 |
* |
|
8 |
*/ |
|
9 |
private static final long serialVersionUID = 1597158676397711190L; |
|
10 |
private final static String MESSAGE_FORMAT = "Exception intializing '%(store)s'."; |
|
11 |
private final static String MESSAGE_KEY = "_InitializeException"; |
|
12 |
|
|
13 |
public NoNewFeatureInsertException(String store) { |
|
14 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
15 |
setValue("store", store); |
|
16 |
} |
|
17 |
|
|
18 |
|
|
19 |
} |
|
0 | 20 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/NullFeatureTypeException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class NullFeatureTypeException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -8969897372454817704L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't allowed a feature type to null in store %(store)s."; |
|
12 |
private final static String MESSAGE_KEY = "_NullFeatureTypeException"; |
|
13 |
|
|
14 |
public NullFeatureTypeException(String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
this.setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/FeatureTypeIntegrityException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
|
|
4 |
public class FeatureTypeIntegrityException extends DataListException { |
|
5 |
|
|
6 |
/** |
|
7 |
* |
|
8 |
*/ |
|
9 |
private static final long serialVersionUID = -1599605985631014641L; |
|
10 |
|
|
11 |
private final static String MESSAGE_FORMAT = "Feature type (%(typeId)s) incorrect."; |
|
12 |
private final static String MESSAGE_KEY = "_FeatureTypeIntegrityException"; |
|
13 |
|
|
14 |
public FeatureTypeIntegrityException(String typeId) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("typeId", typeId); |
|
17 |
} |
|
18 |
|
|
19 |
} |
|
0 | 20 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/StoreInsertFeatureException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class StoreInsertFeatureException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 1309051657301097896L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't insert feature in store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_StoreInsertFeatureException"; |
|
13 |
|
|
14 |
public StoreInsertFeatureException(Throwable cause, String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/StoreEditException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class StoreEditException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -5529148262961765052L; |
|
11 |
|
|
12 |
private final static String MESSAGE_FORMAT = "Can't enter in editing mode for store '%(store)s."; |
|
13 |
private final static String MESSAGE_KEY = "_StoreEditException"; |
|
14 |
|
|
15 |
public StoreEditException(Throwable cause, String store) { |
|
16 |
super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID); |
|
17 |
this.setValue("store", store); |
|
18 |
} |
|
19 |
} |
|
0 | 20 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/DataListException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import java.util.HashMap; |
|
4 |
import java.util.Map; |
|
5 |
|
|
6 |
import org.gvsig.tools.exception.ListBaseException; |
|
7 |
|
|
8 |
public abstract class DataListException extends ListBaseException { |
|
9 |
|
|
10 |
|
|
11 |
/** |
|
12 |
* |
|
13 |
*/ |
|
14 |
private static final long serialVersionUID = -131815899234291797L; |
|
15 |
|
|
16 |
protected Map values = new HashMap(); |
|
17 |
|
|
18 |
public DataListException(String messageFormat, Throwable cause, |
|
19 |
String messageKey, long code) { |
|
20 |
// FIXME: super(messageFormat, cause, messageKey, code); |
|
21 |
} |
|
22 |
|
|
23 |
public DataListException(String messageFormat, String messageKey, long code) { |
|
24 |
// FIXME: super(messageFormat, messageKey, code); |
|
25 |
} |
|
26 |
|
|
27 |
protected void setValue(String name, String value) { |
|
28 |
this.values.put(name, value); |
|
29 |
} |
|
30 |
|
|
31 |
protected Map values() { |
|
32 |
return this.values; |
|
33 |
} |
|
34 |
} |
|
0 | 35 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/StoreRedoException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class StoreRedoException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -3619737749583530176L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't redo in store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_StoreRedoException"; |
|
13 |
|
|
14 |
public StoreRedoException(Throwable cause, String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/StoreCancelEditingException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class StoreCancelEditingException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -4303159486787919718L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't cancel editing in store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_StoreCancelEditingException"; |
|
13 |
|
|
14 |
public StoreCancelEditingException(Throwable cause, String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/StoreUpdateFeatureException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class StoreUpdateFeatureException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -8532519106338060835L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't update feature in store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_StoreUpdateFeatureException"; |
|
13 |
|
|
14 |
public StoreUpdateFeatureException(Throwable cause, String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/AttributeFeatureTypeSizeException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class AttributeFeatureTypeSizeException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 2997663523084109588L; |
|
11 |
|
|
12 |
private final static String MESSAGE_FORMAT = "invalid size '%(size)s'."; |
|
13 |
private final static String MESSAGE_KEY = "_AttributeFeatureTypeSizeException"; |
|
14 |
|
|
15 |
public AttributeFeatureTypeSizeException(int size) { |
|
16 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
17 |
setValue("size", Integer.toString(size)); |
|
18 |
} |
|
19 |
} |
|
0 | 20 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/UnknowDataTypeException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class UnknowDataTypeException extends DataException { |
|
6 |
|
|
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
*/ |
|
11 |
private static final long serialVersionUID = -7481521283837021787L; |
|
12 |
private final static String MESSAGE_FORMAT = "Unknow data type '%(typeValue)s' of attribute '%(attrname)s' from '%(storeName)s'."; |
|
13 |
private final static String MESSAGE_KEY = "_UnknowDataTypeException"; |
|
14 |
|
|
15 |
public UnknowDataTypeException(String attrname, |
|
16 |
String typeValue, |
|
17 |
String storeName) { |
|
18 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
19 |
setValue("attrname", attrname); |
|
20 |
setValue("typeValue", typeValue); |
|
21 |
setValue("storeName", storeName); |
|
22 |
|
|
23 |
} |
|
24 |
} |
|
0 | 25 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/AttributeFeatureTypeIntegrityException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
public class AttributeFeatureTypeIntegrityException extends DataListException { |
|
4 |
|
|
5 |
/** |
|
6 |
* |
|
7 |
*/ |
|
8 |
private static final long serialVersionUID = -1599605985631014641L; |
|
9 |
|
|
10 |
private final static String MESSAGE_FORMAT = "Integrity error in attribute '%(attrname)s'."; |
|
11 |
private final static String MESSAGE_KEY = "_AttributeFeatureTypeIntegrityException"; |
|
12 |
|
|
13 |
public AttributeFeatureTypeIntegrityException(String attrname) { |
|
14 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
15 |
setValue("attrname", attrname); |
|
16 |
} |
|
17 |
} |
|
0 | 18 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/FeatureIndexException.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 {{Company}} {{Task}} |
|
26 |
*/ |
|
27 |
|
|
28 |
package org.gvsig.fmap.dal.feature.exception; |
|
29 |
|
|
30 |
import org.gvsig.fmap.dal.exception.DataException; |
|
31 |
|
|
32 |
|
|
33 |
/** |
|
34 |
* @author jiyarza |
|
35 |
*/ |
|
36 |
public class FeatureIndexException extends DataException { |
|
37 |
|
|
38 |
private static final long serialVersionUID = 932690269454242645L; |
|
39 |
|
|
40 |
private static final String MESSAGE_KEY = "index_exception"; |
|
41 |
private static final String FORMAT_STRING = |
|
42 |
"Index Exception."; |
|
43 |
|
|
44 |
/** |
|
45 |
* Main constructor that provides a cause Exception |
|
46 |
* @param e |
|
47 |
*/ |
|
48 |
public FeatureIndexException(Exception e) { |
|
49 |
super(FORMAT_STRING, e, MESSAGE_KEY, serialVersionUID); |
|
50 |
} |
|
51 |
} |
|
52 |
|
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/FinishEditingException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class FinishEditingException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 5568229519842721381L; |
|
11 |
|
|
12 |
private final static String MESSAGE_FORMAT = "Can't finish edition."; |
|
13 |
private final static String MESSAGE_KEY = "_FinishEditingException"; |
|
14 |
|
|
15 |
public FinishEditingException(Throwable cause) { |
|
16 |
super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/StoreDeleteEditableFeatureException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class StoreDeleteEditableFeatureException extends DataException { |
|
6 |
|
|
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
*/ |
|
11 |
private static final long serialVersionUID = -996334019316255990L; |
|
12 |
|
|
13 |
private final static String MESSAGE_FORMAT = "Can't delete an editable feature in store %(store)s."; |
|
14 |
private final static String MESSAGE_KEY = "_DeleteEditableFeatureException"; |
|
15 |
|
|
16 |
public StoreDeleteEditableFeatureException(String store) { |
|
17 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
18 |
this.setValue("store", store); |
|
19 |
} |
|
20 |
} |
|
0 | 21 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/SelectionStateException.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Gobernment (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 {DiSiD Technologies} {{Task}} |
|
26 |
*/ |
|
27 |
package org.gvsig.fmap.dal.feature.exception; |
|
28 |
|
|
29 |
import org.gvsig.fmap.dal.exception.DataException; |
|
30 |
|
|
31 |
/** |
|
32 |
* @author <a href="mailto:cordin@disid.com">C?sar Ordi?ana</a> |
|
33 |
*/ |
|
34 |
public class SelectionStateException extends DataException { |
|
35 |
|
|
36 |
private final static String MESSAGE_FORMAT = "Error getting or setting the selection state"; |
|
37 |
private final static String MESSAGE_KEY = "_SelectionStateException"; |
|
38 |
|
|
39 |
private static final long serialVersionUID = -1183610070098605104L; |
|
40 |
|
|
41 |
/** |
|
42 |
* Creates a new SelectionStateException. |
|
43 |
*/ |
|
44 |
public SelectionStateException() { |
|
45 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
46 |
} |
|
47 |
|
|
48 |
/** |
|
49 |
* Creates a new SelectionStateException with a cause. |
|
50 |
*/ |
|
51 |
public SelectionStateException(Throwable cause) { |
|
52 |
super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID); |
|
53 |
} |
|
54 |
|
|
55 |
} |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/IllegalFeatureTypeException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class IllegalFeatureTypeException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = -3151888912258726109L; |
|
11 |
private final static String MESSAGE_FORMAT = "Feature type not allowed for the store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_IllegalFeatureTypeException"; |
|
13 |
|
|
14 |
public IllegalFeatureTypeException(String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/ValidateFeaturesException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class ValidateFeaturesException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 6175223093153209836L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't validate features of store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_ValidateFeaturesException"; |
|
13 |
|
|
14 |
public ValidateFeaturesException(Throwable cause, String store) { |
|
15 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/AttributeFeatureTypeNotSuportedException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class AttributeFeatureTypeNotSuportedException extends DataException { |
|
6 |
|
|
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
*/ |
|
11 |
private static final long serialVersionUID = 7317879648245754186L; |
|
12 |
private final static String MESSAGE_FORMAT = "Attribute type %(typeValue)s ('%(typeName)s') of attribute '%(attrname)s' no supported for '%(storeName)s'."; |
|
13 |
private final static String MESSAGE_KEY = "_AttributeFeatureTypeNotSuportedException"; |
|
14 |
|
|
15 |
public AttributeFeatureTypeNotSuportedException(String attrname, |
|
16 |
int typeValue, |
|
17 |
String typeName, String storeName) { |
|
18 |
super(MESSAGE_FORMAT, MESSAGE_KEY, serialVersionUID); |
|
19 |
setValue("attrname", attrname); |
|
20 |
setValue("typeValue", "" + typeValue); |
|
21 |
setValue("typeName", typeName); |
|
22 |
setValue("storeName", storeName); |
|
23 |
|
|
24 |
} |
|
25 |
} |
|
0 | 26 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/StoreDeleteFeatureException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class StoreDeleteFeatureException extends DataException { |
|
6 |
|
|
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
*/ |
|
11 |
private static final long serialVersionUID = 5730673193453142604L; |
|
12 |
private final static String MESSAGE_FORMAT = "Can't delete feature in store %(store)s."; |
|
13 |
private final static String MESSAGE_KEY = "_StoreDeleteFeatureException"; |
|
14 |
|
|
15 |
public StoreDeleteFeatureException(Throwable cause, String store) { |
|
16 |
super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID); |
|
17 |
this.setValue("store", store); |
|
18 |
} |
|
19 |
} |
|
0 | 20 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/exception/GetFeatureTypeException.java | ||
---|---|---|
1 |
package org.gvsig.fmap.dal.feature.exception; |
|
2 |
|
|
3 |
import org.gvsig.fmap.dal.exception.DataException; |
|
4 |
|
|
5 |
public class GetFeatureTypeException extends DataException { |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
*/ |
|
10 |
private static final long serialVersionUID = 6691256137001562925L; |
|
11 |
private final static String MESSAGE_FORMAT = "Can't get feature type of store '%(store)s'."; |
|
12 |
private final static String MESSAGE_KEY = "_GetFeatureTypeException"; |
|
13 |
|
|
14 |
public GetFeatureTypeException(Throwable cause, String store) { |
|
15 |
super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID); |
|
16 |
setValue("store", store); |
|
17 |
} |
|
18 |
} |
|
0 | 19 |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/operation/LegendLabelingManager.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.Map; |
4 | 4 |
|
5 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
5 |
import org.gvsig.fmap.dal.exception.DataException; |
|
6 | 6 |
import org.gvsig.fmap.dal.feature.Feature; |
7 | 7 |
|
8 | 8 |
public interface LegendLabelingManager { |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/FeatureReferenceSelection.java | ||
---|---|---|
29 | 29 |
import java.util.Iterator; |
30 | 30 |
|
31 | 31 |
import org.gvsig.fmap.dal.DataSelection; |
32 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
32 |
import org.gvsig.fmap.dal.exception.DataException; |
|
33 | 33 |
import org.gvsig.tools.observer.Observer; |
34 | 34 |
import org.gvsig.tools.observer.WeakReferencingObservable; |
35 | 35 |
import org.gvsig.tools.persistence.Persistent; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultEditableFeatureAttributeDescriptor.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.dal.feature.impl; |
2 | 2 |
|
3 | 3 |
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor; |
4 |
import org.gvsig.fmap.dal.feature.exceptions.AttributeFeatureTypeIntegrityException;
|
|
5 |
import org.gvsig.fmap.dal.feature.exceptions.AttributeFeatureTypeSizeException;
|
|
4 |
import org.gvsig.fmap.dal.feature.exception.AttributeFeatureTypeIntegrityException; |
|
5 |
import org.gvsig.fmap.dal.feature.exception.AttributeFeatureTypeSizeException; |
|
6 | 6 |
import org.gvsig.tools.evaluator.Evaluator; |
7 | 7 |
|
8 | 8 |
public class DefaultEditableFeatureAttributeDescriptor extends |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureStore.java | ||
---|---|---|
12 | 12 |
import org.gvsig.fmap.dal.DataSet; |
13 | 13 |
import org.gvsig.fmap.dal.DataStoreNotification; |
14 | 14 |
import org.gvsig.fmap.dal.DataStoreParameters; |
15 |
import org.gvsig.fmap.dal.exceptions.CloseException;
|
|
16 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
17 |
import org.gvsig.fmap.dal.exceptions.InitializeException;
|
|
18 |
import org.gvsig.fmap.dal.exceptions.OpenException;
|
|
19 |
import org.gvsig.fmap.dal.exceptions.ProviderNotRegisteredException;
|
|
20 |
import org.gvsig.fmap.dal.exceptions.ReadException;
|
|
15 |
import org.gvsig.fmap.dal.exception.CloseException; |
|
16 |
import org.gvsig.fmap.dal.exception.DataException; |
|
17 |
import org.gvsig.fmap.dal.exception.InitializeException; |
|
18 |
import org.gvsig.fmap.dal.exception.OpenException; |
|
19 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
|
20 |
import org.gvsig.fmap.dal.exception.ReadException; |
|
21 | 21 |
import org.gvsig.fmap.dal.feature.Command; |
22 | 22 |
import org.gvsig.fmap.dal.feature.CommandsRecord; |
23 | 23 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
... | ... | |
34 | 34 |
import org.gvsig.fmap.dal.feature.FeatureStoreNotification; |
35 | 35 |
import org.gvsig.fmap.dal.feature.FeatureStoreParameters; |
36 | 36 |
import org.gvsig.fmap.dal.feature.FeatureType; |
37 |
import org.gvsig.fmap.dal.feature.exceptions.AlreadyEditingException;
|
|
38 |
import org.gvsig.fmap.dal.feature.exceptions.ConcurrentDataModificationException;
|
|
39 |
import org.gvsig.fmap.dal.feature.exceptions.CreateFeatureException;
|
|
40 |
import org.gvsig.fmap.dal.feature.exceptions.DataExportException;
|
|
41 |
import org.gvsig.fmap.dal.feature.exceptions.FeatureIndexException;
|
|
42 |
import org.gvsig.fmap.dal.feature.exceptions.FinishEditingException;
|
|
43 |
import org.gvsig.fmap.dal.feature.exceptions.GetFeatureTypeException;
|
|
44 |
import org.gvsig.fmap.dal.feature.exceptions.IllegalFeatureException;
|
|
45 |
import org.gvsig.fmap.dal.feature.exceptions.IllegalFeatureTypeException;
|
|
46 |
import org.gvsig.fmap.dal.feature.exceptions.NeedEditingModeException;
|
|
47 |
import org.gvsig.fmap.dal.feature.exceptions.NoNewFeatureInsertException;
|
|
48 |
import org.gvsig.fmap.dal.feature.exceptions.NullFeatureTypeException;
|
|
49 |
import org.gvsig.fmap.dal.feature.exceptions.SelectionNotAllowedException;
|
|
50 |
import org.gvsig.fmap.dal.feature.exceptions.StoreCancelEditingException;
|
|
51 |
import org.gvsig.fmap.dal.feature.exceptions.StoreDeleteEditableFeatureException;
|
|
52 |
import org.gvsig.fmap.dal.feature.exceptions.StoreDeleteFeatureException;
|
|
53 |
import org.gvsig.fmap.dal.feature.exceptions.StoreEditException;
|
|
54 |
import org.gvsig.fmap.dal.feature.exceptions.StoreInsertFeatureException;
|
|
55 |
import org.gvsig.fmap.dal.feature.exceptions.StoreRedoException;
|
|
56 |
import org.gvsig.fmap.dal.feature.exceptions.StoreUndoException;
|
|
57 |
import org.gvsig.fmap.dal.feature.exceptions.StoreUpdateFeatureException;
|
|
58 |
import org.gvsig.fmap.dal.feature.exceptions.StoreUpdateFeatureTypeException;
|
|
59 |
import org.gvsig.fmap.dal.feature.exceptions.ValidateFeaturesException;
|
|
60 |
import org.gvsig.fmap.dal.feature.exceptions.WriteNotAllowedException;
|
|
37 |
import org.gvsig.fmap.dal.feature.exception.AlreadyEditingException; |
|
38 |
import org.gvsig.fmap.dal.feature.exception.ConcurrentDataModificationException; |
|
39 |
import org.gvsig.fmap.dal.feature.exception.CreateFeatureException; |
|
40 |
import org.gvsig.fmap.dal.feature.exception.DataExportException; |
|
41 |
import org.gvsig.fmap.dal.feature.exception.FeatureIndexException; |
|
42 |
import org.gvsig.fmap.dal.feature.exception.FinishEditingException; |
|
43 |
import org.gvsig.fmap.dal.feature.exception.GetFeatureTypeException; |
|
44 |
import org.gvsig.fmap.dal.feature.exception.IllegalFeatureException; |
|
45 |
import org.gvsig.fmap.dal.feature.exception.IllegalFeatureTypeException; |
|
46 |
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException; |
|
47 |
import org.gvsig.fmap.dal.feature.exception.NoNewFeatureInsertException; |
|
48 |
import org.gvsig.fmap.dal.feature.exception.NullFeatureTypeException; |
|
49 |
import org.gvsig.fmap.dal.feature.exception.SelectionNotAllowedException; |
|
50 |
import org.gvsig.fmap.dal.feature.exception.StoreCancelEditingException; |
|
51 |
import org.gvsig.fmap.dal.feature.exception.StoreDeleteEditableFeatureException; |
|
52 |
import org.gvsig.fmap.dal.feature.exception.StoreDeleteFeatureException; |
|
53 |
import org.gvsig.fmap.dal.feature.exception.StoreEditException; |
|
54 |
import org.gvsig.fmap.dal.feature.exception.StoreInsertFeatureException; |
|
55 |
import org.gvsig.fmap.dal.feature.exception.StoreRedoException; |
|
56 |
import org.gvsig.fmap.dal.feature.exception.StoreUndoException; |
|
57 |
import org.gvsig.fmap.dal.feature.exception.StoreUpdateFeatureException; |
|
58 |
import org.gvsig.fmap.dal.feature.exception.StoreUpdateFeatureTypeException; |
|
59 |
import org.gvsig.fmap.dal.feature.exception.ValidateFeaturesException; |
|
60 |
import org.gvsig.fmap.dal.feature.exception.WriteNotAllowedException; |
|
61 | 61 |
import org.gvsig.fmap.dal.feature.impl.commands.AbstractCommandsRecord; |
62 | 62 |
import org.gvsig.fmap.dal.feature.impl.commands.implementation.FeatureCommandsRecord; |
63 | 63 |
import org.gvsig.fmap.dal.feature.impl.expansionadapter.MemoryExpansionAdapter; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureReference.java | ||
---|---|---|
4 | 4 |
import java.util.ArrayList; |
5 | 5 |
import java.util.Iterator; |
6 | 6 |
|
7 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
7 |
import org.gvsig.fmap.dal.exception.DataException; |
|
8 | 8 |
import org.gvsig.fmap.dal.feature.Feature; |
9 | 9 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
10 | 10 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureIndexes.java | ||
---|---|---|
33 | 33 |
import java.util.List; |
34 | 34 |
import java.util.Map; |
35 | 35 |
|
36 |
import org.gvsig.fmap.dal.exceptions.DataException;
|
|
36 |
import org.gvsig.fmap.dal.exception.DataException; |
|
37 | 37 |
import org.gvsig.fmap.dal.feature.FeatureIndex; |
38 | 38 |
import org.gvsig.fmap.dal.feature.FeatureIndexes; |
39 |
import org.gvsig.fmap.dal.feature.exceptions.FeatureIndexException;
|
|
39 |
import org.gvsig.fmap.dal.feature.exception.FeatureIndexException; |
|
40 | 40 |
import org.gvsig.fmap.dal.feature.spi.FeatureSetProvider; |
41 | 41 |
import org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices; |
42 | 42 |
import org.gvsig.tools.evaluator.Evaluator; |
Also available in: Unified diff