|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.dsp.das.DataAccessServiceFactory
public class DataAccessServiceFactory
Factory class for creating local interfaces to data services. This factory class can be used to create data services and prepared statements for ad hoc queries.
Example:
Hashtable h = new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
h.put(Context.PROVIDER_URL,"t3://localhost:7001");
h.put(Context.SECURITY_PRINCIPAL,"weblogic");
h.put(Context.SECURITY_CREDENTIALS,"weblogic");
InitialContext ctx= new InitialContext(h);
DataAccessService das = DataAccessServiceFactory.newDataAccessService(ctx,"dataspacename","ld:MyDSes/CUSTOMER");
Method Summary | |
---|---|
static DataAccessService |
newDataAccessService(javax.naming.Context context,
java.lang.String wsdlUrl)
Factory method to create a data access service instance. |
static DataAccessService |
newDataAccessService(javax.naming.Context context,
java.lang.String wsdlUrl,
boolean loadSchemas)
Factory method to create a data access service instance. |
static DataAccessService |
newDataAccessService(javax.naming.Context context,
java.lang.String dataspace,
java.lang.String dsname)
Factory method to create a data access service instance. |
static DataAccessService |
newDataAccessService(javax.naming.Context context,
java.lang.String dataspace,
java.lang.String dsname,
boolean loadSchemas)
Factory method to create a data access service instance. |
static PreparedExpression |
prepareExpression(javax.naming.Context context,
java.lang.String dataspace,
java.lang.String xquery)
Used to create a prepared expression, which is an ad hoc XQuery that can be executed against ALDSP dataspace information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DataAccessService newDataAccessService(javax.naming.Context context, java.lang.String dataspace, java.lang.String dsname) throws DASException
context
- The WebLogic Server contextdataspace
- The ALDSP dataspace namedsname
- The data service URI
DASException
public static DataAccessService newDataAccessService(javax.naming.Context context, java.lang.String dataspace, java.lang.String dsname, boolean loadSchemas) throws DASException
context
- The WebLogic Server contextdataspace
- The ALDSP dataspace namedsname
- The data service URIloadSchemas
- If true, will download all schemas relevant
for this DataAccessService into the SDO HelperContext from the
ALDSP server. If false, no schemas will be downloaded; it is
then the user's responsibility to ensure that the schemas are
loaded.
DASException
public static DataAccessService newDataAccessService(javax.naming.Context context, java.lang.String wsdlUrl) throws DASException
context
- The WebLogic Server ContextwsdlUrl
- The WSDL URL
DASException
public static DataAccessService newDataAccessService(javax.naming.Context context, java.lang.String wsdlUrl, boolean loadSchemas) throws DASException
context
- The WebLogic Server ContextwsdlUrl
- The WSDL URLloadSchemas
- If true, will load all schemas referenced by
the WSDL into the SDO HelperContext for this DataAccessService.
If false, no schemas will be loaded; it is then the user's
responsibility to ensure that the schemas are loaded.
DASException
public static PreparedExpression prepareExpression(javax.naming.Context context, java.lang.String dataspace, java.lang.String xquery) throws DASException
context
- The WebLogic Server contextdataspace
- The dataspace namexquery
- The XQuery to be executed
DASException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |