public class TypeDesc extends Object implements ITypeDesc
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_SUCH_PROPERTY |
| Constructor and Description |
|---|
TypeDesc()
Default constructor for Externalizable.
|
TypeDesc(String typeName,
String codeBase,
String[] superTypesNames,
PropertyInfo[] properties,
boolean supportsDynamicProperties,
Map<String,SpaceIndex> indexes,
String idPropertyName,
boolean idAutoGenerate,
String defaultPropertyName,
String routingPropertyName,
String fifoGroupingName,
Set<String> fifoGroupingIndexes,
boolean systemType,
FifoSupport fifoMode,
boolean replicable,
boolean supportsOptimisticLocking,
StorageType storageType,
EntryType entryType,
Class<? extends Object> objectClass,
Class<? extends ExternalEntry> externalEntryClass,
Class<? extends SpaceDocument> documentWrapperClass,
String dotnetDocumentWrapperType,
byte dotnetStorageType,
boolean blobstoreEnabled,
String sequenceNumberPropertyName,
TypeQueryExtensions queryExtensionsInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
anyCompoundIndex() |
ITypeDesc |
clone() |
int |
getChecksum() |
String |
getCodeBase() |
List<SpaceIndex> |
getCompoundIndexes() |
String |
getDefaultPropertyName() |
Class<? extends SpaceDocument> |
getDocumentWrapperClass()
Gets the document wrapper class.
|
String |
getDotnetDocumentWrapperTypeName() |
byte |
getDotnetDynamicPropertiesStorageType() |
EntryTypeDesc |
getEntryTypeDesc(EntryType entryType) |
Set<String> |
getFifoGroupingIndexesPaths()
Gets the fifo grouping indexes
|
String |
getFifoGroupingPropertyPath()
Gets the fifo grouping property
|
FifoSupport |
getFifoSupport()
Gets the type's FIFO support.
|
PropertyInfo |
getFixedProperty(int propertyID)
Gets a fixed property by its position.
|
PropertyInfo |
getFixedProperty(String propertyName)
Gets a fixed property by its name.
|
int |
getFixedPropertyPosition(String propertyName)
Gets the position of a fixed property by the specified property name.
|
int |
getIdentifierPropertyId() |
String |
getIdPropertyName()
Gets the ID property name.
|
int |
getIndexedPropertyID(int propertyID) |
Map<String,SpaceIndex> |
getIndexes()
Gets the indexes of the type, mapped by their names.
|
SpaceIndexType |
getIndexType(String indexName) |
ITypeIntrospector |
getIntrospector(EntryType entryType) |
int |
getNumOfFixedProperties()
Gets the number of fixed properties of the type.
|
int |
getNumOfIndexedProperties() |
Class<? extends Object> |
getObjectClass()
Gets the java class which correlates to the type, if available.
|
EntryType |
getObjectType() |
String |
getPrimitivePropertiesWithoutNullValues() |
PropertyInfo[] |
getProperties() |
boolean[] |
getPropertiesIndexTypes() |
String[] |
getPropertiesNames() |
String[] |
getPropertiesTypes() |
TypeQueryExtensions |
getQueryExtensions() |
String[] |
getRestrictSuperClassesNames() |
int |
getRoutingPropertyId() |
String |
getRoutingPropertyName()
Gets the routing property name.
|
int |
getSequenceNumberFixedPropertyID() |
SpaceIdType |
getSpaceIdType() |
StorageType |
getStorageType()
Get the type storage type
|
String[] |
getSuperClassesNames() |
String |
getSuperTypeName()
Gets the super type name
|
String |
getTypeName()
Gets the type name.
|
String |
getTypeSimpleName()
Gets the type simple name.
|
Serializable |
getVersionedSerializable() |
boolean |
hasSequenceNumber() |
boolean |
isAllPropertiesObjectStorageType() |
boolean |
isAutoGenerateId()
Gets the autoGenerateId property
|
boolean |
isAutoGenerateRouting() |
boolean |
isBlobstoreEnabled()
When cache policy is "BLOB_STORE" only the indices + minimal administrative information will
be kept in cache per entry, while the data will be kept as blobs.
|
boolean |
isConcreteType()
Gets if this is a concrete type, i.e representing a concrete class (Pojo).
|
boolean |
isExternalizable() |
boolean |
isFifoDefault() |
boolean |
isFifoSupported() |
boolean |
isInactive() |
boolean |
isReplicable()
Returns true if this type is replicable, false otherwise.
|
boolean |
isSystemType() |
void |
readExternal(ObjectInput in) |
void |
readFromSwap(ObjectInput in) |
boolean |
supports(EntryType entryType) |
boolean |
supportsDynamicProperties()
Returns true if this type supports dynamic properties, false otherwise.
|
boolean |
supportsOptimisticLocking()
Returns true if this type supports optimistic locking, false otherwise.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeToSwap(ObjectOutput out) |
public static final int NO_SUCH_PROPERTY
public TypeDesc()
public TypeDesc(String typeName, String codeBase, String[] superTypesNames, PropertyInfo[] properties, boolean supportsDynamicProperties, Map<String,SpaceIndex> indexes, String idPropertyName, boolean idAutoGenerate, String defaultPropertyName, String routingPropertyName, String fifoGroupingName, Set<String> fifoGroupingIndexes, boolean systemType, FifoSupport fifoMode, boolean replicable, boolean supportsOptimisticLocking, StorageType storageType, EntryType entryType, Class<? extends Object> objectClass, Class<? extends ExternalEntry> externalEntryClass, Class<? extends SpaceDocument> documentWrapperClass, String dotnetDocumentWrapperType, byte dotnetStorageType, boolean blobstoreEnabled, String sequenceNumberPropertyName, TypeQueryExtensions queryExtensionsInfo)
public ITypeDesc clone()
public boolean isInactive()
isInactive in interface ITypeDescpublic String getTypeName()
SpaceTypeDescriptorgetTypeName in interface SpaceTypeDescriptorpublic String getTypeSimpleName()
SpaceTypeDescriptorgetTypeSimpleName in interface SpaceTypeDescriptorpublic Class<? extends Object> getObjectClass()
SpaceTypeDescriptorgetObjectClass in interface SpaceTypeDescriptorpublic Class<? extends SpaceDocument> getDocumentWrapperClass()
SpaceTypeDescriptorSpaceDocument class is returned.getDocumentWrapperClass in interface SpaceTypeDescriptorpublic String getCodeBase()
getCodeBase in interface ITypeDescpublic boolean isExternalizable()
isExternalizable in interface ITypeDescpublic String[] getSuperClassesNames()
getSuperClassesNames in interface ITypeDescpublic String getSuperTypeName()
SpaceTypeDescriptorgetSuperTypeName in interface SpaceTypeDescriptorpublic String[] getRestrictSuperClassesNames()
getRestrictSuperClassesNames in interface ITypeDescpublic PropertyInfo[] getProperties()
getProperties in interface ITypeDescpublic int getNumOfFixedProperties()
SpaceTypeDescriptorgetNumOfFixedProperties in interface ITypeDescgetNumOfFixedProperties in interface SpaceTypeDescriptorpublic PropertyInfo getFixedProperty(int propertyID)
SpaceTypeDescriptorgetFixedProperty in interface ITypeDescgetFixedProperty in interface SpaceTypeDescriptorpropertyID - Position of requested fixed property.public int getFixedPropertyPosition(String propertyName)
SpaceTypeDescriptorgetFixedPropertyPosition in interface SpaceTypeDescriptorpropertyName - Name of property to locate.public PropertyInfo getFixedProperty(String propertyName)
SpaceTypeDescriptorgetFixedProperty in interface SpaceTypeDescriptorpropertyName - Name of requested fixes property.public boolean supportsDynamicProperties()
SpaceTypeDescriptorsupportsDynamicProperties in interface SpaceTypeDescriptorpublic boolean supportsOptimisticLocking()
SpaceTypeDescriptorsupportsOptimisticLocking in interface SpaceTypeDescriptorpublic int getNumOfIndexedProperties()
getNumOfIndexedProperties in interface ITypeDescpublic int getIndexedPropertyID(int propertyID)
getIndexedPropertyID in interface ITypeDescpublic int getIdentifierPropertyId()
getIdentifierPropertyId in interface ITypeDescpublic String getIdPropertyName()
SpaceTypeDescriptorgetIdPropertyName in interface SpaceTypeDescriptorpublic SpaceIdType getSpaceIdType()
getSpaceIdType in interface ITypeDescpublic boolean isAutoGenerateId()
SpaceTypeDescriptorisAutoGenerateId in interface ITypeDescisAutoGenerateId in interface SpaceTypeDescriptorpublic boolean isAutoGenerateRouting()
isAutoGenerateRouting in interface ITypeDescpublic int getRoutingPropertyId()
getRoutingPropertyId in interface ITypeDescpublic String getRoutingPropertyName()
SpaceTypeDescriptorgetRoutingPropertyName in interface SpaceTypeDescriptorpublic String getDefaultPropertyName()
getDefaultPropertyName in interface ITypeDescpublic boolean isFifoSupported()
isFifoSupported in interface ITypeDescpublic boolean isFifoDefault()
isFifoDefault in interface ITypeDescpublic FifoSupport getFifoSupport()
SpaceTypeDescriptorgetFifoSupport in interface SpaceTypeDescriptorFifoSupportpublic boolean isSystemType()
isSystemType in interface ITypeDescpublic boolean isReplicable()
SpaceTypeDescriptorisReplicable in interface SpaceTypeDescriptorpublic boolean isBlobstoreEnabled()
SpaceTypeDescriptorisBlobstoreEnabled in interface SpaceTypeDescriptorpublic EntryType getObjectType()
getObjectType in interface ITypeDescpublic String[] getPropertiesNames()
getPropertiesNames in interface SpaceTypeDescriptorpublic String[] getPropertiesTypes()
getPropertiesTypes in interface SpaceTypeDescriptorpublic boolean[] getPropertiesIndexTypes()
getPropertiesIndexTypes in interface SpaceTypeDescriptorpublic int getChecksum()
getChecksum in interface ITypeDescpublic boolean isConcreteType()
SpaceTypeDescriptorisConcreteType in interface SpaceTypeDescriptorpublic EntryTypeDesc getEntryTypeDesc(EntryType entryType)
getEntryTypeDesc in interface ITypeDescpublic ITypeIntrospector getIntrospector(EntryType entryType)
getIntrospector in interface ITypeDescpublic Map<String,SpaceIndex> getIndexes()
SpaceTypeDescriptorgetIndexes in interface ITypeDescgetIndexes in interface SpaceTypeDescriptorSpaceIndexpublic TypeQueryExtensions getQueryExtensions()
getQueryExtensions in interface SpaceTypeDescriptorpublic SpaceIndexType getIndexType(String indexName)
getIndexType in interface ITypeDescpublic byte getDotnetDynamicPropertiesStorageType()
getDotnetDynamicPropertiesStorageType in interface IDotnetTypeDescDetailspublic String getDotnetDocumentWrapperTypeName()
getDotnetDocumentWrapperTypeName in interface IDotnetTypeDescDetailspublic String getPrimitivePropertiesWithoutNullValues()
getPrimitivePropertiesWithoutNullValues in interface ITypeDescpublic boolean hasSequenceNumber()
hasSequenceNumber in interface SpaceTypeDescriptorpublic int getSequenceNumberFixedPropertyID()
getSequenceNumberFixedPropertyID in interface SpaceTypeDescriptorpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void readFromSwap(ObjectInput in) throws IOException, ClassNotFoundException
readFromSwap in interface ISwapExternalizableIOExceptionClassNotFoundExceptionpublic boolean isAllPropertiesObjectStorageType()
isAllPropertiesObjectStorageType in interface ITypeDescpublic StorageType getStorageType()
SpaceTypeDescriptorgetStorageType in interface SpaceTypeDescriptorpublic String getFifoGroupingPropertyPath()
SpaceTypeDescriptorgetFifoGroupingPropertyPath in interface SpaceTypeDescriptorpublic Set<String> getFifoGroupingIndexesPaths()
SpaceTypeDescriptorgetFifoGroupingIndexesPaths in interface SpaceTypeDescriptorpublic List<SpaceIndex> getCompoundIndexes()
getCompoundIndexes in interface ITypeDescpublic boolean anyCompoundIndex()
anyCompoundIndex in interface ITypeDescpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void writeToSwap(ObjectOutput out) throws IOException
writeToSwap in interface ISwapExternalizableIOExceptionpublic Serializable getVersionedSerializable()
getVersionedSerializable in interface ITypeDescCopyright © GigaSpaces.