|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.UserRecordAPI
public class UserRecordAPI
API for plugins and other utilities to be able to store arbitrary name-value pairs in the database under a keyed object system.
| Method Summary | |
|---|---|
sage.UserRecord |
AddUserRecord(java.lang.String Store,
java.lang.String Key)
Creates a new UserRecord object in the database under the specified data 'Store' and with the specified 'Key'. |
void |
DeleteAllUserRecords(java.lang.String Store)
Deletes the all the UserRecords from the database under the specified Store. |
boolean |
DeleteUserRecord(sage.UserRecord UserRecord)
Deletes the specified UserRecord object from the database. |
sage.UserRecord[] |
GetAllUserRecords(java.lang.String Store)
Gets all existing UserRecord objects that exist under the specified data Store. |
java.lang.String[] |
GetAllUserStores()
Gets all existing Stores that UserRecord objects have been created under in the database. |
sage.UserRecord |
GetUserRecord(java.lang.String Store,
java.lang.String Key)
Gets an existing UserRecord object in the database under the specified data 'Store' and with the specified 'Key'. |
java.lang.String |
GetUserRecordData(sage.UserRecord UserRecord,
java.lang.String Name)
Gets the Value from the specified Name that's stored in the given UserRecord object. |
java.lang.String[] |
GetUserRecordNames(sage.UserRecord UserRecord)
Gets a list of all the 'Name' values used in name->value pairs in this UserRecord object |
boolean |
IsUserRecordObject(java.lang.Object UserRecord)
Returns true if the passed in argument is a UserRecord object |
void |
SetUserRecordData(sage.UserRecord UserRecord,
java.lang.String Name,
java.lang.String Value)
Sets the Value for the specified Name that's stored in the given UserRecord object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public sage.UserRecord AddUserRecord(java.lang.String Store,
java.lang.String Key)
Store - the data store name to add the user record toKey - the unique key to use for indexing this record
public java.lang.String GetUserRecordData(sage.UserRecord UserRecord,
java.lang.String Name)
UserRecord - the UserRecord objectName - the name to retrieve the corresponding value for from the specified UserRecord object, must not be null or the empty String
public void SetUserRecordData(sage.UserRecord UserRecord,
java.lang.String Name,
java.lang.String Value)
UserRecord - the UserRecord objectName - the Name to set the corresponding Value for in the specified UserRecord object, must not be null or the empty StringValue - the Value to set, use null to clear the existing setting for the specified Name
public sage.UserRecord GetUserRecord(java.lang.String Store,
java.lang.String Key)
Store - the data store name to retrieve the UserRecord fromKey - the unique key that was used when creating the UserRecord
public boolean DeleteUserRecord(sage.UserRecord UserRecord)
UserRecord - the UserRecord object to remove from the database
public sage.UserRecord[] GetAllUserRecords(java.lang.String Store)
Store - the data store name to retrieve the UserRecords from
public java.lang.String[] GetAllUserStores()
public void DeleteAllUserRecords(java.lang.String Store)
Store - the Store name that should have all corresponding UserRecords deletedpublic boolean IsUserRecordObject(java.lang.Object UserRecord)
UserRecord - the object to test to see if it is a UserRecord object
public java.lang.String[] GetUserRecordNames(sage.UserRecord UserRecord)
UserRecord - the UserRecord object to get the list of Names stored in
|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||