SPT RWT Application API

com.sptci.rwt
Class MetaData

java.lang.Object
  extended by com.sptci.rwt.MetaData
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DBMSMetaData, JDBCMetaData, KeyMetaData, LimitsMetaData, ObjectMetaData, RootMetaData, TriggerMetaData

public abstract class MetaData
extends Object
implements Serializable

An abstract base class for all value objects that represent metadata for database objects.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: MetaData.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-09-25
See Also:
Serialized Form

Field Summary
private  String name
          The name of the object.
 
Constructor Summary
MetaData()
           
 
Method Summary
 boolean equals(Object object)
          Default implementation of the equality comparison method.
 String getName()
          Returns name.
 int hashCode()
          Return a hash code for this object.
protected  void setName(String name)
          Set name.
 String toString()
          Return a string representation of this instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private String name
The name of the object.

Constructor Detail

MetaData

public MetaData()
Method Detail

toString

public String toString()
Return a string representation of this instance. By default return getName().

Overrides:
toString in class Object
Returns:
The string representation of this object.

equals

public boolean equals(Object object)
Default implementation of the equality comparison method. Compares the class types and name values.

Overrides:
equals in class Object
Parameters:
object - The object that is to be compared with this for equality.
Returns:
Returns true if the object is of the same type and has the same name.

hashCode

public int hashCode()
Return a hash code for this object.

Overrides:
hashCode in class Object
Returns:
The hash code value computed out of the class of this object and name.

getName

public String getName()
Returns name.

Returns:
The value/reference of/to name.

setName

protected void setName(String name)
Set name.

Parameters:
name - The value to set.

SPT RWT Application API