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 ITypeDesc
public String getTypeName()
SpaceTypeDescriptor
getTypeName
in interface SpaceTypeDescriptor
public String getTypeSimpleName()
SpaceTypeDescriptor
getTypeSimpleName
in interface SpaceTypeDescriptor
public Class<? extends Object> getObjectClass()
SpaceTypeDescriptor
getObjectClass
in interface SpaceTypeDescriptor
public Class<? extends SpaceDocument> getDocumentWrapperClass()
SpaceTypeDescriptor
SpaceDocument
class is returned.getDocumentWrapperClass
in interface SpaceTypeDescriptor
public String getCodeBase()
getCodeBase
in interface ITypeDesc
public boolean isExternalizable()
isExternalizable
in interface ITypeDesc
public String[] getSuperClassesNames()
getSuperClassesNames
in interface ITypeDesc
public String getSuperTypeName()
SpaceTypeDescriptor
getSuperTypeName
in interface SpaceTypeDescriptor
public String[] getRestrictSuperClassesNames()
getRestrictSuperClassesNames
in interface ITypeDesc
public PropertyInfo[] getProperties()
getProperties
in interface ITypeDesc
public int getNumOfFixedProperties()
SpaceTypeDescriptor
getNumOfFixedProperties
in interface ITypeDesc
getNumOfFixedProperties
in interface SpaceTypeDescriptor
public PropertyInfo getFixedProperty(int propertyID)
SpaceTypeDescriptor
getFixedProperty
in interface ITypeDesc
getFixedProperty
in interface SpaceTypeDescriptor
propertyID
- Position of requested fixed property.public int getFixedPropertyPosition(String propertyName)
SpaceTypeDescriptor
getFixedPropertyPosition
in interface SpaceTypeDescriptor
propertyName
- Name of property to locate.public PropertyInfo getFixedProperty(String propertyName)
SpaceTypeDescriptor
getFixedProperty
in interface SpaceTypeDescriptor
propertyName
- Name of requested fixes property.public boolean supportsDynamicProperties()
SpaceTypeDescriptor
supportsDynamicProperties
in interface SpaceTypeDescriptor
public boolean supportsOptimisticLocking()
SpaceTypeDescriptor
supportsOptimisticLocking
in interface SpaceTypeDescriptor
public int getNumOfIndexedProperties()
getNumOfIndexedProperties
in interface ITypeDesc
public int getIndexedPropertyID(int propertyID)
getIndexedPropertyID
in interface ITypeDesc
public int getIdentifierPropertyId()
getIdentifierPropertyId
in interface ITypeDesc
public String getIdPropertyName()
SpaceTypeDescriptor
getIdPropertyName
in interface SpaceTypeDescriptor
public SpaceIdType getSpaceIdType()
getSpaceIdType
in interface ITypeDesc
public boolean isAutoGenerateId()
SpaceTypeDescriptor
isAutoGenerateId
in interface ITypeDesc
isAutoGenerateId
in interface SpaceTypeDescriptor
public boolean isAutoGenerateRouting()
isAutoGenerateRouting
in interface ITypeDesc
public int getRoutingPropertyId()
getRoutingPropertyId
in interface ITypeDesc
public String getRoutingPropertyName()
SpaceTypeDescriptor
getRoutingPropertyName
in interface SpaceTypeDescriptor
public String getDefaultPropertyName()
getDefaultPropertyName
in interface ITypeDesc
public boolean isFifoSupported()
isFifoSupported
in interface ITypeDesc
public boolean isFifoDefault()
isFifoDefault
in interface ITypeDesc
public FifoSupport getFifoSupport()
SpaceTypeDescriptor
getFifoSupport
in interface SpaceTypeDescriptor
FifoSupport
public boolean isSystemType()
isSystemType
in interface ITypeDesc
public boolean isReplicable()
SpaceTypeDescriptor
isReplicable
in interface SpaceTypeDescriptor
public boolean isBlobstoreEnabled()
SpaceTypeDescriptor
isBlobstoreEnabled
in interface SpaceTypeDescriptor
public EntryType getObjectType()
getObjectType
in interface ITypeDesc
public String[] getPropertiesNames()
getPropertiesNames
in interface SpaceTypeDescriptor
public String[] getPropertiesTypes()
getPropertiesTypes
in interface SpaceTypeDescriptor
public boolean[] getPropertiesIndexTypes()
getPropertiesIndexTypes
in interface SpaceTypeDescriptor
public int getChecksum()
getChecksum
in interface ITypeDesc
public boolean isConcreteType()
SpaceTypeDescriptor
isConcreteType
in interface SpaceTypeDescriptor
public EntryTypeDesc getEntryTypeDesc(EntryType entryType)
getEntryTypeDesc
in interface ITypeDesc
public ITypeIntrospector getIntrospector(EntryType entryType)
getIntrospector
in interface ITypeDesc
public Map<String,SpaceIndex> getIndexes()
SpaceTypeDescriptor
getIndexes
in interface ITypeDesc
getIndexes
in interface SpaceTypeDescriptor
SpaceIndex
public TypeQueryExtensions getQueryExtensions()
getQueryExtensions
in interface SpaceTypeDescriptor
public SpaceIndexType getIndexType(String indexName)
getIndexType
in interface ITypeDesc
public byte getDotnetDynamicPropertiesStorageType()
getDotnetDynamicPropertiesStorageType
in interface IDotnetTypeDescDetails
public String getDotnetDocumentWrapperTypeName()
getDotnetDocumentWrapperTypeName
in interface IDotnetTypeDescDetails
public String getPrimitivePropertiesWithoutNullValues()
getPrimitivePropertiesWithoutNullValues
in interface ITypeDesc
public boolean hasSequenceNumber()
hasSequenceNumber
in interface SpaceTypeDescriptor
public int getSequenceNumberFixedPropertyID()
getSequenceNumberFixedPropertyID
in interface SpaceTypeDescriptor
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void readFromSwap(ObjectInput in) throws IOException, ClassNotFoundException
readFromSwap
in interface ISwapExternalizable
IOException
ClassNotFoundException
public boolean isAllPropertiesObjectStorageType()
isAllPropertiesObjectStorageType
in interface ITypeDesc
public StorageType getStorageType()
SpaceTypeDescriptor
getStorageType
in interface SpaceTypeDescriptor
public String getFifoGroupingPropertyPath()
SpaceTypeDescriptor
getFifoGroupingPropertyPath
in interface SpaceTypeDescriptor
public Set<String> getFifoGroupingIndexesPaths()
SpaceTypeDescriptor
getFifoGroupingIndexesPaths
in interface SpaceTypeDescriptor
public List<SpaceIndex> getCompoundIndexes()
getCompoundIndexes
in interface ITypeDesc
public boolean anyCompoundIndex()
anyCompoundIndex
in interface ITypeDesc
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void writeToSwap(ObjectOutput out) throws IOException
writeToSwap
in interface ISwapExternalizable
IOException
public Serializable getVersionedSerializable()
getVersionedSerializable
in interface ITypeDesc
Copyright © GigaSpaces.