public class BitSet extends BitSet implements SCO<BitSet>
Modifier and Type | Field and Description |
---|---|
protected AbstractMemberMetaData |
ownerMmd |
protected ObjectProvider |
ownerOP |
Constructor and Description |
---|
BitSet(ObjectProvider op,
AbstractMemberMetaData mmd)
Creates a BitSet object.
|
Modifier and Type | Method and Description |
---|---|
void |
and(BitSet set) |
void |
andNot(BitSet set) |
void |
attachCopy(BitSet value)
Method to attached the passed value.
|
void |
clear() |
void |
clear(int bitIndex) |
void |
clear(int fromIndex,
int toIndex) |
Object |
clone()
Creates and returns a copy of this object.
|
BitSet |
detachCopy(FetchPlanState state)
Method to detach a copy.
|
void |
flip(int bitIndex) |
void |
flip(int fromIndex,
int toIndex) |
String |
getFieldName()
Accessor for the field name
|
Object |
getOwner()
Accessor for the owner.
|
BitSet |
getValue()
Accessor for the unwrapped value that we are wrapping.
|
void |
initialise()
Method to initialise the SCO for use, and allowing the SCO to be loaded from the datastore (when we have a backing store).
|
void |
initialise(BitSet set)
Method to initialise the SCO for use with the provided initial value.
|
void |
initialise(BitSet newValue,
Object oldValue)
Method to initialise the SCO for use, where replacing an old value with a new value such as when calling a setter field
passing in a new value.
|
void |
makeDirty()
Utility to mark the object as dirty
|
void |
or(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 Object |
writeReplace()
The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream.
|
void |
xor(BitSet set) |
cardinality, equals, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, previousClearBit, previousSetBit, size, stream, toByteArray, toLongArray, toString, valueOf, valueOf, valueOf, valueOf
protected transient ObjectProvider ownerOP
protected transient AbstractMemberMetaData ownerMmd
public BitSet(ObjectProvider op, AbstractMemberMetaData mmd)
op
- ObjectProvider for the owning objectmmd
- Metadata for the memberpublic void initialise()
SCO
initialise
in interface SCO<BitSet>
public void initialise(BitSet newValue, Object oldValue)
SCO
initialise
in interface SCO<BitSet>
newValue
- New value (to wrap)oldValue
- Old value (to use in deciding what needs deleting etc)public void initialise(BitSet set)
SCO
initialise
in interface SCO<BitSet>
set
- the object from which to copy the value.public BitSet getValue()
public void unsetOwner()
unsetOwner
in interface SCO<BitSet>
public Object getOwner()
public String getFieldName()
getFieldName
in interface SCO<BitSet>
public void makeDirty()
public BitSet detachCopy(FetchPlanState state)
detachCopy
in interface SCO<BitSet>
state
- State for detachment processpublic void attachCopy(BitSet value)
attachCopy
in interface SCO<BitSet>
value
- The new valuepublic Object clone()
Mutable second-class Objects are required to provide a public clone method in order to allow for copying persistable objects. In contrast to Object.clone(), this method must not throw a CloneNotSupportedException.
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
- if an error occursCopyright © 2018. All rights reserved.