Package com.gigaspaces.entry
Class CompoundSpaceId
java.lang.Object
com.gigaspaces.entry.CompoundSpaceId
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
This Object was created in order to implement GigaSpaces CompoundId logic
Extending this object will result in inherit all the capabilities of CompoundSpaceId
In order to use this, please implement your CompoundId pojo as explained:
use EmbeddedId hibernate annotation on your getter for the compoundId instance in your POJO that holds the conpoundId
use @Embeddable hibernate annotation on your class in order to use this in hivernate
Implement your empty constructor with call to super with the number of values you have in your compoundID
public MyCompoundSpaceId() {
super(2);
}
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequired for ExternalizableCompoundSpaceId(int numOfValues) CompoundSpaceId(Object[] values) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CompoundSpaceIdgetValue(int index) inthashCode()intlength()voidvoidtoString()voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
CompoundSpaceId
public CompoundSpaceId()Required for Externalizable -
CompoundSpaceId
-
CompoundSpaceId
public CompoundSpaceId(int numOfValues)
-
-
Method Details
-
from
-
length
public int length() -
getValue
-
setValue
-
toString
-
equals
-
hashCode
public int hashCode() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-