You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2010/07/12 20:03:48 UTC
svn commit: r963408 -
/incubator/oodt/trunk/catalog/src/main/java/org/apache/oodt/cas/catalog/metadata/TransactionalMetadata.java
Author: mattmann
Date: Mon Jul 12 18:03:47 2010
New Revision: 963408
URL: http://svn.apache.org/viewvc?rev=963408&view=rev
Log:
- progress towards OODT-15 One trunk for all OODT components with top level build
Modified:
incubator/oodt/trunk/catalog/src/main/java/org/apache/oodt/cas/catalog/metadata/TransactionalMetadata.java
Modified: incubator/oodt/trunk/catalog/src/main/java/org/apache/oodt/cas/catalog/metadata/TransactionalMetadata.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/catalog/src/main/java/org/apache/oodt/cas/catalog/metadata/TransactionalMetadata.java?rev=963408&r1=963407&r2=963408&view=diff
==============================================================================
--- incubator/oodt/trunk/catalog/src/main/java/org/apache/oodt/cas/catalog/metadata/TransactionalMetadata.java (original)
+++ incubator/oodt/trunk/catalog/src/main/java/org/apache/oodt/cas/catalog/metadata/TransactionalMetadata.java Mon Jul 12 18:03:47 2010
@@ -1,4 +1,4 @@
-/*
+/**
* 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.
@@ -30,44 +30,44 @@ import org.apache.oodt.cas.catalog.syste
import org.apache.oodt.cas.metadata.Metadata;
/**
- * @author bfoster
- * @version $Revision$
- *
- * <p>
+ *
* Metadata tied to a Transaction
- * <p>
+ *
*/
public class TransactionalMetadata {
- protected TransactionReceipt receipt;
- protected Metadata metadata;
-
- public TransactionalMetadata(TransactionReceipt receipt, Metadata metadata) {
- this.receipt = receipt;
- this.metadata = metadata;
- this.metadata.replaceMetadata(CatalogService.CATALOG_SERVICE_TRANSACTION_ID_MET_KEY, this.receipt.getTransactionId().toString());
- this.metadata.replaceMetadata(CatalogService.CATALOG_IDS_MET_KEY, StringUtils.join(this.receipt.getCatalogIds().iterator(), ","));
- }
-
- public TransactionId<?> getTransactionId() {
- return receipt.getTransactionId();
- }
-
- public Set<String> getCatalogIds() {
- return receipt.getCatalogIds();
- }
-
- public Date getTransactionDate() {
- return receipt.getTransactionDate();
- }
-
- public Metadata getMetadata() {
- return metadata;
- }
-
- @Override
- public int hashCode() {
- return this.getTransactionId().hashCode();
- }
-
+ protected TransactionReceipt receipt;
+ protected Metadata metadata;
+
+ public TransactionalMetadata(TransactionReceipt receipt, Metadata metadata) {
+ this.receipt = receipt;
+ this.metadata = metadata;
+ this.metadata.replaceMetadata(
+ CatalogService.CATALOG_SERVICE_TRANSACTION_ID_MET_KEY, this.receipt
+ .getTransactionId().toString());
+ this.metadata.replaceMetadata(CatalogService.CATALOG_IDS_MET_KEY,
+ StringUtils.join(this.receipt.getCatalogIds().iterator(), ","));
+ }
+
+ public TransactionId<?> getTransactionId() {
+ return receipt.getTransactionId();
+ }
+
+ public Set<String> getCatalogIds() {
+ return receipt.getCatalogIds();
+ }
+
+ public Date getTransactionDate() {
+ return receipt.getTransactionDate();
+ }
+
+ public Metadata getMetadata() {
+ return metadata;
+ }
+
+ @Override
+ public int hashCode() {
+ return this.getTransactionId().hashCode();
+ }
+
}