// THIS SOFTWARE IS PROVIDED BY SOFTARIS PTY.LTD. AND OTHER METABOSS
// CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
// BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTARIS PTY.LTD.
// OR OTHER METABOSS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
// OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// EVEN IF SOFTARIS PTY.LTD. OR OTHER METABOSS CONTRIBUTORS ARE ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// Copyright 2000-2005 Softaris Pty.Ltd. All Rights Reserved.
package com.metaboss.sdlctools.domains.storagemodel.storage.xmlfileimpl;
import com.metaboss.enterprise.ps.PSException;
import com.metaboss.sdlctools.domains.storagemodel.storage.PSDomainStorage;
import com.metaboss.sdlctools.domains.storagemodel.storage.STDomainStorage;
import com.metaboss.sdlctools.domains.storagemodel.storage.STDomainStorageKey;
import com.metaboss.sdlctools.domains.storagemodel.storage.xmlfileimpl.dom.DomainStorageDefType;
public class PSDomainStorageImpl implements PSDomainStorage
{
/* Returns all references to the domain storages */
public STDomainStorageKey[] getDomainStorageRefs() throws PSException
{
return Storage.getDomainStorageRefs();
}
/* Returns true if domain storage record with supplied key exists. */
public boolean containsDomainStorage(STDomainStorageKey pKey) throws PSException
{
return Storage.containsDomainStorage(pKey);
}
/* Returns details for requested particular technology */
public STDomainStorage getDomainStorage(STDomainStorageKey pDomainStorageRef) throws PSException
{
DomainStorageDefType lDomainStorageDef = Storage.getDomainStorage(pDomainStorageRef);
if (lDomainStorageDef == null)
return null;
STDomainStorage lStruct = new STDomainStorage();
lStruct.DomainRef = lDomainStorageDef.getDomainRef();
lStruct.StorageTechnologyRef = lDomainStorageDef.getStorageTechnologyRef();
lStruct.Description = lDomainStorageDef.getDescription();
return lStruct;
}
}
|