blob: 2d2b50a373f394670e198f66d58023828f9933b1 [file] [log] [blame]
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jdo.pc;
import javax.jdo.spi.PersistenceCapable;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
/**
* Represents a PC type that holds a Set and Map of PC instances.
* @version 1.0.1
*/
public class PCCollection {
private int id;
private Set set;
private Map map;
public PCCollection() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Set getSet() {
return set;
}
public void setSet(Set set) {
this.set = set;
}
public Map getMap() {
return map;
}
public void setMap(Map map) {
this.map = map;
}
public String toString() {
return "PCCollection:" + id + " Set (" + (set==null?"null":String.valueOf(set.size())) +
") Map (" + (map==null?"null":String.valueOf(map.size())) + ")";
}
}