public class DatabaseApplicationPreferences extends UnicastRemoteObject implements RemoteApplicationPreferences
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_NAME |
protected String |
entityName
Preference's entity name.
|
static String |
ID |
protected String |
idCol
Table column name of the IDs.
|
protected Object |
idValule
Value of the ID column.
|
protected EntityReferenceLocator |
locator |
static String |
PREFERENCE_NAME |
static String |
PREFERENCE_VALUE |
protected String |
prefNameCol
Table column name of the Preference Names.
|
protected String |
prefValueCol
Table column name of the Preference Values.
|
static String |
USE_PRIVILEGED_ID |
protected boolean |
usePrivilegedId |
static String |
USER |
protected String |
userNameCol
Table column name of the Users.
|
refKEY_USER_PREFERENCE| Constructor and Description |
|---|
DatabaseApplicationPreferences(int port,
Hashtable param,
EntityReferenceLocator locator)
Constructs a new DatabaseApplicationPreferences.
|
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntityReference(String entityName) |
String |
getRemotePreference(int sessionId,
String user,
String preferenceName)
Method to get the preferences remotely.
|
void |
loadRemotePreferences(int sessionId)
Method to load the preferences from the preferences file remotely.
|
void |
saveRemotePreferences(int sessionId)
Method to save the preferences stored into the buffer to the preferences
file remotely.
|
void |
setRemotePreference(int sessionId,
String user,
String preferenceName,
String value)
Method to set the preferences remotely.
|
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic static final String ID
public static final String USER
public static final String PREFERENCE_NAME
public static final String PREFERENCE_VALUE
public static final String ENTITY_NAME
public static final String USE_PRIVILEGED_ID
protected EntityReferenceLocator locator
protected String entityName
protected String idCol
protected String userNameCol
protected String prefNameCol
protected String prefValueCol
protected Object idValule
protected boolean usePrivilegedId
public DatabaseApplicationPreferences(int port,
Hashtable param,
EntityReferenceLocator locator)
throws RemoteException
port - The port.param - Hashtable with the parameterslocator - The locator.
| attribute | meaning |
| PreferenceId | The column name that contains the ID of the table |
| User | The column name with that contains name of the users |
| PreferenceName | The column name with that contains name of the preference |
| PreferenceValue | The column name that contains the value of the preference |
| EntityName | The name of the Entity of the preferences |
RemoteExceptionpublic Entity getEntityReference(String entityName) throws Exception
Exceptionpublic String getRemotePreference(int sessionId, String user, String preferenceName) throws Exception
RemoteApplicationPreferencesgetRemotePreference in interface RemoteApplicationPreferencessessionId - The session ID.user - String with the user.preferenceName - String with the preference name.String with the preferences.Exceptionpublic void setRemotePreference(int sessionId,
String user,
String preferenceName,
String value)
throws Exception
RemoteApplicationPreferencessetRemotePreference in interface RemoteApplicationPreferencessessionId - The session ID.user - String with the user.preferenceName - String with the preference name.value - String with the preference value.Exceptionpublic void loadRemotePreferences(int sessionId)
throws Exception
RemoteApplicationPreferencesloadRemotePreferences in interface RemoteApplicationPreferencessessionId - The session ID.Exceptionpublic void saveRemotePreferences(int sessionId)
throws Exception
RemoteApplicationPreferencessaveRemotePreferences in interface RemoteApplicationPreferencessessionId - The session ID.ExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.