LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.location
Class LySqlLocation

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.LyInfo
          extended by leon.info.location.LyLocation
              extended by leon.info.location.LySqlLocation
All Implemented Interfaces:
java.lang.Cloneable, LyCommentInterface

public class LySqlLocation
extends LyLocation

This class implements a SQL data location.


Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __VERSION
           
static java.lang.String VALUE_SEP
          Default separator used between multiple values.
 
Fields inherited from class leon.info.location.LyLocation
DEFAULT_LOCATION, ID_L_EXTEND, ID_L_INFO, ID_L_UNION
 
Constructor Summary
LySqlLocation(java.lang.String id)
          Constructor.
LySqlLocation(java.lang.String id, java.lang.String javaName, java.lang.String url, java.lang.String driver, java.lang.String user, java.lang.String password, java.lang.String dbName, java.lang.String nbConnection, java.lang.String valueSep, java.lang.String trim, java.lang.String metadata)
          Constructor.
 
Method Summary
 java.lang.String getDbName()
          Accessor to the database name of this location.
 java.lang.String getDriver()
          Accessor to the driver of this location.
 java.lang.String getJavaName()
          Accessor to the base object name of this location May be null.
 java.lang.String getNbConnection()
          Accessor to the number of connection of this location.
 java.lang.String getPassword()
          Accessor to the password of this location.
 java.lang.String getUser()
          Accessor to the user of this location.
 java.lang.String getValueSep()
          Accessor to the value separator of this location.
 java.lang.String isTrim()
          To know if values may be trimmed.
 java.lang.String useMetadata()
          To know if metadata must be used.
 
Methods inherited from class leon.info.location.LyLocation
check, getNotifier, getUrl, isPersistent, setNotifier
 
Methods inherited from class leon.info.LyInfo
getAlias, getApplication, getFile, getId, getInclude, getName, isIncluded, isInternal, isInternal, isLoaded, isLocked, load, setApplication, setFile, toString
 
Methods inherited from class leon.info.LyTag
clone, getCommentsEnd, getCommentsStart, getEnvironment, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface leon.parser.LyCommentInterface
getCommentsEnd, getCommentsStart, setCommentsEnd, setCommentsStart
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values

VALUE_SEP

public static final java.lang.String VALUE_SEP
Default separator used between multiple values.

Constructor Detail

LySqlLocation

public LySqlLocation(java.lang.String id)
Constructor.

Parameters:
id - identifier of the location

LySqlLocation

public LySqlLocation(java.lang.String id,
                     java.lang.String javaName,
                     java.lang.String url,
                     java.lang.String driver,
                     java.lang.String user,
                     java.lang.String password,
                     java.lang.String dbName,
                     java.lang.String nbConnection,
                     java.lang.String valueSep,
                     java.lang.String trim,
                     java.lang.String metadata)
Constructor.

Parameters:
id - identifier of the location
javaName - Name of the java class of the provider. May be null to use default.
url - url of the provider
driver - JDBC driver
user - User name to connect to database
password - User password to connect to database
dbName - Database name
nbConnection - Number of connections
valueSep - Value separator
trim - Trim values or not
metadata - Use database metadata
Method Detail

getDriver

public java.lang.String getDriver()
Accessor to the driver of this location.

Returns:
the driver of this location

getJavaName

public java.lang.String getJavaName()
Accessor to the base object name of this location May be null.

Returns:
the base object name of this location

getUser

public java.lang.String getUser()
Accessor to the user of this location.

Returns:
the user of this location

getPassword

public java.lang.String getPassword()
Accessor to the password of this location.

Returns:
the password of this location

getDbName

public java.lang.String getDbName()
Accessor to the database name of this location.

Returns:
the database name of this location

getNbConnection

public java.lang.String getNbConnection()
Accessor to the number of connection of this location.

Returns:
the number of connection of this location

getValueSep

public java.lang.String getValueSep()
Accessor to the value separator of this location.

Returns:
the value separator of this location

isTrim

public java.lang.String isTrim()
To know if values may be trimmed.

Returns:
true if the values may be trimmed else false.

useMetadata

public java.lang.String useMetadata()
To know if metadata must be used.

Returns:
true if metadata must be used else false.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com