org.aris.hldb.servers
Interface DBServerI

All Known Implementing Classes:
SqlServer

public interface DBServerI

All stored procedure creator classes should implement this interface

Version:
1.0
Author:
Konstantine Kougios

Method Summary
 void CreateStoredProcedure(java.lang.String key, java.lang.String sql, java.util.Stack params, int paramcount)
          This is the stored procedure creator.
 void spCreator(ConnectionProviderI hlcon)
          This is called before the CreateStoredProcedure() is called, in order for the CreateStoredProcedure() to use the hlCon connection to the database.
 

Method Detail

spCreator

void spCreator(ConnectionProviderI hlcon)
This is called before the CreateStoredProcedure() is called, in order for the CreateStoredProcedure() to use the hlCon connection to the database.

Parameters:
hlcon - The connection to the database.

CreateStoredProcedure

void CreateStoredProcedure(java.lang.String key,
                           java.lang.String sql,
                           java.util.Stack params,
                           int paramcount)
                           throws java.sql.SQLException
This is the stored procedure creator. Implement this in a new class in order to extend the library, so that it supports more databases.

Parameters:
key - The key for this stored procedure.
sql - The sql string of this stored procedure.
params - A stack with the parameters for this stored procedure. Use it to generate the SP's headers etc.
paramcount - The count of the parameters.
Throws:
java.sql.SQLException - -