FileDocCategorySizeDatePackage
TransactionService.javaAPI DocGlassfish v2 API12300Fri May 26 10:47:10 BST 2006com.sun.enterprise.config.serverbeans

TransactionService

public class TransactionService extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class TransactionService matches the DTD element transaction-service

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
public static final String
ELEMENT_PROPERTY
Constructors Summary
public TransactionService()


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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(1);
		this.createProperty("property", ELEMENT_PROPERTY, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ElementProperty.class);
		this.createAttribute(ELEMENT_PROPERTY, "name", "Name", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(ELEMENT_PROPERTY, "value", "Value", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddElementProperty(ElementProperty value)

		return addElementProperty(value, true);
	
public intaddElementProperty(ElementProperty value, boolean overwrite)

		ElementProperty old = getElementPropertyByName(value.getName());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(TransactionService.class).getString("cannotAddDuplicate",  "ElementProperty"));
		}
		return this.addValue(ELEMENT_PROPERTY, value, overwrite);
	
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("ElementProperty["+this.sizeElementProperty()+"]");	// NOI18N
		for(int i=0; i<this.sizeElementProperty(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("TransactionService\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
		if(attr.equals(ServerTags.AUTOMATIC_RECOVERY)) return "false".trim();
		if(attr.equals(ServerTags.TIMEOUT_IN_SECONDS)) return "0".trim();
		if(attr.equals(ServerTags.HEURISTIC_DECISION)) return "rollback".trim();
		if(attr.equals(ServerTags.RETRY_TIMEOUT_IN_SECONDS)) return "600".trim();
		if(attr.equals(ServerTags.KEYPOINT_INTERVAL)) return "2048".trim();
	return null;
	
public static java.lang.StringgetDefaultAutomaticRecovery()
Get the default value of AutomaticRecovery from dtd

		return "false".trim();
	
public static java.lang.StringgetDefaultHeuristicDecision()
Get the default value of HeuristicDecision from dtd

		return "rollback".trim();
	
public static java.lang.StringgetDefaultKeypointInterval()
Get the default value of KeypointInterval from dtd

		return "2048".trim();
	
public static java.lang.StringgetDefaultRetryTimeoutInSeconds()
Get the default value of RetryTimeoutInSeconds from dtd

		return "600".trim();
	
public static java.lang.StringgetDefaultTimeoutInSeconds()
Get the default value of TimeoutInSeconds from dtd

		return "0".trim();
	
public ElementPropertygetElementProperty(int index)

		return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
	
public ElementProperty[]getElementProperty()

		return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
	
public ElementPropertygetElementPropertyByName(java.lang.String id)

	 if (null != id) { id = id.trim(); }
	ElementProperty[] o = getElementProperty();
	 if (o == null) return null;

	 for (int i=0; i < o.length; i++) {
	     if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
	         return o[i];
	     }
	 }

		return null;
		
	
public java.lang.StringgetHeuristicDecision()
Getter for HeuristicDecision of the Element transaction-service

return
the HeuristicDecision of the Element transaction-service

		return getAttributeValue(ServerTags.HEURISTIC_DECISION);
	
public java.lang.StringgetKeypointInterval()
Getter for KeypointInterval of the Element transaction-service

return
the KeypointInterval of the Element transaction-service

		return getAttributeValue(ServerTags.KEYPOINT_INTERVAL);
	
protected java.lang.StringgetRelativeXPath()
get the xpath representation for this element returns something like abc[@name='value'] or abc depending on the type of the bean

	    String ret = null;
	    ret = "transaction-service";
	    return (null != ret ? ret.trim() : null);
	
public java.lang.StringgetRetryTimeoutInSeconds()
Getter for RetryTimeoutInSeconds of the Element transaction-service

return
the RetryTimeoutInSeconds of the Element transaction-service

		return getAttributeValue(ServerTags.RETRY_TIMEOUT_IN_SECONDS);
	
public java.lang.StringgetTimeoutInSeconds()
Getter for TimeoutInSeconds of the Element transaction-service

return
the TimeoutInSeconds of the Element transaction-service

		return getAttributeValue(ServerTags.TIMEOUT_IN_SECONDS);
	
public java.lang.StringgetTxLogDir()
Getter for TxLogDir of the Element transaction-service

return
the TxLogDir of the Element transaction-service

			return getAttributeValue(ServerTags.TX_LOG_DIR);
	
voidinitialize(int options)


	
public booleanisAutomaticRecovery()
Getter for AutomaticRecovery of the Element transaction-service

return
the AutomaticRecovery of the Element transaction-service

		return toBoolean(getAttributeValue(ServerTags.AUTOMATIC_RECOVERY));
	
public ElementPropertynewElementProperty()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new ElementProperty();
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public intremoveElementProperty(ElementProperty value)

		return this.removeValue(ELEMENT_PROPERTY, value);
	
public intremoveElementProperty(ElementProperty value, boolean overwrite)

		return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
	
public voidsetAutomaticRecovery(boolean v, boolean overwrite)
Modify the AutomaticRecovery of the Element transaction-service

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.AUTOMATIC_RECOVERY, ""+(v==true), overwrite);
	
public voidsetAutomaticRecovery(boolean v)
Modify the AutomaticRecovery of the Element transaction-service

param
v the new value

		setAttributeValue(ServerTags.AUTOMATIC_RECOVERY, ""+(v==true));
	
public voidsetElementProperty(ElementProperty[] value)

		this.setValue(ELEMENT_PROPERTY, value);
	
public voidsetHeuristicDecision(java.lang.String v, boolean overwrite)
Modify the HeuristicDecision of the Element transaction-service

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.HEURISTIC_DECISION, v, overwrite);
	
public voidsetHeuristicDecision(java.lang.String v)
Modify the HeuristicDecision of the Element transaction-service

param
v the new value

		setAttributeValue(ServerTags.HEURISTIC_DECISION, v);
	
public voidsetKeypointInterval(java.lang.String v, boolean overwrite)
Modify the KeypointInterval of the Element transaction-service

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.KEYPOINT_INTERVAL, v, overwrite);
	
public voidsetKeypointInterval(java.lang.String v)
Modify the KeypointInterval of the Element transaction-service

param
v the new value

		setAttributeValue(ServerTags.KEYPOINT_INTERVAL, v);
	
public voidsetRetryTimeoutInSeconds(java.lang.String v, boolean overwrite)
Modify the RetryTimeoutInSeconds of the Element transaction-service

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.RETRY_TIMEOUT_IN_SECONDS, v, overwrite);
	
public voidsetRetryTimeoutInSeconds(java.lang.String v)
Modify the RetryTimeoutInSeconds of the Element transaction-service

param
v the new value

		setAttributeValue(ServerTags.RETRY_TIMEOUT_IN_SECONDS, v);
	
public voidsetTimeoutInSeconds(java.lang.String v, boolean overwrite)
Modify the TimeoutInSeconds of the Element transaction-service

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.TIMEOUT_IN_SECONDS, v, overwrite);
	
public voidsetTimeoutInSeconds(java.lang.String v)
Modify the TimeoutInSeconds of the Element transaction-service

param
v the new value

		setAttributeValue(ServerTags.TIMEOUT_IN_SECONDS, v);
	
public voidsetTxLogDir(java.lang.String v, boolean overwrite)
Modify the TxLogDir of the Element transaction-service

param
v the new value
throws
StaleWriteConfigException if overwrite is false and file changed on disk

		setAttributeValue(ServerTags.TX_LOG_DIR, v, overwrite);
	
public voidsetTxLogDir(java.lang.String v)
Modify the TxLogDir of the Element transaction-service

param
v the new value

		setAttributeValue(ServerTags.TX_LOG_DIR, v);
	
public intsizeElementProperty()

		return this.size(ELEMENT_PROPERTY);
	
public voidvalidate()