Package org.castor.ddlgen.schemaobject
Class AbstractSchemaObject
java.lang.Object
org.castor.ddlgen.schemaobject.AbstractSchemaObject
- All Implemented Interfaces:
SchemaObject
- Direct Known Subclasses:
Field,ForeignKey,Index,KeyGenerator,PrimaryKey,Schema,Table
Abstract base class for all schema objects.
- Since:
- 1.1
- Version:
- $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Le Duc Bao, Ralf Joachim
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intFactor for calculation of hash code. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static final booleanCheck the 2 given objects for equality by taking into account that one or both of them may benull.final DDLGenConfigurationGet configuration of the schema object.final StringgetName()Get name of the schema object.final voidsetConfiguration(DDLGenConfiguration config) Set configuration of the schema object.final voidSet name of the schema object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.castor.ddlgen.schemaobject.SchemaObject
toCreateDDL, toDropDDL
-
Field Details
-
HASHFACTOR
protected static final int HASHFACTORFactor for calculation of hash code.- See Also:
-
-
Constructor Details
-
AbstractSchemaObject
public AbstractSchemaObject()
-
-
Method Details
-
setConfiguration
Set configuration of the schema object.- Specified by:
setConfigurationin interfaceSchemaObject- Parameters:
config- Configuration to be used by the schema object.
-
getConfiguration
Get configuration of the schema object.- Specified by:
getConfigurationin interfaceSchemaObject- Returns:
- Configuration of the schema object.
-
setName
Set name of the schema object.- Specified by:
setNamein interfaceSchemaObject- Parameters:
name- Name of the schema object.
-
getName
Get name of the schema object.- Specified by:
getNamein interfaceSchemaObject- Returns:
- Name of the schema object.
-
equals
Check the 2 given objects for equality by taking into account that one or both of them may benull.- Parameters:
obj1- First object.obj2- Second object.- Returns:
trueif both objects are null or equal as defined by equals method of object.falseif only one of the objects is null or if they are not equal.
-