org.glite.rgma
Class Storage

java.lang.Object
  extended byorg.glite.rgma.Storage

public class Storage
extends java.lang.Object

Storage location for tuples. The following static methods and constants are available:


Field Summary
static Storage DATABASE
          The default DATABASE storage location.
static Storage FILE
          The default FILE storage location.
static Storage MEMORY
          The default MEMORY storage location.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this object with the specified object.
static Storage getDatabase(java.lang.String logicalName)
          Gets a DATABASE Storage object for the specified database.
static Storage getDatabase(java.lang.String location, java.lang.String userName, java.lang.String password)
          Deprecated.  
static Storage getFile(java.lang.String logicalName)
          Deprecated.  
 java.lang.String getLocation()
          Deprecated.  
 java.lang.String getLogicalName()
          Gets the logical name for this storage system.
 java.lang.String getPassword()
          Deprecated.  
 java.lang.String getUserName()
          Deprecated.  
 boolean hasDetails()
          Determines if this Storage contains storage details.
 int hashCode()
          Returns a hash code value for the object.
 boolean isDatabase()
          Determines if this storage system is a database.
 boolean isFile()
          Deprecated.  
 boolean isMemory()
          Determines if this storage system is memory.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEMORY

public static final Storage MEMORY
The default MEMORY storage location.


DATABASE

public static final Storage DATABASE
The default DATABASE storage location.


FILE

public static final Storage FILE
The default FILE storage location. @deprecated

Method Detail

getDatabase

public static Storage getDatabase(java.lang.String location,
                                  java.lang.String userName,
                                  java.lang.String password)
Deprecated.  

Gets a DATABASE Storage object for the specified database.

Parameters:
location - The URL of the storage system (e.g. dbms)
userName - The user name for the storage system.
password - The password for the storage system.
Returns:
A Storage object for the specified database.

getDatabase

public static Storage getDatabase(java.lang.String logicalName)
Gets a DATABASE Storage object for the specified database.

Parameters:
logicalName - The logical name of the storage system
Returns:
A Storage object for the specified database.

getFile

public static Storage getFile(java.lang.String logicalName)
Deprecated.  

Gets a FILE Storage object for the specified file.

Parameters:
logicalName - The logical name of the file location.
Returns:
A Storage object for the specified file.

isDatabase

public boolean isDatabase()
Determines if this storage system is a database.

Returns:
True if the storage system is a database.

isFile

public boolean isFile()
Deprecated.  

Determines if this storage system is a file.

Returns:
True if the storage system is a file.

isMemory

public boolean isMemory()
Determines if this storage system is memory.

Returns:
True if the storage system is memory.

getLogicalName

public java.lang.String getLogicalName()
Gets the logical name for this storage system.

Returns:
Logical name as a String

getPassword

public java.lang.String getPassword()
Deprecated.  

Gets the password for this storage system.

Returns:
Password as a String

getLocation

public java.lang.String getLocation()
Deprecated.  

Gets the URL for this storage system.

Returns:
URL as a String

getUserName

public java.lang.String getUserName()
Deprecated.  

Gets the user name for this storage system.

Returns:
User name as a String

equals

public boolean equals(java.lang.Object obj)
Compares this object with the specified object.

Parameters:
obj - Object to compare.
Returns:
true if this object and the specified object are equal.
See Also:
Object.equals(java.lang.Object)

hasDetails

public boolean hasDetails()
Determines if this Storage contains storage details.

Returns:
true if it has storage details, otherwise false.

hashCode

public int hashCode()
Returns a hash code value for the object.

Returns:
A hash code value for this object.
See Also:
Object.hashCode()