|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Persistent Class for DbObject
Method Summary | |
void |
delete()
removes all objects for this class and dbClass itself |
java.util.Iterator |
extentIterator()
equal to extentIterator(false) |
java.util.Iterator |
extentIterator(boolean weak)
|
java.lang.String |
getClassName()
|
PainDB |
getDB()
|
java.lang.String |
getFieldName(int n)
|
byte |
getFieldType(int n)
|
int |
getNumberOfFields()
|
int |
getNumberOfObjects()
|
java.io.Serializable |
getOid()
|
int |
pain_getIndexId()
this is optimization method specially produced for PAiN Mud Codebase for performance purpose It use knowledge that index id for the class stays the same whole DbClass instance lifetime (But it couldbe reused after class removal) |
Method Detail |
public PainDB getDB()
public int getNumberOfFields()
public java.lang.String getClassName()
public java.lang.String getFieldName(int n)
n
- number of field
public byte getFieldType(int n)
n
- number of field
class constants
public java.util.Iterator extentIterator(boolean weak)
weak
- ignores class extent modifications (new objects creation, object removal)
during iteration if 'weak' is true.
'weak'==true will lead to ConcurredModificationExcepiton if class extend is changing
during iteration
Weak iterator will see all new objects created during it's traversal
WARN: weakIterator could throw IllegalStateException
if the 'next' object was removed between 'hasNext' and 'next' method call and there is
no more objects to iterate (should call these methods locally in code)
public java.util.Iterator extentIterator()
public int getNumberOfObjects()
public void delete()
public java.io.Serializable getOid()
public int pain_getIndexId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |