FileDocCategorySizeDatePackage
Cmp.javaAPI DocGlassfish v2 API6909Fri May 04 22:34:40 BST 2007com.sun.enterprise.tools.common.dd.ejb

Cmp

public class Cmp extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class Cmp matches the schema element cmp Generated on Thu Mar 25 11:25:27 PST 2004

Fields Summary
static Vector
comparators
public static final String
MAPPING_PROPERTIES
public static final String
IS_ONE_ONE_CMP
public static final String
ONE_ONE_FINDERS
public static final String
PREFETCH_DISABLED
Constructors Summary
public Cmp()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public Cmp(int options)

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("mapping-properties", 	// NOI18N
			MAPPING_PROPERTIES, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("is-one-one-cmp", 	// NOI18N
			IS_ONE_ONE_CMP, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("one-one-finders", 	// NOI18N
			ONE_ONE_FINDERS, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			OneOneFinders.class);
		this.createProperty("prefetch-disabled", 	// NOI18N
			PREFETCH_DISABLED, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			PrefetchDisabled.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public voiddump(java.lang.StringBuffer str, java.lang.String indent)

		String s;
		Object o;
		org.netbeans.modules.schema2beans.BaseBean n;
		str.append(indent);
		str.append("MappingProperties");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getMappingProperties();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(MAPPING_PROPERTIES, 0, str, indent);

		str.append(indent);
		str.append("IsOneOneCmp");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getIsOneOneCmp();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(IS_ONE_ONE_CMP, 0, str, indent);

		str.append(indent);
		str.append("OneOneFinders");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getOneOneFinders();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(ONE_ONE_FINDERS, 0, str, indent);

		str.append(indent);
		str.append("PrefetchDisabled");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getPrefetchDisabled();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(PREFETCH_DISABLED, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("Cmp\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetIsOneOneCmp()

		return (String)this.getValue(IS_ONE_ONE_CMP);
	
public java.lang.StringgetMappingProperties()

		return (String)this.getValue(MAPPING_PROPERTIES);
	
public OneOneFindersgetOneOneFinders()

		return (OneOneFinders)this.getValue(ONE_ONE_FINDERS);
	
public PrefetchDisabledgetPrefetchDisabled()

		return (PrefetchDisabled)this.getValue(PREFETCH_DISABLED);
	
voidinitialize(int options)

		
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetIsOneOneCmp(java.lang.String value)

		this.setValue(IS_ONE_ONE_CMP, value);
	
public voidsetMappingProperties(java.lang.String value)

		this.setValue(MAPPING_PROPERTIES, value);
	
public voidsetOneOneFinders(OneOneFinders value)

		this.setValue(ONE_ONE_FINDERS, value);
	
public voidsetPrefetchDisabled(PrefetchDisabled value)

		this.setValue(PREFETCH_DISABLED, value);
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property mappingProperties
		if (getMappingProperties() != null) {
		}
		// Validating property isOneOneCmp
		if (getIsOneOneCmp() != null) {
		}
		// Validating property oneOneFinders
		if (getOneOneFinders() != null) {
			getOneOneFinders().validate();
		}
		// Validating property prefetchDisabled
		if (getPrefetchDisabled() != null) {
			getPrefetchDisabled().validate();
		}