com.businessobjects.dsws.session
Interface Entry


public interface Entry

The Entry interface represents an entry saved in persistent storage by the Web Service provider.

Example:Retrieve the dictionary entries of the user.

 String endPointURL = "http://localhost:8080/dswsbobje/services/Session";
 com.businessobjects.dsws.Connection con = new Connection(new URL(endPointURL));
 Session objSession = new Session(con);
 EnterpriseCredential ec = EnterpriseCredential.Factory.newInstance();
 ec.setLogin("Administrator");
 ec.setPassword("");
 ec.setAuthType("secEnterprise");
 SessionInfo sessionInfo =  objSession.login(ec);
 Entry[] objEntrys = objSession.getDictionary(DictionaryType.USER);
 for(int i=0;i< objEntrys.length; i++)
 {
         Entry objEntry = objEntrys[i];
         String strName = objEntry.getName();
         Object objValue = objEntry.getValue();
         String strValue = objValue.toString();
         out.print(strName);
   out.print(strValue);
 }
 


Nested Class Summary
static class Entry.Factory
          A class with methods for creating instances of the Entry type.
 
Field Summary
static org.apache.xmlbeans.SchemaType type
          Internal Use Only.
 
Method Summary
 org.apache.xmlbeans.XmlObject addNewValue()
          Appends and returns a new empty Value element.
 java.lang.String getName()
          Returns the entry name.
 org.apache.xmlbeans.XmlObject getValue()
          Returns the entry value.
 boolean isNilValue()
          Checks if the value of the nil Value element is set to Nil.
 void setName(java.lang.String name)
          Sets the Entry name.
 void setNilValue()
          Sets the value of the Value element to Nil.
 void setValue(org.apache.xmlbeans.XmlObject value)
          Sets the Entry value
Note:The entry value will be used as a UNIQUE key ID.
 org.apache.xmlbeans.XmlString xgetName()
          Internal Use Only.
 void xsetName(org.apache.xmlbeans.XmlString name)
          Internal Use Only.
 

Field Detail

type

static final org.apache.xmlbeans.SchemaType type
Internal Use Only.

Method Detail

getValue

org.apache.xmlbeans.XmlObject getValue()
Returns the entry value.

Returns:
a Java object containing the value to be assigned to the Entry.

isNilValue

boolean isNilValue()
Checks if the value of the nil Value element is set to Nil.

Returns:
true if the Value element has been set,otherwise false.

setValue

void setValue(org.apache.xmlbeans.XmlObject value)
Sets the Entry value
Note:The entry value will be used as a UNIQUE key ID.

Parameters:
value - a string containing the entry value.

addNewValue

org.apache.xmlbeans.XmlObject addNewValue()
Appends and returns a new empty Value element.

Returns:
The new Value object.

setNilValue

void setNilValue()
Sets the value of the Value element to Nil.


getName

java.lang.String getName()
Returns the entry name.

Returns:
a String containing the name to be assigned to the Entry.

xgetName

org.apache.xmlbeans.XmlString xgetName()

Internal Use Only.


setName

void setName(java.lang.String name)
Sets the Entry name.
Note:The entry name will be used as a UNIQUE key ID.

Parameters:
name - a String containing the entry name.

xsetName

void xsetName(org.apache.xmlbeans.XmlString name)

Internal Use Only.