|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.security.InfoStore
This class represents an information store. An information store designates which data source is used for the associated user.
In addition to the data source, the info store also holds the database user and password when making a database connection. This information is ONLY required when using the J2EE RI 1.2.x application server and is otherwise ignored.
User.getInfoStore()
,
User.setInfoStore(InfoStore)
, Serialized FormMethod Summary | |
java.lang.String |
getDataSource()
Gets the data source. |
java.lang.String |
getDbPassword()
Gets the database user's password. |
java.lang.String |
getDbUser()
Gets the database user. |
static InfoStore |
getDefault()
Gets the default info store. |
static InfoStore |
getInfoStore(java.lang.String sDataSource)
Gets an info store with the specified data source. |
static InfoStore |
getInfoStore(java.lang.String sDataSource,
java.lang.String sDbUser,
java.lang.String sDbPassword)
Gets an info store with the specified data source, user and password. |
java.lang.String |
toString()
Returns a string representation of this user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static InfoStore getDefault()
public static InfoStore getInfoStore(java.lang.String sDataSource)
sDataSource
- the data source (may not be null
)public static InfoStore getInfoStore(java.lang.String sDataSource, java.lang.String sDbUser, java.lang.String sDbPassword)
sDataSource
- the data source (may not be null
)sDbUser
- the database user on whose behalf the connection will be made (J2EE RI 1.2.x only)sDbPassword
- the database user's password (J2EE RI 1.2.x only)public java.lang.String getDataSource()
public java.lang.String getDbUser()
null
if not setpublic java.lang.String getDbPassword()
null
if not setpublic java.lang.String toString()
toString
in class java.lang.Object
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |