|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.lang.SerializableObject
|
+--com.jdc.rdb.Schema
A default implementation of Schema. All application database schema classes
should subclass this database Schema class.
Schema is defined by its database schema name
and, optionally, an alias.
Note: This class is immutable.
Database,
Table,
Serialized Form| Field Summary |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
Schema(String name)
Constructs a new AbstractSchema object for the specified database
schema name. |
|
Schema(String name,
String alias)
Constructs a new AbstractSchema object for the specified database
schema name and alias. |
|
| Method Summary | |
boolean |
equals(Object object)
Compares this Schema object to the specified object. |
String |
getAlias()
Returns the database schema alias. |
abstract Database |
getDatabase()
Returns the Database object for this schema. |
String |
getName()
Returns the database schema name. |
int |
hashCode()
Returns a hash code value for this Schema object. |
String |
toString()
Returns a String representing this Schema object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Schema(String name)
AbstractSchema object for the specified database
schema name. This schema will have no alias.
public Schema(String name,
String alias)
AbstractSchema object for the specified database
schema name and alias.
| Method Detail |
public boolean equals(Object object)
Schema object to the specified object. Returns
true if the specified object is equivalent to this schema object.
equals in class ObjectTrue if a specified object is equal to this schema object. False if the specified object is not equal to this schema object.hashCode()public String getAlias()
Schema
getAlias in interface Schemapublic abstract Database getDatabase()
SchemaDatabase object for this schema.
getDatabase in interface Schemadatabase object for this schema.public String getName()
Schema
getName in interface Schemapublic int hashCode()
Schema object. This
method is supported for the benefit of hashtables such as those provided
by Hashtable.
hashCode in class Objectequals(java.lang.Object)public String toString()
String representing this Schema object.
toString in class ObjectString representing this Schema object.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||