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 oracle.nosql.driver.values.FieldValue.Type
findIdNosqlType
(Class<?> idClass) oracle.nosql.driver.Consistency
oracle.nosql.driver.Durability
oracle.nosql.driver.values.FieldValue.Type
oracle.nosql.driver.ops.TableLimits
getTableLimits
(NosqlDbFactory nosqlDbFactory) int
oracle.nosql.driver.TimeToLive
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
public oracle.nosql.driver.values.FieldValue.Type getIdNosqlType() -
findIdNosqlType
-
getTableName
-
isAutoCreateTable
public boolean isAutoCreateTable() -
isAutoGeneratedId
public boolean isAutoGeneratedId() -
isAllowedKeyType
-
isCompositeKeyType
-
getTableLimits
-
getConsistency
public oracle.nosql.driver.Consistency getConsistency() -
setConsistency
-
getDurability
public oracle.nosql.driver.Durability getDurability() -
setDurability
-
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int milliseconds) -
getTtl
public oracle.nosql.driver.TimeToLive 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
-