net.sourceforge.squirrel_sql.plugins.oracle.constraint
Class AbstractConstraintSource

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.oracle.constraint.AbstractConstraintSource
Direct Known Subclasses:
CKConstraintSource, FKConstraintSource, PKConstraintSource, UQConstraintSource

public abstract class AbstractConstraintSource
extends Object

Base class that constructs the SQL source for the constraints

Author:
bpaulon

Constructor Summary
AbstractConstraintSource(ISession session, ConstraintInfo ci)
           
 
Method Summary
 void buildAddStatement()
           
abstract  void buildConstraintClause()
           
 void buildDropStatement()
           
protected  String columnNamesAsCSV(List<ConstraintColumnInfo> cols)
           
 String getSource()
           
 void readConstraintColumnNames()
           
protected  List<ConstraintColumnInfo> readConstraintColumns(String schema, String constraintName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConstraintSource

public AbstractConstraintSource(ISession session,
                                ConstraintInfo ci)
Method Detail

buildDropStatement

public void buildDropStatement()

buildAddStatement

public void buildAddStatement()

columnNamesAsCSV

protected String columnNamesAsCSV(List<ConstraintColumnInfo> cols)

readConstraintColumnNames

public void readConstraintColumnNames()
                               throws SQLException
Throws:
SQLException

readConstraintColumns

protected List<ConstraintColumnInfo> readConstraintColumns(String schema,
                                                           String constraintName)
                                                    throws SQLException
Throws:
SQLException

buildConstraintClause

public abstract void buildConstraintClause()
                                    throws Exception
Throws:
Exception

getSource

public String getSource()


Copyright © 2001-2010. All Rights Reserved.