Revision 22251

View differences:

trunk/libraries/libMetadata/src/org/gvsig/metadata/extended/persistence/H2Persistence.java
37 37

  
38 38
public class H2Persistence implements MDPersistence{
39 39

  
40
	public Boolean recoverMD(ExtendedMetadata md) {
41
		// TODO Auto-generated method stub
42
		return null;
40
	public boolean recoverMD(ExtendedMetadata md) {
41
		return false;
43 42
	}
44 43

  
45
	public Boolean storeMD(ExtendedMetadata md) {
46
		// TODO Auto-generated method stub
47
		return null;
44
	public boolean storeMD(ExtendedMetadata md) {
45
		return false;
48 46
	}
49 47
	
50 48
}
trunk/libraries/libMetadata/src/org/gvsig/metadata/extended/persistence/MDPersistence.java
35 35

  
36 36

  
37 37
public interface MDPersistence {
38
	public Boolean storeMD(ExtendedMetadata md);
39
	public Boolean recoverMD(ExtendedMetadata md);
38
	public boolean storeMD(ExtendedMetadata md);
39
	public boolean recoverMD(ExtendedMetadata md);
40 40
}
trunk/libraries/libMetadata/src/org/gvsig/metadata/extended/registry/MDRegistryImpl.java
36 36
import org.gvsig.metadata.extended.registry.objects.MDType;
37 37

  
38 38

  
39
public class MDRegistryImpl implements MDRegistry{
39
public class MDRegistryImpl implements MDRegistry {
40 40

  
41 41
	public MDElementDefinition getMDDefinition(String name) {
42
		// TODO Auto-generated method stub
43 42
		return null;
44 43
	}
45 44

  
46 45
	public MDElementDefinition getMDElementDefinition(String name) {
47
		// TODO Auto-generated method stub
48 46
		return null;
49 47
	}
50 48

  
51 49
	public MDType getMDType(String name) {
52
		// TODO Auto-generated method stub
53 50
		return null;
54 51
	}
55 52

  
56
	public Boolean setMDDefinition(MDElementDefinition padre, String name, String description) {
57
		// TODO Auto-generated method stub
58
		return null;
53
	public boolean setMDDefinition(MDElementDefinition padre, String name, String description) {
54
		return false;
59 55
	}
60 56

  
61
	public Boolean setMDElementDefinition(MDElementDefinition padre, String description, MDType type) {
62
		// TODO Auto-generated method stub
63
		return null;
57
	public boolean setMDElementDefinition(MDElementDefinition padre, String description, MDType type) {
58
		return false;
64 59
	}
65 60

  
66
	public Boolean setMDType() {
67
		// TODO Auto-generated method stub
68
		return null;
61
	public boolean setMDType() {
62
		return false;
69 63
	}
70 64

  
71 65
	
trunk/libraries/libMetadata/src/org/gvsig/metadata/extended/registry/MDRegistry.java
42 42
	public MDElementDefinition getMDDefinition(String name);
43 43
	public MDElementDefinition getMDElementDefinition(String name);
44 44
	public MDType getMDType(String name);
45
	public Boolean setMDDefinition(MDElementDefinition padre, String name, String description);
46
	public Boolean setMDElementDefinition(MDElementDefinition padre, String description, MDType type /* ...*/);
47
	public Boolean setMDType(/* ...*/);
45
	public boolean setMDDefinition(MDElementDefinition padre, String name, String description);
46
	public boolean setMDElementDefinition(MDElementDefinition padre, String description, MDType type /* ...*/);
47
	public boolean setMDType(/* ...*/);
48 48
	
49 49
}
trunk/libraries/libMetadata/src/org/gvsig/metadata/extended/registry/objects/MDType.java
32 32

  
33 33
package org.gvsig.metadata.extended.registry.objects;
34 34

  
35
import java.sql.Types;
36

  
35 37
public class MDType {
38
	private String id;
39
	private String name;
40
	private Types type;
36 41
	
42
	public MDType() {}
43
	
44
	public MDType(String name, Types type) {
45
		this.name = name;
46
		this.type = type;
47
	}
48

  
49
	public String getName() {
50
		return name;
51
	}
52

  
53
	public void setName(String name) {
54
		this.name = name;
55
	}
56

  
57
	public Types getType() {
58
		return type;
59
	}
60

  
61
	public void setType(Types type) {
62
		this.type = type;
63
	}
64
	
65
	
37 66
}

Also available in: Unified diff