FileDocCategorySizeDatePackage
SessionManager.javaAPI DocGlassfish v2 API23147Fri May 04 22:34:42 BST 2007com.sun.enterprise.tools.common.dd.webapp

SessionManager

public class SessionManager extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class SessionManager matches the schema element session-manager Generated on Tue Sep 02 18:08:42 PDT 2003

Fields Summary
static Vector
comparators
public static final String
PERSISTENCETYPE
public static final String
MANAGER_PROPERTIES
public static final String
STORE_PROPERTIES
Constructors Summary
public SessionManager()

	// NOI18N

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

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("manager-properties", 	// NOI18N
			MANAGER_PROPERTIES, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ManagerProperties.class);
		this.createProperty("store-properties", 	// NOI18N
			STORE_PROPERTIES, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			StoreProperties.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("ManagerProperties");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getManagerProperties();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(MANAGER_PROPERTIES, 0, str, indent);

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

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("SessionManager\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public ManagerPropertiesgetManagerProperties()

		return (ManagerProperties)this.getValue(MANAGER_PROPERTIES);
	
public java.lang.StringgetPersistenceType()

		return getAttributeValue(PERSISTENCETYPE);
	
public StorePropertiesgetStoreProperties()

		return (StoreProperties)this.getValue(STORE_PROPERTIES);
	
voidinitialize(int options)


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

		comparators.remove(c);
	
public voidsetManagerProperties(ManagerProperties value)

		this.setValue(MANAGER_PROPERTIES, value);
	
public voidsetPersistenceType(java.lang.String value)

		setAttributeValue(PERSISTENCETYPE, value);
	
public voidsetStoreProperties(StoreProperties value)

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

		boolean restrictionFailure = false;
		// Validating property persistenceType
		if (getPersistenceType() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getPersistenceType() == null", "persistenceType", this);	// NOI18N
		}
		// Validating property managerProperties
		if (getManagerProperties() != null) {
			getManagerProperties().validate();
		}
		// Validating property storeProperties
		if (getStoreProperties() != null) {
			getStoreProperties().validate();
		}