fr.cnes.sitools.datasource.common
Class SitoolsDataSourceModel

java.lang.Object
  extended by fr.cnes.sitools.datasource.common.SitoolsDataSourceModel
Direct Known Subclasses:
JDBCDataSource, MongoDBDataSource

public abstract class SitoolsDataSourceModel
extends java.lang.Object

Abstract class to factories DataSourceModel attribute

Author:
m.gond

Constructor Summary
SitoolsDataSourceModel()
          Defaut constructor
 
Method Summary
 java.lang.String getDescription()
          Gets the description value
 java.lang.String getDriverClass()
          Gets the driverClass value
 java.lang.String getId()
          Gets the id value
 int getMaxActive()
          Gets the maxActive value
 java.lang.String getName()
          Gets the name value
 java.lang.String getSitoolsAttachementForUsers()
          Gets the sitoolsAttachementForUsers value
 java.lang.String getStatus()
          Gets the status value
 java.lang.String getUrl()
          Gets the URL value
 java.lang.String getUserLogin()
          Gets the userLogin value
 java.lang.String getUserPassword()
          Gets the userPassword value
 void setDescription(java.lang.String description)
          Sets the value of description
 void setDriverClass(java.lang.String driverClass)
          Sets the value of driverClass
 void setId(java.lang.String id)
          Sets the value of id
 void setMaxActive(int maxActive)
          Sets the value of maxActive
 void setName(java.lang.String name)
          Sets the value of name
 void setSitoolsAttachementForUsers(java.lang.String sitoolsAttachementForUsers)
          Sets the value of sitoolsAttachementForUsers
 void setStatus(java.lang.String status)
          Sets the value of status
 void setUrl(java.lang.String url)
          Sets the value of URL
 void setUserLogin(java.lang.String userLogin)
          Sets the value of userLogin
 void setUserPassword(java.lang.String userPassword)
          Sets the value of userPassword
abstract  Resource wrap()
          Utility to wrap the MongoDBDataSource to a generic resource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitoolsDataSourceModel

public SitoolsDataSourceModel()
Defaut constructor

Method Detail

getId

public java.lang.String getId()
Gets the id value

Returns:
the id

setId

public void setId(java.lang.String id)
Sets the value of id

Parameters:
id - the id to set

getName

public java.lang.String getName()
Gets the name value

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the value of name

Parameters:
name - the name to set

getDescription

public java.lang.String getDescription()
Gets the description value

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Sets the value of description

Parameters:
description - the description to set

getStatus

public java.lang.String getStatus()
Gets the status value

Returns:
the status

setStatus

public void setStatus(java.lang.String status)
Sets the value of status

Parameters:
status - the status to set

getUrl

public java.lang.String getUrl()
Gets the URL value

Returns:
the URL

setUrl

public void setUrl(java.lang.String url)
Sets the value of URL

Parameters:
url - the URL to set

getUserLogin

public java.lang.String getUserLogin()
Gets the userLogin value

Returns:
the userLogin

setUserLogin

public void setUserLogin(java.lang.String userLogin)
Sets the value of userLogin

Parameters:
userLogin - the userLogin to set

getUserPassword

public java.lang.String getUserPassword()
Gets the userPassword value

Returns:
the userPassword

setUserPassword

public void setUserPassword(java.lang.String userPassword)
Sets the value of userPassword

Parameters:
userPassword - the userPassword to set

getSitoolsAttachementForUsers

public java.lang.String getSitoolsAttachementForUsers()
Gets the sitoolsAttachementForUsers value

Returns:
the sitoolsAttachementForUsers

setSitoolsAttachementForUsers

public void setSitoolsAttachementForUsers(java.lang.String sitoolsAttachementForUsers)
Sets the value of sitoolsAttachementForUsers

Parameters:
sitoolsAttachementForUsers - the sitoolsAttachementForUsers to set

getMaxActive

public int getMaxActive()
Gets the maxActive value

Returns:
the maxActive

setMaxActive

public void setMaxActive(int maxActive)
Sets the value of maxActive

Parameters:
maxActive - the maxActive to set

wrap

public abstract Resource wrap()
Utility to wrap the MongoDBDataSource to a generic resource

Returns:
Resource

getDriverClass

public java.lang.String getDriverClass()
Gets the driverClass value

Returns:
the driverClass

setDriverClass

public void setDriverClass(java.lang.String driverClass)
Sets the value of driverClass

Parameters:
driverClass - the driverClass to set


Copyright © 2010-2013 CNES. All Rights Reserved.