Server

Server

The Server is the enterprise level view for JGenerator.

The Server can contain several Databases and can be used to represent an enterprise-wide set of databases, not necessarily on one server.

Server Validation

The validation method calls the validation() method on all the databases.


Comments

A comment can be added to the server, this is set using the following syntax: -

comment=<comment>

For example: -

comment=This is a comment for the server.

 

 

Copyright

A copyright can be added to the server, this is set using the following syntax: -

copyright=<copyright>

For example: -

copyright=(c) Javelin Software all Right Reserved

 

Author

An author can be added to the server, this is set using the following syntax: -

author=<author>

For example: -

author=Robin Sharp

 

 
 

Writing Servers

The code fragment below shows how to write out a comma separated list of database names:-

for( int index = 0; index < server.getDatabaseCount(); index++ )
{
    writer.println( server.getDatabase( index ).getDatabaseName() );
    if( index == server.getDatabaseCount()-1 ) writer.print( "," );
    else writer.println();
}