fr.cnes.sitools.datasource.mongodb.model
Class MongoDBDataSource

java.lang.Object
  extended by fr.cnes.sitools.datasource.common.SitoolsDataSourceModel
      extended by fr.cnes.sitools.datasource.mongodb.model.MongoDBDataSource
All Implemented Interfaces:
IResource, java.io.Serializable

public final class MongoDBDataSource
extends SitoolsDataSourceModel
implements java.io.Serializable, IResource

Class for definition of a MongoDB data source

Author:
m.gond (AKKA Technologies)
See Also:
Serialized Form

Constructor Summary
MongoDBDataSource()
          Default constructor
 
Method Summary
 java.lang.String getDatabaseName()
          Gets the databaseName value
 java.lang.Integer getPortNumber()
          Gets the portNumber value
 boolean isAuthentication()
          Gets the authentication value
 void setAuthentication(boolean authentication)
          Sets the value of authentication
 void setDatabaseName(java.lang.String databaseName)
          Sets the value of databaseName
 void setPortNumber(java.lang.Integer portNumber)
          Sets the value of portNumber
 Resource wrap()
          Utility to wrap the MongoDBDataSource to a generic resource
 
Methods inherited from class fr.cnes.sitools.datasource.common.SitoolsDataSourceModel
getDescription, getDriverClass, getId, getMaxActive, getName, getSitoolsAttachementForUsers, getStatus, getUrl, getUserLogin, getUserPassword, setDescription, setDriverClass, setId, setMaxActive, setName, setSitoolsAttachementForUsers, setStatus, setUrl, setUserLogin, setUserPassword
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.cnes.sitools.common.model.IResource
getDescription, getId, getName, setId
 

Constructor Detail

MongoDBDataSource

public MongoDBDataSource()
Default constructor

Method Detail

getDatabaseName

public java.lang.String getDatabaseName()
Gets the databaseName value

Returns:
the databaseName

setDatabaseName

public void setDatabaseName(java.lang.String databaseName)
Sets the value of databaseName

Parameters:
databaseName - the databaseName to set

getPortNumber

public java.lang.Integer getPortNumber()
Gets the portNumber value

Returns:
the portNumber

setPortNumber

public void setPortNumber(java.lang.Integer portNumber)
Sets the value of portNumber

Parameters:
portNumber - the portNumber to set

isAuthentication

public boolean isAuthentication()
Gets the authentication value

Returns:
the authentication

setAuthentication

public void setAuthentication(boolean authentication)
Sets the value of authentication

Parameters:
authentication - the authentication to set

wrap

public Resource wrap()
Description copied from class: SitoolsDataSourceModel
Utility to wrap the MongoDBDataSource to a generic resource

Specified by:
wrap in class SitoolsDataSourceModel
Returns:
Resource


Copyright © 2010-2013 CNES. All Rights Reserved.