Difference between revisions of "PostgreSQL Adapter"

From CDOT Wiki
Jump to: navigation, search
(Phase 3: Test first design)
(Phase 2: Connect to PostgreSQL)
Line 40: Line 40:
 
=== Phase 2: Connect to PostgreSQL===
 
=== Phase 2: Connect to PostgreSQL===
 
* [[PostgreSQL_Adapter-nexj/test-env | Create Test Environment]]
 
* [[PostgreSQL_Adapter-nexj/test-env | Create Test Environment]]
* [[PostgreSQL_Adapter-nexj/test-env/files | Files to Modify]]
+
 
* Files to configure for connection on PostgreSQL properties==
+
{|class="collapsible collapsed" style="border-style:solid;border-width:thin;border-color:black"
 +
!align="left" style="background-color:SteelBlue; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"| '''Files to Configure'''
 +
|-
 +
|
 
: src
 
: src
:: [[ PostgreSQL_Adapter-nexj/Adapter | PostgreSQLAdapter.java ]]  // Extends SQLAdapter.java  - SQL Persistence adapter, responsible for regular data queries (insert, select, delete)
 
:: [[ PostgreSQL_Adapter-nexj/SchemaManger | PostgreSQLSchemaManager.java ]]  // Extends SQLSchemaManager.java - class for reading, creating and upgrading the database schema
 
 
:: system.dstype
 
:: system.dstype
 
:: DatabaseTool.java  // This file calles SQLSchemaMangerFactory.java and creates the connection
 
:: DatabaseTool.java  // This file calles SQLSchemaMangerFactory.java and creates the connection
Line 51: Line 52:
 
:: Driver type and some other properties in JDBCInfo.java
 
:: Driver type and some other properties in JDBCInfo.java
 
:: SQLSchemaManagerFactory.java  // Sets the connection for the particular adapter type
 
:: SQLSchemaManagerFactory.java  // Sets the connection for the particular adapter type
:: [[ PostgreSQL_Adapter-nexj/Upgrade | main.upgrade ]]
 
 
: test
 
: test
 
:: AllTests.java
 
:: AllTests.java
:: [[ PostgreSQL_Adapter-nexj/AdapterTest | PostgreSQLAdapterTest.java ]]]  // Extends SQLAdapterTest.java
 
:: [[ PostgreSQL_Adapter-nexj/SchemaMangerTest | PostgreSQLSchemaManagerTest.java ]]  // Extends SQLSchemaManagerTest.java
 
 
:: default.config  // System resources are being extracted from these 4 XML files
 
:: default.config  // System resources are being extracted from these 4 XML files
 
:: postgresql.connection
 
:: postgresql.connection
 
:: filestorage.connections
 
:: filestorage.connections
 
::filestoragefragment.connections
 
::filestoragefragment.connections
: Script - scripts are being processed through SQLDataTest.java
 
:: postgresql_setup.sql
 
:: TO be cond'
 
  
 
=== Phase 3: Test first design ===
 
=== Phase 3: Test first design ===

Revision as of 10:52, 10 December 2010

PostgreSQL Adapter for NexJ

Project Goal

Develope an adapter to enable NexJ Express model to interact with PostgreSQL database

Current Status

Project Phases

Phase 1: Investigation

  • Get requirements from NexJ (Meeting on Friday Nov 5th)
  • Walk-through the code
  • Familiarization with PostgreSQL

Phase 2: Connect to PostgreSQL