|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.domain.Struct
Field Summary | |
protected XMLDomainFactory[] |
mAttrXmlFac
|
protected java.lang.Object |
mConnection
|
protected com.sun.java.util.collections.HashMap |
mContext
|
protected java.lang.Object |
mData
|
protected int |
mOwnerAttrIndex
|
protected Transaction |
mTxn
|
protected XMLDomainFactory |
mXmlFac
|
Constructor Summary | |
protected |
Struct()
|
protected |
Struct(Datum)
|
Method Summary | |
int[] |
buildAttrSQLTypes()
|
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)
|
static void |
fillObjectAttributeDefs(AttributeList,
StructureDef,
java.lang.String[],
AttributeDef[])
|
abstract CustomDatumFactory[] |
getAttrCustomDatumFactories()
|
java.lang.Object |
getAttribute(int)
Selects the attribute at the given index. |
java.lang.Object |
getAttribute(java.lang.String)
Selects the attribute with the given name. |
int |
getAttributeCount()
Counts the number of attributes. |
int |
getAttributeIndexOf(java.lang.String)
Find the index of the named attribute. |
java.lang.String[] |
getAttributeNames()
|
java.lang.Object[] |
getAttributeValues()
|
abstract int[] |
getAttrSQLTypes()
|
protected java.lang.String |
getAttrXMLElementTag(AttributeDef)
|
abstract java.lang.String |
getColumnType()
|
java.lang.Object |
getData()
Internal: Applications should not use this method. |
DomainOwnerInterface |
getOwner()
Returns the reference to owner of this domain (could be the row that this domain instance belongs to.) |
int |
getOwnerAttributeIndex()
|
protected DomainOwnerInterface |
getOwnerRow()
|
java.lang.String |
getRemoteIdString()
|
long |
getSize()
|
static java.lang.Object |
getStructAttribute(AttributeList,
StructureDef,
java.lang.String)
|
abstract StructureDef |
getStructureDef()
|
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()
|
int |
hashCode()
|
protected void |
initAttrXMLDomainFactories(AttributeDef[])
|
protected abstract void |
initStructureDef()
|
protected boolean |
isAttrXMLCData(AttributeDef)
|
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 |
setAttribute(int,
java.lang.Object)
Sets the value of an attribute. |
void |
setAttribute(java.lang.String,
java.lang.Object)
Set the value for the named attribute. |
void |
setAttributeNoCheck(int,
java.lang.Object)
|
void |
setContext(DomainOwnerInterface,
Transaction,
java.lang.Object)
Internal: Applications should not use this method. |
static void |
setStructAttribute(AttributeList,
StructureDef,
java.lang.String,
java.lang.Object)
|
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)
|
Datum |
toDatum(OracleConnection)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Object mData
protected java.lang.Object mConnection
protected Transaction mTxn
protected com.sun.java.util.collections.HashMap mContext
protected int mOwnerAttrIndex
protected XMLDomainFactory mXmlFac
protected XMLDomainFactory[] mAttrXmlFac
Constructor Detail |
protected Struct() throws java.sql.SQLException
protected Struct(Datum) throws java.sql.SQLException
Method Detail |
public abstract java.lang.String getColumnType()
public abstract StructureDef getStructureDef()
public abstract int[] getAttrSQLTypes()
public abstract CustomDatumFactory[] getAttrCustomDatumFactories()
protected abstract void initStructureDef()
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 boolean equals(java.lang.Object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Datum toDatum(OracleConnection) throws java.sql.SQLException
toDatum
in interface CustomDatum
public Datum toDatum(OracleConnection) throws java.sql.SQLException
public java.lang.Object getAttribute(int)
AttributeList
getAttribute
in interface AttributeList
oracle.jbo.AttributeList
index
- an integer in the range 0
to getAttributeCount() - 1
.index
.public java.lang.Object getAttribute(java.lang.String)
AttributeList
getAttribute
in interface AttributeList
oracle.jbo.AttributeList
name
- an attribute name.name
.JboException
,
- a runtime exception,
if name
is unknown.public void setAttribute(int, java.lang.Object)
AttributeList
setAttribute
in interface AttributeList
oracle.jbo.AttributeList
index
- the attribute's index.value
- the value to be assigned to the attribute.public java.lang.String getRemoteIdString()
getRemoteIdString
in interface LobInterface
public void setAttributeNoCheck(int, java.lang.Object)
public void setAttribute(java.lang.String, java.lang.Object)
AttributeList
setAttribute
in interface AttributeList
oracle.jbo.AttributeList
name
- the attribute's name.value
- the value to be assigned to the attribute.JboException
,
- a runtime exception, i
if name
is unknown.public int getAttributeCount()
AttributeList
getAttributeCount
in interface AttributeList
oracle.jbo.AttributeList
public int getAttributeIndexOf(java.lang.String)
AttributeList
getAttributeIndexOf
in interface AttributeList
oracle.jbo.AttributeList
name
- the attribute's name.0
to getAttributeCount()
- 1.JboException
,
- a runtime exception,
if name
is unknown.public int[] buildAttrSQLTypes()
public ResponseValues marshal()
marshal
in interface MarshalledDomain
protected java.lang.String getXMLElementTag()
protected java.lang.String getAttrXMLElementTag(AttributeDef)
protected boolean isAttrXMLCData(AttributeDef)
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)
protected void initAttrXMLDomainFactories(AttributeDef[])
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
protected DomainOwnerInterface getOwnerRow()
public long getSize()
getSize
in interface LobInterface
public static void setStructAttribute(AttributeList, StructureDef, java.lang.String, java.lang.Object)
public static java.lang.Object getStructAttribute(AttributeList, StructureDef, java.lang.String)
public static void fillObjectAttributeDefs(AttributeList, StructureDef, java.lang.String[], AttributeDef[])
public java.lang.String[] getAttributeNames()
getAttributeNames
in interface AttributeList
public java.lang.Object[] getAttributeValues()
getAttributeValues
in interface AttributeList
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |