|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.fostore.DBClass
Represents a class stored in the database.
This class is public
so that it can be used as a
Streamable
and stored in the database.
Nested Class Summary | |
(package private) class |
DBClass.ClassDetail
A ClassDetail represents a single field or PC superclass of a class that is (or was at one time) stored in the databse. |
Field Summary | |
private CLID |
clid
CLID corresponding to the class. |
private DBClass.ClassDetail[] |
fields
The fields of the class. |
private FOStoreSchemaUID |
fsuid
FSUID corresponding to the class. |
private boolean |
hasProvisionals
Indicates whether the CLIDs of any superclass or field were given as provisional. |
(package private) static org.apache.commons.logging.Log |
logger
Logger |
private java.lang.String |
name
Fully qualified name of the class represented. |
private DBClass.ClassDetail[] |
supers
Lists the class's PersistenceCapable superclasses, from the class to Object. |
Constructor Summary | |
|
DBClass()
|
private |
DBClass(java.lang.String name,
CLID clid,
FOStoreSchemaUID fsuid,
java.io.DataInput in,
FOStoreDatabase db)
Constructor |
Method Summary | |
(package private) static DBClass |
create(java.lang.String name,
CLID clid,
FOStoreSchemaUID fsuid,
java.io.DataInput in,
FOStoreDatabase db)
|
private void |
getClassDetail(DBClass.ClassDetail[] details,
java.io.DataInput in)
Gets the details for as many slots as are in the given array. |
(package private) CLID |
getCLID()
|
(package private) FOStoreSchemaUID |
getFSUID()
|
(package private) java.lang.String |
getName()
|
(package private) OID |
getOID()
|
(package private) boolean |
hasProvisionals()
|
(package private) boolean |
hasSuperclasses()
|
void |
read(java.io.InputStream is)
Initialize this DBClass from the given stream. |
private void |
readClassDetails(DBClass.ClassDetail[] details,
java.io.DataInputStream dis)
Read details from the given input stream. |
private void |
remapCLIDs(DBClass.ClassDetail[] details,
FOStoreDatabase db)
Changes provisional CLIDs to real CLIDs in the given ClassDetails. |
(package private) void |
remapCLIDs(FOStoreDatabase db)
Changes the CLID mapping of this DBClass's fields and PC superclasses in the database as from provisional to real as necessary. |
(package private) void |
setCLID(CLID clid)
|
(package private) void |
setupSubclasses(FOStoreDatabase db)
Sets up subclass relationships between this DBClass and its superclass DBClass instances. |
java.lang.String |
toString()
|
void |
write(java.io.OutputStream os)
Write this DBClass to the given stream. |
private void |
writeClassDetails(DBClass.ClassDetail[] details,
java.io.DataOutputStream dos)
Write the given details of this DBClass to the given stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String name
private CLID clid
private FOStoreSchemaUID fsuid
private DBClass.ClassDetail[] supers
private DBClass.ClassDetail[] fields
private transient boolean hasProvisionals
static final org.apache.commons.logging.Log logger
Constructor Detail |
private DBClass(java.lang.String name, CLID clid, FOStoreSchemaUID fsuid, java.io.DataInput in, FOStoreDatabase db) throws java.io.IOException
public DBClass()
Method Detail |
static DBClass create(java.lang.String name, CLID clid, FOStoreSchemaUID fsuid, java.io.DataInput in, FOStoreDatabase db) throws java.io.IOException
java.io.IOException
ActivateClassRequest.doRequestBody()
private void getClassDetail(DBClass.ClassDetail[] details, java.io.DataInput in) throws java.io.IOException
java.io.IOException
boolean hasProvisionals()
void remapCLIDs(FOStoreDatabase db)
db
- Database in which to find the provisional-to-real mapping.private void remapCLIDs(DBClass.ClassDetail[] details, FOStoreDatabase db)
boolean hasSuperclasses()
void setupSubclasses(FOStoreDatabase db) throws FOStoreDatabaseException
FOStoreDatabaseException
OID getOID()
CLID getCLID()
void setCLID(CLID clid)
java.lang.String getName()
FOStoreSchemaUID getFSUID()
public java.lang.String toString()
public void write(java.io.OutputStream os) throws org.netbeans.mdr.persistence.StorageException
write
in interface org.netbeans.mdr.persistence.Streamable
org.netbeans.mdr.persistence.StorageException
private void writeClassDetails(DBClass.ClassDetail[] details, java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public void read(java.io.InputStream is) throws org.netbeans.mdr.persistence.StorageException
read
in interface org.netbeans.mdr.persistence.Streamable
org.netbeans.mdr.persistence.StorageException
private void readClassDetails(DBClass.ClassDetail[] details, java.io.DataInputStream dis) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |