org.castor.ddlgen.schemaobject

Class AbstractSchemaObject

Implemented Interfaces:
SchemaObject
Known Direct Subclasses:
Field, ForeignKey, Index, KeyGenerator, PrimaryKey, Schema, Table

public abstract class AbstractSchemaObject
extends java.lang.Object
implements SchemaObject

Abstract base class for all schema objects.
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Authors:
Le Duc Bao
Ralf Joachim
Since:
1.1

Field Summary

protected static int
HASHFACTOR
Factor for calculation of hash code.

Method Summary

protected static boolean
equals(Object obj1, Object obj2)
Check the 2 given objects for equality by taking into account that one or both of them may be null.
DDLGenConfiguration
getConfiguration()
String
getName()
void
setConfiguration(DDLGenConfiguration config)
void
setName(String name)

Field Details

HASHFACTOR

protected static final int HASHFACTOR
Factor for calculation of hash code.
Field Value:
17

Method Details

equals

protected static final boolean equals(Object obj1,
                                      Object obj2)
Check the 2 given objects for equality by taking into account that one or both of them may be null.
Parameters:
obj1 - First object.
obj2 - Second object.
Returns:
true if both objects are null or equal as defined by equals method of object. false if only one of the objects is null or if they are not equal.

getConfiguration

public final DDLGenConfiguration getConfiguration()
Specified by:
getConfiguration in interface SchemaObject

getName

public final String getName()
Specified by:
getName in interface SchemaObject

setConfiguration

public final void setConfiguration(DDLGenConfiguration config)
Specified by:
setConfiguration in interface SchemaObject

setName

public final void setName(String name)
Specified by:
setName in interface SchemaObject

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com