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
public abstract class AbstractSchemaObject extends java.lang.Object implements SchemaObject
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
Fields Modifier and Type Field Description protected static int
HASHFACTOR
Factor for calculation of hash code.
-
Constructor Summary
Constructors Constructor Description AbstractSchemaObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static boolean
equals(java.lang.Object obj1, java.lang.Object obj2)
Check the 2 given objects for equality by taking into account that one or both of them may benull
.DDLGenConfiguration
getConfiguration()
Get configuration of the schema object.java.lang.String
getName()
Get name of the schema object.void
setConfiguration(DDLGenConfiguration config)
Set configuration of the schema object.void
setName(java.lang.String name)
Set name of the schema object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.castor.ddlgen.schemaobject.SchemaObject
toCreateDDL, toDropDDL
-
-
-
-
Field Detail
-
HASHFACTOR
protected static final int HASHFACTOR
Factor for calculation of hash code.- See Also:
- Constant Field Values
-
-
Method Detail
-
setConfiguration
public final void setConfiguration(DDLGenConfiguration config)
Set configuration of the schema object.- Specified by:
setConfiguration
in interfaceSchemaObject
- Parameters:
config
- Configuration to be used by the schema object.
-
getConfiguration
public final DDLGenConfiguration getConfiguration()
Get configuration of the schema object.- Specified by:
getConfiguration
in interfaceSchemaObject
- Returns:
- Configuration of the schema object.
-
setName
public final void setName(java.lang.String name)
Set name of the schema object.- Specified by:
setName
in interfaceSchemaObject
- Parameters:
name
- Name of the schema object.
-
getName
public final java.lang.String getName()
Get name of the schema object.- Specified by:
getName
in interfaceSchemaObject
- Returns:
- Name of the schema object.
-
equals
protected static final boolean equals(java.lang.Object obj1, java.lang.Object obj2)
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:
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.
-
-