org.alfresco.util.schemacomp.model
Class Schema
java.lang.Object
org.alfresco.util.schemacomp.model.AbstractDbObject
org.alfresco.util.schemacomp.model.Schema
- All Implemented Interfaces:
- java.lang.Iterable, DbObject
public class Schema
- extends AbstractDbObject
- implements java.lang.Iterable
Instances of this class represent a database schema.
|
Field Summary |
protected java.util.List |
objects
|
|
Constructor Summary |
Schema(java.lang.String name)
Construct a schema with the given name. |
| Methods inherited from class org.alfresco.util.schemacomp.model.AbstractDbObject |
diff, getName, getNameStrength, getParent, getTypeName, getValidators, sameAs, setComparisonUtils, setName, setNameStrength, setParent, setValidators, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
objects
protected final java.util.List objects
Schema
public Schema(java.lang.String name)
- Construct a schema with the given name.
- Parameters:
name -
add
public void add(DbObject dbObject)
- Add an object to this schema - this method will set this schema
as the object's parent.
- Parameters:
dbObject -
iterator
public java.util.Iterator iterator()
- Specified by:
iterator in interface java.lang.Iterable
contains
public boolean contains(DbObject object)
- Parameters:
identifier -
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode in class AbstractDbObject
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class AbstractDbObject
doDiff
protected void doDiff(DbObject right,
DiffContext ctx,
Result.Strength strength)
- Description copied from class:
AbstractDbObject
- Override this method to provide subclass specific diffing logic.
- Overrides:
doDiff in class AbstractDbObject
accept
public void accept(DbObjectVisitor visitor)
- Description copied from interface:
DbObject
- Allows a visitor to be invoked against this DbObject. Implementations should ensure that child
objects are visited first (by calling accept on them) before invoking the visitor on itself.
- Specified by:
accept in interface DbObject
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.