|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implemented by domain classes, instances of which could be an attribute of a oracle.jbo.Key
This interface is used by Key serialization to come up with a string representation of the key that is of a reasonable length. By default the key uses java-serialization to convert an attribute value into bytearray. But that ends up creating a large string, which gets unmanageable when Web/HTML/JSP UIs have to display the key/use the key in URLs. The intent here is to get a shorter but meaningful String representation of this object.
Note that another requirement of this interface is that the domain class should have a public default constructor, so that the framework can call Class.newInstance() to create an instance of this domain class and set the byte array from a key into this instance using setBytes method.
Key
Method Summary | |
byte[] |
getBytes()
Converts this attribute value into a byte-array. |
void |
setBytes(byte[] bArr)
Passes in the bytes that represent the value of this object. |
Method Detail |
public byte[] getBytes()
public void setBytes(byte[] bArr)
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.