org.outerj.daisy.install
Class PostgresqlDatabaseSpecifics

java.lang.Object
  extended byorg.outerj.daisy.install.PostgresqlDatabaseSpecifics
All Implemented Interfaces:
DatabaseSpecifics

public class PostgresqlDatabaseSpecifics
extends java.lang.Object
implements DatabaseSpecifics


Constructor Summary
PostgresqlDatabaseSpecifics()
           
 
Method Summary
 void dropAndCreateDatabase(java.lang.String dbUrl, java.lang.String dbName, java.lang.String dbUser, java.lang.String dbPassword)
           
 java.lang.String getCurrentDateTimeFunction()
          Get the database function that returns the current date and time.
 java.io.Reader getDataScript()
           
 java.lang.String getForeignKeyStatement(java.lang.String table, java.lang.String field, java.lang.String otherTable, java.lang.String otherField, java.lang.String constraintName)
           
 java.lang.String[] getPostStatements()
          Returns statements that have to be executed before the script starts running.
 java.lang.String[] getPreStatements()
          Returns statements that have to be executed before the script starts running.
 java.io.Reader getSchemaScript()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgresqlDatabaseSpecifics

public PostgresqlDatabaseSpecifics()
Method Detail

getCurrentDateTimeFunction

public java.lang.String getCurrentDateTimeFunction()
Description copied from interface: DatabaseSpecifics
Get the database function that returns the current date and time.

Specified by:
getCurrentDateTimeFunction in interface DatabaseSpecifics

getPreStatements

public java.lang.String[] getPreStatements()
Description copied from interface: DatabaseSpecifics
Returns statements that have to be executed before the script starts running.

Specified by:
getPreStatements in interface DatabaseSpecifics

getPostStatements

public java.lang.String[] getPostStatements()
Description copied from interface: DatabaseSpecifics
Returns statements that have to be executed before the script starts running.

Specified by:
getPostStatements in interface DatabaseSpecifics

getSchemaScript

public java.io.Reader getSchemaScript()
Specified by:
getSchemaScript in interface DatabaseSpecifics

getDataScript

public java.io.Reader getDataScript()
Specified by:
getDataScript in interface DatabaseSpecifics

dropAndCreateDatabase

public void dropAndCreateDatabase(java.lang.String dbUrl,
                                  java.lang.String dbName,
                                  java.lang.String dbUser,
                                  java.lang.String dbPassword)
                           throws java.sql.SQLException
Specified by:
dropAndCreateDatabase in interface DatabaseSpecifics
Throws:
java.sql.SQLException

getForeignKeyStatement

public java.lang.String getForeignKeyStatement(java.lang.String table,
                                               java.lang.String field,
                                               java.lang.String otherTable,
                                               java.lang.String otherField,
                                               java.lang.String constraintName)
Specified by:
getForeignKeyStatement in interface DatabaseSpecifics


Copyright © -2005 . All Rights Reserved.