macaw.system
Class StartupOptions

java.lang.Object
  extended by macaw.system.StartupOptions

public class StartupOptions
extends java.lang.Object


Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
StartupOptions()
           
 
Method Summary
 java.lang.String getDatabaseName()
           
 java.lang.String getDatabaseURI()
           
 java.lang.String getDbDriverName()
           
 java.lang.String getDbPassword()
           
 java.lang.String getDbUser()
           
 int getMaximumNumberOfConnections()
           
 java.lang.String getPort()
           
 java.lang.String getServer()
           
 void processCommandLineArguments(java.lang.String[] arguments)
           
 void setDatabaseName(java.lang.String databaseName)
           
 void setDbDriverName(java.lang.String dbDriverName)
           
 void setDbPassword(java.lang.String dbPassword)
           
 void setDbUser(java.lang.String dbUser)
           
 void setMaximumNumberOfConnections(int maximumNumberOfConnections)
           
 void setPort(java.lang.String port)
           
 void setServer(java.lang.String server)
           
 void setUseDemo(boolean useDemo)
           
 boolean useDemo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartupOptions

public StartupOptions()
Method Detail

processCommandLineArguments

public void processCommandLineArguments(java.lang.String[] arguments)

getDatabaseURI

public java.lang.String getDatabaseURI()

getDbUser

public java.lang.String getDbUser()
Returns:
the dbUser

setDbUser

public void setDbUser(java.lang.String dbUser)
Parameters:
dbUser - the dbUser to set

getDbPassword

public java.lang.String getDbPassword()
Returns:
the dbPassword

setDbPassword

public void setDbPassword(java.lang.String dbPassword)
Parameters:
dbPassword - the dbPassword to set

getServer

public java.lang.String getServer()
Returns:
the server

setServer

public void setServer(java.lang.String server)
Parameters:
server - the server to set

getPort

public java.lang.String getPort()
Returns:
the port

setPort

public void setPort(java.lang.String port)
Parameters:
port - the port to set

useDemo

public boolean useDemo()
Returns:
the useDemo

setUseDemo

public void setUseDemo(boolean useDemo)
Parameters:
useDemo - the useDemo to set

getDatabaseName

public java.lang.String getDatabaseName()
Returns:
the databaseName

setDatabaseName

public void setDatabaseName(java.lang.String databaseName)
Parameters:
databaseName - the databaseName to set

getDbDriverName

public java.lang.String getDbDriverName()
Returns:
the dbDriverName

setDbDriverName

public void setDbDriverName(java.lang.String dbDriverName)
Parameters:
dbDriverName - the dbDriverName to set

getMaximumNumberOfConnections

public int getMaximumNumberOfConnections()
Returns:
the maximumNumberOfConnections

setMaximumNumberOfConnections

public void setMaximumNumberOfConnections(int maximumNumberOfConnections)
Parameters:
maximumNumberOfConnections - the maximumNumberOfConnections to set