|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.jndi.JNDIConnector
public class JNDIConnector
Specifies the J2EE DataSource lookup options. This connector is normally used with a login in a J2EE environment to connect to a server's connection pool defined by the DataSource name. The JNDI name that the DataSource is registered under must be specified, this must include any required prefix such as "java:comp/env/", (unless a DataSource object is given). A Context is only required if not running on the server, otheriwse default to a new InitialContext().
Field Summary | |
---|---|
static int |
COMPOSITE_NAME_LOOKUP
|
static int |
COMPOUND_NAME_LOOKUP
|
static int |
STRING_LOOKUP
|
Constructor Summary | |
---|---|
JNDIConnector()
Construct a Connector with no settings. |
|
JNDIConnector(javax.naming.Context context,
java.lang.String name)
Construct a Connector with the datasource name. |
|
JNDIConnector(javax.sql.DataSource dataSource)
Construct a Connector with the datasource object. |
|
JNDIConnector(java.lang.String name)
Construct a Connector with the datasource name. |
Method Summary | |
---|---|
java.lang.String |
getConnectionDetails()
Provide the details of my connection information. |
javax.naming.Context |
getContext()
Return the JNDI Context that can supplied the named DataSource. |
javax.sql.DataSource |
getDataSource()
Return the javax.sql.DataSource. |
int |
getLookupType()
|
java.lang.String |
getName()
Return the name of the DataSource within the JNDI Context. |
void |
setContext(javax.naming.Context context)
Set the JNDI Context that can supply the named DataSource. |
void |
setDataSource(javax.sql.DataSource dataSource)
Set the javax.sql.DataSource. |
void |
setLookupType(int lookupType)
|
void |
setName(java.lang.String name)
Set the name of the DataSource within the JNDI Context. |
java.lang.String |
toString()
Print data source info. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STRING_LOOKUP
public static final int COMPOSITE_NAME_LOOKUP
public static final int COMPOUND_NAME_LOOKUP
Constructor Detail |
---|
public JNDIConnector()
public JNDIConnector(javax.naming.Context context, java.lang.String name) throws ValidationException
ValidationException
public JNDIConnector(java.lang.String name)
public JNDIConnector(javax.sql.DataSource dataSource)
Method Detail |
---|
public javax.naming.Context getContext()
public javax.sql.DataSource getDataSource()
public java.lang.String getName()
public java.lang.String getConnectionDetails()
getConnectionDetails
in interface Connector
public void setContext(javax.naming.Context context)
public void setDataSource(javax.sql.DataSource dataSource)
public void setName(java.lang.String name) throws ValidationException
ValidationException
public void setLookupType(int lookupType)
public int getLookupType()
public java.lang.String toString()
toString
in class java.lang.Object
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |