org.javagen.agile.db.util
Class DbUtil

java.lang.Object
  extended by org.javagen.agile.db.util.DbUtil

public class DbUtil
extends Object

Create table attributes - mostly for ease of unit testing.

This should ideally go in the test directory, but its left here for reuse by other modules.

Author:
Richard Easterling

Constructor Summary
DbUtil()
           
 
Method Summary
static FkConstraint addFkColumn(Table localTable, String fkName, boolean isFkPk, PkColumn pkColumn, Boolean notNull, Cardinality cardinality)
          This is a convienence method for creating test data.
static FkConstraint createReverse(FkConstraint fkConstraint, boolean wireItUp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbUtil

public DbUtil()
Method Detail

createReverse

public static FkConstraint createReverse(FkConstraint fkConstraint,
                                         boolean wireItUp)

addFkColumn

public static FkConstraint addFkColumn(Table localTable,
                                       String fkName,
                                       boolean isFkPk,
                                       PkColumn pkColumn,
                                       Boolean notNull,
                                       Cardinality cardinality)
This is a convienence method for creating test data. It creates both the local column (pk or fk) and the FK constraints (both imported and exported)



Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.