add some more transaction related types
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/a33cc988 Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/a33cc988 Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/a33cc988 Branch: refs/heads/master Commit: a33cc9881247907eb6ace1ed183ce3b6c475dddc Parents: edb6aaf Author: Robert Gemmell <[email protected]> Authored: Tue Oct 28 17:45:09 2014 +0000 Committer: Robert Gemmell <[email protected]> Committed: Tue Oct 28 17:45:09 2014 +0000 ---------------------------------------------------------------------- .../testpeer/basictypes/TransactionError.java | 40 +++++++++++++++++++ .../test/testpeer/basictypes/TxnCapability.java | 42 ++++++++++++++++++++ .../test/testpeer/basictypes/generate-types.xsl | 2 +- 3 files changed, 83 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/a33cc988/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TransactionError.java ---------------------------------------------------------------------- diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TransactionError.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TransactionError.java new file mode 100644 index 0000000..87740f1 --- /dev/null +++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TransactionError.java @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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.qpid.jms.test.testpeer.basictypes; + + +import org.apache.qpid.proton.amqp.Symbol; + + +/** + * Generated by generate-types.xsl, which resides in this package. + */ +public class TransactionError { + + public static final Symbol UNKNOWN_ID = Symbol.valueOf("amqp:transaction:unknown-id"); + public static final Symbol TRANSACTION_ROLLBACK = Symbol.valueOf("amqp:transaction:rollback"); + public static final Symbol TRANSACTION_TIMEOUT = Symbol.valueOf("amqp:transaction:timeout"); + + private TransactionError() { + //No instances + } +} + http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/a33cc988/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TxnCapability.java ---------------------------------------------------------------------- diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TxnCapability.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TxnCapability.java new file mode 100644 index 0000000..c71ffd8 --- /dev/null +++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/TxnCapability.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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.qpid.jms.test.testpeer.basictypes; + + +import org.apache.qpid.proton.amqp.Symbol; + + +/** + * Generated by generate-types.xsl, which resides in this package. + */ +public class TxnCapability { + + public static final Symbol LOCAL_TRANSACTIONS = Symbol.valueOf("amqp:local-transactions"); + public static final Symbol DISTRIBUTED_TRANSACTIONS = Symbol.valueOf("amqp:distributed-transactions"); + public static final Symbol PROMOTABLE_TRANSACTIONS = Symbol.valueOf("amqp:promotable-transactions"); + public static final Symbol MULTI_TXNS_PER_SSN = Symbol.valueOf("amqp:multi-txns-per-ssn"); + public static final Symbol MULTI_SSNS_PER_TXN = Symbol.valueOf("amqp:multi-ssns-per-txn"); + + private TxnCapability() { + //No instances + } +} + http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/a33cc988/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl ---------------------------------------------------------------------- diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl index 188a655..4569714 100644 --- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl +++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/basictypes/generate-types.xsl @@ -30,7 +30,7 @@ </xsl:variable> <xsl:for-each select="descendant-or-self::node()[name()='type']"> - <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode'"> + <xsl:if test="@name = 'terminus-durability' or @name = 'terminus-expiry-policy' or @name = 'std-dist-mode' or @name = 'txn-capability' or @name = 'transaction-error'"> <xsl:variable name="classname"><xsl:call-template name="dashToCamel"><xsl:with-param name="input" select="@name"/></xsl:call-template></xsl:variable> <xsl:call-template name="typeClass"> <xsl:with-param name="license" select="$license"/> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
