From f749d6eb94666351520d29cd0668a95adc29f34a Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 31 Oct 2006 17:51:16 +0000 Subject: Remove unused class. --- .../synthetic/SyntheticReferenceAccessor.java | 100 --------------------- 1 file changed, 100 deletions(-) delete mode 100644 src/main/java/com/amazon/carbonado/synthetic/SyntheticReferenceAccessor.java diff --git a/src/main/java/com/amazon/carbonado/synthetic/SyntheticReferenceAccessor.java b/src/main/java/com/amazon/carbonado/synthetic/SyntheticReferenceAccessor.java deleted file mode 100644 index 6a34319..0000000 --- a/src/main/java/com/amazon/carbonado/synthetic/SyntheticReferenceAccessor.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2006 Amazon Technologies, Inc. or its affiliates. - * Amazon, Amazon.com and Carbonado are trademarks or registered trademarks - * of Amazon Technologies, Inc. or its affiliates. All rights reserved. - * - * Licensed 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 com.amazon.carbonado.synthetic; - -import com.amazon.carbonado.Storable; -import com.amazon.carbonado.Storage; -import com.amazon.carbonado.Repository; -import com.amazon.carbonado.SupportException; -import com.amazon.carbonado.RepositoryException; -import com.amazon.carbonado.FetchException; - -/** - * An synthetic reference contains information which is directly related to another - * storable, and which requires that the other storable is retrievable. This is a - * convenience class which unifies the builder and the repository information. - * - * @author Don Schneider - */ -public class SyntheticReferenceAccessor { - private Repository mIndexEntryRepository; - private Storage mIndexEntryStorage; - private Class mIndexEntryClass; - - private SyntheticStorableReferenceBuilder mBuilder; - - - public SyntheticReferenceAccessor(Repository repo, - SyntheticStorableReferenceBuilder builder) - throws RepositoryException - { - mBuilder = builder; - mIndexEntryClass = mBuilder.getStorableClass(); - mIndexEntryStorage = repo.storageFor(mIndexEntryClass); - mIndexEntryRepository = repo; - } - - /** - * @return repository in which this index entry is stored - */ - public Repository getRepository() { - return mIndexEntryRepository; - } - - /** - * @return storage for this index entry - * @throws SupportException - * @throws RepositoryException - */ - public Storage getStorage() - throws SupportException, RepositoryException - { - return mIndexEntryStorage; - } - - /** - * Retrieve the object for which this index entry was constructed - * @param indexEntry - * @throws FetchException - */ - public Storable loadMaster(Storable indexEntry) - throws FetchException - { - return mBuilder.loadMaster(indexEntry); - } - - /** - * Creates an index entry storable and fills in all related properties from a master storable. - * @return the filled in metadata storable - */ - public Storable setAllProperties(S master) - throws SupportException, RepositoryException - { - Storable entry = getStorage().prepare(); - mBuilder.setAllProperties(entry, master); - return entry; - } - - public Class getSyntheticClass() { - return mIndexEntryClass; - } - - public String toString() { - return mBuilder.getClass().toString(); - } -} -- cgit v1.2.3