textmaven.dictionaries
Interface IServer

All Known Subinterfaces:
IDatabaseServer
All Known Implementing Classes:
Server, ServerProxy

public interface IServer

A server represents a process serving a dictionary.

Author:
krebtho

Method Summary
 java.lang.String getDescription()
          Returns server description
 java.lang.String getId()
          Gets the identification string of this instance
 ISQLStatementFactory getStatementFactory()
          Returns a StatementFactory instance for this particular server instance without initializing it.
 ISQLStatementFactory getStatementFactory(java.sql.Connection con, java.lang.String tableName)
          Returns a StatementFactory instance for this particular server instance.
 void setDescription(java.lang.String description)
          Sets description for server.
 void setId(java.lang.String id)
          Sets identification string
 void setStatementFactory(java.lang.String aFactoryClass)
           
 void start()
          Starts the database server.
 void stop()
          Shutdown database server
 

Method Detail

start

public void start()
Starts the database server.


stop

public void stop()
Shutdown database server


setId

public void setId(java.lang.String id)
Sets identification string

Parameters:
id -

getId

public java.lang.String getId()
Gets the identification string of this instance

Returns:
String source identification

setDescription

public void setDescription(java.lang.String description)
Sets description for server.

Parameters:
description -

getDescription

public java.lang.String getDescription()
Returns server description

Returns:
description

getStatementFactory

public ISQLStatementFactory getStatementFactory()
Returns a StatementFactory instance for this particular server instance without initializing it. Before it can be used the init method has to be called. Statements created by this factory will utilize the specified connection and table name.

Returns:
a ISQLStatementFactory

getStatementFactory

public ISQLStatementFactory getStatementFactory(java.sql.Connection con,
                                                java.lang.String tableName)
Returns a StatementFactory instance for this particular server instance. Statements created by this factory will utilize the specified connection and table name.

Parameters:
con - Database connection
tableName - table name to which generated statements will be refer to
Returns:
a ISQLStatementFactory

setStatementFactory

public void setStatementFactory(java.lang.String aFactoryClass)


Copyright © 2002-2005 Sourceforge. All Rights Reserved.