FileDocCategorySizeDatePackage
SequenceDefinition.javaAPI DocGlassfish v2 API3567Tue May 22 16:54:54 BST 2007oracle.toplink.essentials.tools.schemaframework

SequenceDefinition

public abstract class SequenceDefinition extends DatabaseObjectDefinition

Purpose: Allow a generic way of creating sequences on the different platforms, and allow optional parameters to be specified.

Fields Summary
Constructors Summary
public SequenceDefinition(String name)

        super();
        this.name = name;
    
Methods Summary
public voidalter(oracle.toplink.essentials.internal.sessions.AbstractSession session, java.io.Writer writer)
INTERNAL: Execute the SQL required to alter sequence. By default does nothing.

    
public voidalterOnDatabase(oracle.toplink.essentials.internal.sessions.AbstractSession session)
INTERNAL: By default does nothing.

    
public oracle.toplink.essentials.tools.schemaframework.TableDefinitionbuildTableDefinition()
INTERNAL: Return a TableDefinition

        return null;
    
public abstract booleancheckIfExist(oracle.toplink.essentials.internal.sessions.AbstractSession session)
INTERAL: Verify whether the sequence exists.

public voidcreateOnDatabase(oracle.toplink.essentials.internal.sessions.AbstractSession session)
INTERNAL:

        if (checkIfExist(session)) {
            alterOnDatabase(session);
        } else {
            super.createOnDatabase(session);
        }
    
public booleanisAlterSupported()
INTERNAL: Indicates whether alter is supported

        return false;