Package cz.o2.proxima.core.repository
Class EntityAwareAttributeDescriptor.Wildcard<T>
- java.lang.Object
-
- cz.o2.proxima.core.repository.EntityAwareAttributeDescriptor<T>
-
- cz.o2.proxima.core.repository.EntityAwareAttributeDescriptor.Wildcard<T>
-
- All Implemented Interfaces:
AttributeDescriptor<T>
,java.io.Serializable
- Enclosing class:
- EntityAwareAttributeDescriptor<T>
public static class EntityAwareAttributeDescriptor.Wildcard<T> extends EntityAwareAttributeDescriptor<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class cz.o2.proxima.core.repository.EntityAwareAttributeDescriptor
EntityAwareAttributeDescriptor.Regular<T>, EntityAwareAttributeDescriptor.Wildcard<T>
-
Nested classes/interfaces inherited from interface cz.o2.proxima.core.repository.AttributeDescriptor
AttributeDescriptor.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamElement
delete(long sequentialId, java.lang.String key, java.lang.String attribute, long stamp)
Create delete for wildcard attribute.StreamElement
delete(java.lang.String key, java.lang.String attribute, long stamp)
Create delete for wildcard attribute.StreamElement
delete(java.lang.String uuid, java.lang.String key, java.lang.String attribute, long stamp)
Create delete for wildcard attribute.StreamElement
delete(java.lang.String uuid, java.lang.String key, java.lang.String attribute, java.time.Instant stamp)
Create delete for wildcard attribute.StreamElement
delete(java.lang.String key, java.lang.String attribute, java.time.Instant stamp)
Create delete for wildcard attribute.StreamElement
deleteWildcard(long sequentialId, java.lang.String key, long stamp)
Delete wildcard attribute (all versions).StreamElement
deleteWildcard(java.lang.String key, long stamp)
Delete wildcard attribute (all versions).StreamElement
deleteWildcard(java.lang.String uuid, java.lang.String key, long stamp)
Delete wildcard attribute (all versions).StreamElement
deleteWildcard(java.lang.String uuid, java.lang.String key, java.time.Instant stamp)
Delete wildcard attribute (all versions).StreamElement
deleteWildcard(java.lang.String key, java.time.Instant stamp)
Delete wildcard attribute (all versions).java.lang.String
extractSuffix(java.lang.String attribute)
Parse given attribute name (prefix.suffix) to suffix only.static <T> EntityAwareAttributeDescriptor.Wildcard<T>
of(EntityDescriptor entity, AttributeDescriptor<T> attr)
StreamElement
upsert(long sequentialId, java.lang.String key, java.lang.String attribute, long stamp, T value)
Create upsert update to wildcard attribute.StreamElement
upsert(java.lang.String key, java.lang.String attribute, long stamp, T value)
Create upsert update to wildcard attribute.StreamElement
upsert(java.lang.String uuid, java.lang.String key, java.lang.String attribute, long stamp, T value)
Create upsert update to wildcard attribute.StreamElement
upsert(java.lang.String uuid, java.lang.String key, java.lang.String attribute, java.time.Instant stamp, T value)
Create upsert update to wildcard attribute.StreamElement
upsert(java.lang.String key, java.lang.String attribute, java.time.Instant stamp, T value)
Create upsert update to wildcard attribute.-
Methods inherited from class cz.o2.proxima.core.repository.EntityAwareAttributeDescriptor
asProxy, equals, getEntity, getName, getSchemaTypeDescriptor, getSchemeUri, getTransactionalManagerFamilies, getTransactionMode, getValueSerializer, hashCode, isProxy, isPublic, isWildcard, toAttributePrefix, toAttributePrefix, toBuilder, toString, valueOf
-
-
-
-
Method Detail
-
of
public static <T> EntityAwareAttributeDescriptor.Wildcard<T> of(EntityDescriptor entity, AttributeDescriptor<T> attr)
-
upsert
public StreamElement upsert(java.lang.String uuid, java.lang.String key, java.lang.String attribute, long stamp, T value)
Create upsert update to wildcard attribute.- Parameters:
uuid
- UUID of the upsertkey
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestampvalue
- the value to write- Returns:
- the upsert
StreamElement
-
upsert
public StreamElement upsert(long sequentialId, java.lang.String key, java.lang.String attribute, long stamp, T value)
Create upsert update to wildcard attribute.- Parameters:
sequentialId
- sequential ID of the upsertkey
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestampvalue
- the value to write- Returns:
- the upsert
StreamElement
-
upsert
public StreamElement upsert(java.lang.String uuid, java.lang.String key, java.lang.String attribute, java.time.Instant stamp, T value)
Create upsert update to wildcard attribute.- Parameters:
uuid
- UUID of the upsertkey
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestampvalue
- the value to write- Returns:
- the upsert
StreamElement
-
upsert
public StreamElement upsert(java.lang.String key, java.lang.String attribute, long stamp, T value)
Create upsert update to wildcard attribute. UUID is autogenerated.- Parameters:
key
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestampvalue
- the value to write- Returns:
- the upsert
StreamElement
-
upsert
public StreamElement upsert(java.lang.String key, java.lang.String attribute, java.time.Instant stamp, T value)
Create upsert update to wildcard attribute. UUID is autogenerated.- Parameters:
key
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestampvalue
- the value to write- Returns:
- the upsert
StreamElement
-
delete
public StreamElement delete(java.lang.String uuid, java.lang.String key, java.lang.String attribute, long stamp)
Create delete for wildcard attribute.- Parameters:
uuid
- UUID of the deletekey
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestamp- Returns:
- the delete
StreamElement
-
delete
public StreamElement delete(long sequentialId, java.lang.String key, java.lang.String attribute, long stamp)
Create delete for wildcard attribute.- Parameters:
sequentialId
- sequential ID of the deletekey
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestamp- Returns:
- the delete
StreamElement
-
delete
public StreamElement delete(java.lang.String uuid, java.lang.String key, java.lang.String attribute, java.time.Instant stamp)
Create delete for wildcard attribute.- Parameters:
uuid
- UUID of the deletekey
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestamp- Returns:
- the delete
StreamElement
-
delete
public StreamElement delete(java.lang.String key, java.lang.String attribute, long stamp)
Create delete for wildcard attribute. UUID is autogenerated.- Parameters:
key
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestamp- Returns:
- the delete
StreamElement
-
delete
public StreamElement delete(java.lang.String key, java.lang.String attribute, java.time.Instant stamp)
Create delete for wildcard attribute. UUID is autogenerated.- Parameters:
key
- key of the upsertattribute
- the attribute (only the suffix part)stamp
- timestamp- Returns:
- the delete
StreamElement
-
deleteWildcard
public StreamElement deleteWildcard(java.lang.String uuid, java.lang.String key, long stamp)
Delete wildcard attribute (all versions).- Parameters:
uuid
- UUID of the deletekey
- key of the upsertstamp
- timestamp- Returns:
- the delete
StreamElement
-
deleteWildcard
public StreamElement deleteWildcard(long sequentialId, java.lang.String key, long stamp)
Delete wildcard attribute (all versions).- Parameters:
sequentialId
- sequential ID of the deletekey
- key of the upsertstamp
- timestamp- Returns:
- the delete
StreamElement
-
deleteWildcard
public StreamElement deleteWildcard(java.lang.String uuid, java.lang.String key, java.time.Instant stamp)
Delete wildcard attribute (all versions).- Parameters:
uuid
- UUID of the deletekey
- key of the upsertstamp
- timestamp- Returns:
- the delete
StreamElement
-
deleteWildcard
public StreamElement deleteWildcard(java.lang.String key, long stamp)
Delete wildcard attribute (all versions). UUID is autogenerated.- Parameters:
key
- key of the upsertstamp
- timestamp- Returns:
- the delete
StreamElement
-
deleteWildcard
public StreamElement deleteWildcard(java.lang.String key, java.time.Instant stamp)
Delete wildcard attribute (all versions). UUID is autogenerated.- Parameters:
key
- key of the upsertstamp
- timestamp- Returns:
- the delete
StreamElement
-
extractSuffix
public java.lang.String extractSuffix(java.lang.String attribute)
Parse given attribute name (prefix.suffix) to suffix only.- Parameters:
attribute
- complete name of attribute- Returns:
- the suffix part
-
-