com.ibm.ims.db
Class GSAMRecord
java.lang.Object
|
+--com.ibm.ims.db.GSAMRecord
- public class GSAMRecord
- extends java.lang.Object
Constructor Summary |
GSAMRecord(byte[] ioArea)
Constructs a GSAM Record object. |
GSAMRecord(int ioAreaLength)
Constructs a GSAM Record object. |
Method Summary |
java.lang.String |
getGSAMRecordName()
Sets a reference back to the containing DLIDatabaseView this DLISegment is a part of. |
byte[] |
getIOArea()
Constructs a GSAM Record object. |
int |
getIOAreaLength()
Provides package-level access to DLIBaseSegment.ioAreaLength. |
void |
setIOArea(byte[] record)
Sets the IO area of this GSAM record |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GSAMRecord
public GSAMRecord(int ioAreaLength)
- Constructs a GSAM Record object.
GSAMRecord
public GSAMRecord(byte[] ioArea)
- Constructs a GSAM Record object. By providing the byte array containing
the data as stored in the GSAM database.
- Parameters:
ioArea
- data in the GSAM record
getIOArea
public byte[] getIOArea()
- Constructs a GSAM Record object. By providing an array of DLITypeInfo objects
as an argument, this class knows the field layout of the GSAM record and can
access as well as update each field within the GSAM record.
- Parameters:
gsamRecordName
- user defined name of the GSAM recordtypeInfo
- an array of DLITypeInfo objects, which tells this class
the field layout of the GSAM recordlength
- the length of the I/O area of the GSAM record
public GSAMRecord(String gsamRecordName, DLITypeInfo[] typeInfo, int length) {
// Copy String and Array to remove potential Cross-Heap References
super(new String(gsamRecordName), (DLITypeInfo[])typeInfo.clone(), length);
if (XMLTrace.traceOn) {
XMLTrace.currentTrace().logConstructorEntry(XMLTrace.TRACE_CTOR2, "DLISegment(String, DLITypeInfo[], int)");
// Copy Strings to remove potential Cross-Heap References
XMLTrace.currentTrace().logParm(XMLTrace.TRACE_DATA2, "gsamRecordName", new String(gsamRecordName),
"length", String.valueOf(length));
}
this.gsamRecordName = new String(gsamRecordName);
if (XMLTrace.traceOn) {
XMLTrace.currentTrace().logConstructorExit(XMLTrace.TRACE_CTOR2, "DLISegment(String, DLITypeInfo[], int)");
}
}
/**
Gets the IO area of this GSAM record
setIOArea
public final void setIOArea(byte[] record)
- Sets the IO area of this GSAM record
getGSAMRecordName
public java.lang.String getGSAMRecordName()
- Sets a reference back to the containing DLIDatabaseView this DLISegment is a part of.
void setContainingDatabaseView(DLIDatabaseView databaseView) {
this.databaseView = (DLIDatabaseView)databaseView.clone();
}
/**
Returns the containing DLIDatabaseView this DLISegment is a part of. Returns null if
if this segment has not been added to a DLIDatabaseView.
DLIDatabaseView getContainingDatabaseView() {
return this.databaseView;
}
getIOAreaLength
public final int getIOAreaLength()
- Provides package-level access to DLIBaseSegment.ioAreaLength.
(C) International Business Machines Corporation 2004. All rights reserved.