LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.sql.access
Class LyAccessConnection

java.lang.Object
  extended by leon.peer.LyConnection
      extended by leon.peer.sql.LySqlConnection
          extended by leon.peer.sql.access.LyAccessConnection

public class LyAccessConnection
extends LySqlConnection

This class is used as a connection for MySql relational database.

See Also:
LySqlConnection

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.peer.sql.LySqlConnection
STATEMENT_TIMEOUT
 
Constructor Summary
LyAccessConnection(LyApplication application, java.lang.String name, javax.sql.DataSource dataSource, java.lang.String databaseName)
          Constructor.
 
Method Summary
 java.util.Properties getProperties()
          To get properties of the connection before opening it.
 boolean open(java.lang.String username, java.lang.String password)
          Open the physical connection to the database.
 boolean open(java.lang.String username, java.lang.String password, java.lang.String driverName)
          Open the physical connection to the database.
 
Methods inherited from class leon.peer.sql.LySqlConnection
autoCommit, close, commit, getConnection, getMetaData, getStatement, handleError, released, rollback, sendQueryRequest, sendQueryRequest, sendUpdateRequest, setStatementTimeout
 
Methods inherited from class leon.peer.LyConnection
addValue, dump, getError, getUID, getValue, isClosed, isReserved, prepareCommit, reserved, setDataProvider, setError, setUID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

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

LyAccessConnection

public LyAccessConnection(LyApplication application,
                          java.lang.String name,
                          javax.sql.DataSource dataSource,
                          java.lang.String databaseName)
Constructor.

Parameters:
application - The application of this connection
name - Name of the connection
dataSource - JDBC DataSource providing the JDBC connection.
databaseName - Name of the database.
Method Detail

getProperties

public java.util.Properties getProperties()
To get properties of the connection before opening it.

Overrides:
getProperties in class LySqlConnection
Returns:
Properties of this connection used to open it.

open

public boolean open(java.lang.String username,
                    java.lang.String password)
Open the physical connection to the database.

Overrides:
open in class LySqlConnection
Parameters:
username - user id.
password - user password.
Returns:
true : connection established, false : connection refused

open

public boolean open(java.lang.String username,
                    java.lang.String password,
                    java.lang.String driverName)
Open the physical connection to the database.

Overrides:
open in class LySqlConnection
Parameters:
username - user id.
password - user password.
driverName - The driver class name.
Returns:
true : connection established, false : connection refused

(c) January 2013 - W4 S.A.

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