Class NosqlEntityInformation<T,ID>
java.lang.Object
org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
com.oracle.nosql.spring.data.repository.support.NosqlEntityInformation<T,ID>
- All Implemented Interfaces:
org.springframework.data.repository.core.EntityInformation<T,
,ID> org.springframework.data.repository.core.EntityMetadata<T>
public class NosqlEntityInformation<T,ID>
extends org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
-
Constructor Summary
ConstructorsConstructorDescriptionNosqlEntityInformation
(org.springframework.context.ApplicationContext applicationContext, Class<T> domainClass) -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldValue.Type
findIdNosqlType
(Class<?> idClass) getTableLimits
(NosqlDbFactory nosqlDbFactory) int
getTtl()
Get default table level TTL of the entity.static boolean
isAllowedKeyType
(Class<?> type) boolean
boolean
static boolean
isCompositeKeyType
(Class<?> type) void
setConsistency
(String consistency) void
setDurability
(String durability) void
setTimeout
(int milliseconds) Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaType, isNew
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.core.EntityInformation
getRequiredId
-
Constructor Details
-
NosqlEntityInformation
-
-
Method Details
-
getId
-
getIdField
-
getIdColumnName
-
getIdType
-
getIdNosqlType
-
findIdNosqlType
-
getTableName
-
isAutoCreateTable
public boolean isAutoCreateTable() -
isAutoGeneratedId
public boolean isAutoGeneratedId() -
isAllowedKeyType
-
isCompositeKeyType
-
getTableLimits
-
getConsistency
-
setConsistency
-
getDurability
-
setDurability
-
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int milliseconds) -
getTtl
Get default table level TTL of the entity. This is applicable only when the table is created through Spring SDK as part ofNosqlTable.autoCreateTable()
. This will not reflect the TTL of an already created table.- Returns:
- Default table level TTL
- Since:
- 1.5.0
-
getShardKeys
-
getNonShardKeys
-