|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.domain.Array
Field Summary | |
protected int |
mOwnerAttrIndex
|
Constructor Summary | |
protected |
Array()
|
|
Array(ArrayDescriptor,
java.sql.Connection,
byte[])
|
|
Array(ArrayDescriptor,
java.sql.Connection,
java.lang.Object)
|
|
Array(Datum)
|
|
Array(java.lang.Object[])
|
Method Summary | |
void |
domainToBeModified(DomainInterface)
Notification method that this domain calls whenever any of its attribute values are about to be modified. |
boolean |
equals(java.lang.Object)
|
java.lang.Object[] |
getArray()
|
static CustomDatumFactory |
getCustomDatumFactory()
|
java.lang.Object |
getData()
Internal: Applications should not use this method. |
java.lang.Class |
getElemType()
|
protected java.lang.String |
getElemXMLElementTag()
|
java.lang.Object[] |
getInternalArray()
|
DomainOwnerInterface |
getOwner()
Returns the reference to owner of this domain (could be the row that this domain instance belongs to.) |
int |
getOwnerAttributeIndex()
|
java.lang.String |
getRemoteIdString()
|
long |
getSize()
|
Node |
getXMLContentNode(Document)
Creates the XML node in the given XML document for this domain's data. |
static XMLDomainFactory |
getXMLDomainFactory(java.lang.Class)
|
protected java.lang.String |
getXMLElementTag()
|
protected boolean |
isElemXMLCData()
|
void |
loadFromDatabase(Transaction)
|
ResponseValues |
marshal()
|
void |
prepareForDML(java.lang.Object)
Internal: Applications should not use this method. |
java.lang.String |
printXMLDefinition(java.util.Hashtable,
java.io.PrintWriter,
boolean)
Prints the DTD info for this domain in the given print writer. |
protected void |
readAttrsFromXML(Element)
|
void |
saveToDatabase(Transaction)
|
void |
saveToDatabase(Transaction,
java.lang.Object)
Internal: Applications should not use this method. |
void |
setContext(DomainOwnerInterface,
Transaction,
java.lang.Object)
Internal: Applications should not use this method. |
void |
syncClientLob(LobInterface)
Synchronize client-side data from the given lob |
void |
syncServerLob(LobInterface)
Synchronize the streams from an older version of this object so that this version works with the opened streams (if any). |
Datum |
toDatum(OracleConnection)
|
void |
useElementType(java.lang.Class)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int mOwnerAttrIndex
Constructor Detail |
protected Array() throws java.sql.SQLException
public Array(java.lang.Object[])
public Array(ArrayDescriptor, java.sql.Connection, java.lang.Object) throws java.sql.SQLException
public Array(ArrayDescriptor, java.sql.Connection, byte[]) throws java.sql.SQLException
public Array(Datum) throws java.sql.SQLException
Method Detail |
public static CustomDatumFactory getCustomDatumFactory()
public void useElementType(java.lang.Class)
public Datum toDatum(OracleConnection) throws java.sql.SQLException
toDatum
in interface CustomDatum
public java.lang.Object getData()
DomainInterface
Returns the value in the format that is acceptable to the database.
For domain classes based on oracle.sql.*
classes,
this method returns a Datum
object.
For domains based on java.lang
types such as String
,
the value-holder object that is passed to JDBC is returned.
getData
in interface DomainInterface
oracle.jbo.domain.DomainInterface
public void domainToBeModified(DomainInterface)
DomainOwnerInterface
domainToBeModified
in interface DomainOwnerInterface
oracle.jbo.domain.DomainOwnerInterface
d
- the domain being modified.public void setContext(DomainOwnerInterface, Transaction, java.lang.Object)
DomainInterface
setContext
in interface DomainInterface
public java.lang.String getRemoteIdString()
getRemoteIdString
in interface LobInterface
public java.lang.Object[] getArray()
public java.lang.Object[] getInternalArray()
public java.lang.Class getElemType()
public boolean equals(java.lang.Object)
equals
in class java.lang.Object
protected java.lang.String getXMLElementTag()
protected java.lang.String getElemXMLElementTag()
protected boolean isElemXMLCData()
public Node getXMLContentNode(Document)
XMLDomainInterface
getXMLContentNode
in interface XMLDomainInterface
oracle.jbo.domain.XMLDomainInterface
xmlDoc
- name of the XML document in which the node should be created.protected void readAttrsFromXML(Element)
public java.lang.String printXMLDefinition(java.util.Hashtable, java.io.PrintWriter, boolean)
XMLDomainInterface
The allDefs hashtable contains predefined XML definitions and is passed by whatever calls this method.
printXMLDefinition
in interface XMLDomainInterface
oracle.jbo.domain.XMLDomainInterface
allDefs
- a hashtable of predefined XML definitions passed from whatever
calls this method.pw
- print writer into which the defnition is being printed.bContainees
- if true, prints definitions of contained objects.public static XMLDomainFactory getXMLDomainFactory(java.lang.Class)
public void loadFromDatabase(Transaction) throws java.lang.Exception
loadFromDatabase
in interface BlobDomainInterface
oracle.jbo.domain.BlobDomainInterface
transaction
- the DBTransactionImpl
of the current Application Module.public void saveToDatabase(Transaction) throws java.lang.Exception
saveToDatabase
in interface BlobDomainInterface
oracle.jbo.domain.BlobDomainInterface
transaction
- the DBTransactionImpl
instance of the current Application Module.public void saveToDatabase(Transaction, java.lang.Object) throws java.lang.Exception
BlobDomainInterface
Uses the given transaction context to store data back into the database using the LOB-locator which should be set before this method is invoked.
saveToDatabase
in interface BlobDomainInterface
public void prepareForDML(java.lang.Object)
BlobDomainInterface
prepareForDML
in interface BlobDomainInterface
public void syncClientLob(LobInterface)
LobInterface
syncClientLob
in interface LobInterface
public void syncServerLob(LobInterface)
LobInterface
syncServerLob
in interface LobInterface
public DomainOwnerInterface getOwner()
LobInterface
getOwner
in interface LobInterface
public int getOwnerAttributeIndex()
getOwnerAttributeIndex
in interface LobInterface
public long getSize()
getSize
in interface LobInterface
public ResponseValues marshal()
marshal
in interface MarshalledDomain
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |