ca.sqlpower.architect
Class SQLSequence

java.lang.Object
  extended by ca.sqlpower.architect.SQLObject
      extended by ca.sqlpower.architect.SQLSequence
All Implemented Interfaces:
java.io.Serializable

public class SQLSequence
extends SQLObject

A SQLObject that represents a sequence in a database. This is not yet a full-fledged SQLObject, because it does not have a place in the overall SQLObject tree, and it is not saved with the project. Its main purpose at this point is to exist temporarily during the DDL generation process. One day, the SQLSequence may be worked into the overall tree; however it is a feature only supported by a small number of platforms (only Oracle and PostgreSQL as far as we know) so it is not a high priority.

See SQLColumn.getAutoIncrementSequenceName() for more details on how a sequence might come to exist.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ca.sqlpower.architect.SQLObject
children, magicDisableCount, populated, undoEventListeners
 
Constructor Summary
SQLSequence(java.lang.String name)
          Creates a new SQLSequence with the given name.
 
Method Summary
 boolean allowsChildren()
          Returns false.
 java.lang.Class<? extends SQLObject> getChildType()
          Returns null because this type of object doesn't allow children.
 SQLObject getParent()
          Returns null because this type of object doesn't have a parent.
 java.lang.String getShortDisplayName()
          Returns the name of this SQLSequence.
protected  void populate()
          Does nothing because this type of object is not reverse-engineered.
protected  void setParent(SQLObject parent)
          Does nothing because this type of object doesn't have a parent.
 
Methods inherited from class ca.sqlpower.architect.SQLObject
addChild, addChild, addChildImpl, addSQLObjectListener, addSQLObjectPreEventListener, addUndoEventListener, endCompoundEdit, fireDbChildInserted, fireDbChildPreRemove, fireDbChildRemoved, fireDbChildrenInserted, fireDbChildrenPreRemove, fireDbChildrenRemoved, fireDbObjectChanged, fireDbStructureChanged, getChild, getChildByName, getChildByNameIgnoreCase, getChildCount, getChildren, getIndexOfChildByName, getName, getPhysicalName, getSQLObjectListeners, getSQLObjectPreEventListeners, getUndoEventListeners, isMagicEnabled, isPopulated, removeChild, removeChild, removeImpl, removeSQLObjectListener, removeSQLObjectPreEventListener, removeUndoEventListener, setMagicEnabled, setName, setPhysicalName, setPopulated, startCompoundEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLSequence

public SQLSequence(java.lang.String name)
Creates a new SQLSequence with the given name.

Method Detail

allowsChildren

public boolean allowsChildren()
Returns false.

Specified by:
allowsChildren in class SQLObject

getChildType

public java.lang.Class<? extends SQLObject> getChildType()
Returns null because this type of object doesn't allow children.

Specified by:
getChildType in class SQLObject

getParent

public SQLObject getParent()
Returns null because this type of object doesn't have a parent.

Specified by:
getParent in class SQLObject

setParent

protected void setParent(SQLObject parent)
Does nothing because this type of object doesn't have a parent.

Specified by:
setParent in class SQLObject

getShortDisplayName

public java.lang.String getShortDisplayName()
Returns the name of this SQLSequence.

Specified by:
getShortDisplayName in class SQLObject

populate

protected void populate()
                 throws ArchitectException
Does nothing because this type of object is not reverse-engineered.

Specified by:
populate in class SQLObject
Throws:
ArchitectException


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca