|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.BitSet
org.datanucleus.store.types.sco.simple.BitSet
public class BitSet
A mutable second-class BitSet object.
| Field Summary | |
|---|---|
protected java.lang.String |
fieldName
|
protected java.lang.Object |
owner
|
protected ObjectProvider |
ownerSM
|
| Constructor Summary | |
|---|---|
BitSet(ObjectProvider ownerSM,
java.lang.String fieldName)
Creates a BitSet object. |
|
| Method Summary | |
|---|---|
void |
and(java.util.BitSet set)
|
void |
andNot(java.util.BitSet set)
|
void |
attachCopy(java.lang.Object value)
Method to attached the passed value. |
void |
clear()
|
void |
clear(int bitIndex)
|
void |
clear(int fromIndex,
int toIndex)
|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.Object |
detachCopy(FetchPlanState state)
Method to detach a copy. |
void |
flip(int bitIndex)
|
void |
flip(int fromIndex,
int toIndex)
|
java.lang.String |
getFieldName()
Accessor for the field name |
java.lang.Object |
getOwner()
Accessor for the owner. |
java.lang.Object |
getValue()
Accessor for the unwrapped value that we are wrapping. |
void |
initialise()
Method to initialise the SCO for use. |
void |
initialise(java.lang.Object o,
boolean forInsert,
boolean forUpdate)
Method to initialise the SCO from an existing value. |
void |
makeDirty()
Utility to mark the object as dirty |
void |
or(java.util.BitSet set)
|
void |
set(int bitIndex)
|
void |
set(int bitIndex,
boolean value)
|
void |
set(int fromIndex,
int toIndex)
|
void |
set(int fromIndex,
int toIndex,
boolean value)
|
void |
unsetOwner()
Utility to unset the owner. |
protected java.lang.Object |
writeReplace()
The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream. |
void |
xor(java.util.BitSet set)
|
| Methods inherited from class java.util.BitSet |
|---|
cardinality, equals, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, size, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient java.lang.Object owner
protected transient ObjectProvider ownerSM
protected transient java.lang.String fieldName
| Constructor Detail |
|---|
public BitSet(ObjectProvider ownerSM,
java.lang.String fieldName)
ownerSM - the owning objectfieldName - the owning field name| Method Detail |
|---|
public void initialise()
initialise in interface SCO
public void initialise(java.lang.Object o,
boolean forInsert,
boolean forUpdate)
initialise in interface SCOo - The ObjectforInsert - Whether the object needs inserting in the datastore with this valueforUpdate - Whether to update the object in the datastore with this valuepublic java.lang.Object getValue()
getValue in interface SCOpublic void unsetOwner()
unsetOwner in interface SCOpublic java.lang.Object getOwner()
getOwner in interface SCOpublic java.lang.String getFieldName()
getFieldName in interface SCOpublic void makeDirty()
public java.lang.Object detachCopy(FetchPlanState state)
detachCopy in interface SCOstate - State for detachment process
public void attachCopy(java.lang.Object value)
attachCopy in interface SCOvalue - The new valuepublic java.lang.Object clone()
Mutable second-class Objects are required to provide a public clone method in order to allow for copying PersistenceCapable objects. In contrast to Object.clone(), this method must not throw a CloneNotSupportedException.
clone in interface SCOclone in class java.util.BitSet
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic void and(java.util.BitSet set)
and in class java.util.BitSetpublic void andNot(java.util.BitSet set)
andNot in class java.util.BitSetpublic void clear(int bitIndex)
clear in class java.util.BitSetpublic void or(java.util.BitSet set)
or in class java.util.BitSetpublic void set(int bitIndex)
set in class java.util.BitSetpublic void xor(java.util.BitSet set)
xor in class java.util.BitSetpublic void clear()
clear in class java.util.BitSet
public void clear(int fromIndex,
int toIndex)
clear in class java.util.BitSet
public void flip(int fromIndex,
int toIndex)
flip in class java.util.BitSetpublic void flip(int bitIndex)
flip in class java.util.BitSet
public void set(int bitIndex,
boolean value)
set in class java.util.BitSet
public void set(int fromIndex,
int toIndex,
boolean value)
set in class java.util.BitSet
public void set(int fromIndex,
int toIndex)
set in class java.util.BitSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||