Project

General

Profile

Revision 2540fa1d

ID2540fa1dca9b1ec81775eaa9a8a36c1c6fe9aeec
Parent a120b5f6
Child 6b35b394

Added by Andreas Müller about 1 year ago

cleanup

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/IPartitionedIO.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
23 23
 * @since 16.02.2010
24 24
 */
25 25
public interface IPartitionedIO<STATE extends IPartitionedState> {
26
	
26

  
27 27
	public final String ID_LIST_TOKEN = "@IdList";
28
	
28

  
29 29
	//TODO make state more generic
30 30
	public boolean doPartition(ResultSetPartitioner partitioner, STATE state);
31
	
31

  
32 32
	public TransactionStatus startTransaction();
33
	
33

  
34 34
	public void commitTransaction(TransactionStatus txStatus);
35
	
35

  
36 36
	public String getPluralString();
37 37

  
38 38
	/**
......
40 40
	 * @return
41 41
	 */
42 42
	public Map<Object, Map<String, ? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs, STATE state);
43
//	public Map<Object, Map<String, ? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs);
44 43

  
45 44
	public IReferenceService getReferenceService();
46 45

  
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/operation/CacheUpdater.java
65 65

  
66 66
	private boolean handleMultiTableClasses(Class<? extends IdentifiableEntity> clazz) {
67 67
		if (clazz.isAssignableFrom(IdentifiableEntity.class)){
68
			List list = Arrays.asList(new Class[]{
68
            @SuppressWarnings("rawtypes")
69
            List list = Arrays.asList(new Class[]{
69 70
					DescriptionBase.class, IdentifiableMediaEntity.class,
70 71
					Media.class, Sequence.class,
71 72
					TaxonBase.class, TaxonName.class,
......
73 74
					});
74 75
			handleClassList(list);
75 76
		}else if (clazz.isAssignableFrom(IdentifiableMediaEntity.class)){
76
			List list = Arrays.asList(new Class[]{AgentBase.class, Collection.class, Reference.class, SpecimenOrObservationBase.class});
77
			@SuppressWarnings("rawtypes")
78
            List list = Arrays.asList(new Class[]{AgentBase.class, Collection.class, Reference.class, SpecimenOrObservationBase.class});
77 79
			handleClassList(list);
78 80
		}else if (clazz.isAssignableFrom(TermBase.class)){
79
			List list = Arrays.asList(new Class[]{DefinedTermBase.class, FeatureTree.class, TermVocabulary.class });
81
			@SuppressWarnings("rawtypes")
82
            List list = Arrays.asList(new Class[]{DefinedTermBase.class, FeatureTree.class, TermVocabulary.class });
80 83
			handleClassList(list);
81 84
		}else{
82 85
			return false;
......
134 137
				String warning = "Unknown identifable entity subclass + " + clazz == null ? "null" : clazz.getName();
135 138
				logger.error(warning);
136 139
				return false;
137
				//getTaxonService().updateTitleCache((Class) clazz);
138 140
			}
139 141
			return true;
140 142
		} catch (Exception e) {
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/AnnotatableEntity.java
33 33
/**
34 34
 * Abstract superclass implementing human annotations and machine markers to be assigned to CDM objects.
35 35
 * @author m.doering
36
 * @version 1.0
37 36
 * @since 08-Nov-2007 13:06:10
38 37
 */
39 38
@XmlAccessorType(XmlAccessType.FIELD)
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/molecular/Sequence.java
162 162
    @XmlSchemaType(name = "IDREF")
163 163
    @ManyToMany(fetch = FetchType.LAZY)
164 164
    @Cascade({CascadeType.SAVE_UPDATE,CascadeType.MERGE})
165
	private Set<Reference> citations = new HashSet<Reference>();
165
	private Set<Reference> citations = new HashSet<>();
166 166

  
167 167
//	//should be calculated in case sequence is set
168 168
//	@XmlElement (name = "DateSequenced", type= String.class)

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)