|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.peer.LyDataProvider
leon.peer.LyPeerDataProvider
leon.peer.util.LyTableDataProvider
leon.peer.sql.LySqlDataProvider
public class LySqlDataProvider
This class is used by DataSources to transmit their requests to an instance of SqlRequestEncoder.
LyDataProvider
,
LySqlRequestEncoder
,
LySqlConnection
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.lang.String |
DATASOURCE_NAME
Constant for datasource name parameter in the property file. |
Constructor Summary | |
---|---|
LySqlDataProvider(LyApplication application,
LyLocation location)
Default constructor. |
Method Summary | |
---|---|
void |
addSpecificEncoder(LyField field,
LySqlSpecificEncoder encoder)
Register a specific encoder for the given field. |
boolean |
endValidate()
This method is used to build all the class peers for all the classInfo. |
LyJoinRequestEncoder |
getJoinRequestEncoder(LyDataSource dataSource)
Create a specific join request encoder for the specified dataSource. |
LyRequestEncoder |
getRequestEncoder(LyDataSource dataSource)
Create a specific request encoder for the specified dataSource. |
java.util.ArrayList<java.lang.String> |
getTableNames()
Access data provider, only to get table names |
boolean |
isXASupported()
Tests if this data provider supports the XA protocol or not. |
void |
setLocation(LyLocation location)
Sets location on this provider. |
void |
setTrim(boolean trim)
Modifier of the trim member. |
java.lang.Object |
writeMetaData()
This method is use for get LyMetadataInformations. |
java.lang.Object |
writeMetaData(java.util.List<java.lang.String> tableNames)
This method is use for get LyMetadataInformations. |
Methods inherited from class leon.peer.LyPeerDataProvider |
---|
getPeerClass, invalidate, load, resetPeerClasses, validate, validate, validateNotifier |
Methods inherited from class leon.peer.LyDataProvider |
---|
canBeFullyLoaded, close, dumpConnections, getApplication, getConnection, getEnvironment, getEventNotifier, getId, getLocation, getNbAvailableConnection, getNbConnection, hasLostConnection, isConnectionReady, isModified, isModified, isNotifierReady, releaseConnection, save, setEventNotifier, setModified, setNbConnection, sleep, validate, wakeUp |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String DATASOURCE_NAME
Constructor Detail |
---|
public LySqlDataProvider(LyApplication application, LyLocation location)
application
- the application of this provider.location
- the info location defining this provider.Method Detail |
---|
public void setLocation(LyLocation location)
setLocation
in class LyDataProvider
location
- New location for the provider.public void setTrim(boolean trim)
trim
- true to trim all values provided by the database, false otherwise.public boolean endValidate()
LyEventNotifier.validate(leon.info.LyInfoList)
public LyRequestEncoder getRequestEncoder(LyDataSource dataSource)
getRequestEncoder
in class LyDataProvider
dataSource
- reference to the dataSource associated to this request encoder.
public LyJoinRequestEncoder getJoinRequestEncoder(LyDataSource dataSource)
getJoinRequestEncoder
in interface LyJoinDataProvider
dataSource
- reference to the dataSource associated to this request encoder.
public java.util.ArrayList<java.lang.String> getTableNames()
metaData
- metaData for the current database
public java.lang.Object writeMetaData()
public java.lang.Object writeMetaData(java.util.List<java.lang.String> tableNames)
tableNames
- Names of the tables to discover
public void addSpecificEncoder(LyField field, LySqlSpecificEncoder encoder)
field
- The field for which the encoder is registered.encoder
- The specific encoder to register.public boolean isXASupported()
isXASupported
in class LyDataProvider
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |