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.TypefindIdNosqlType(Class<?> idClass) oracle.nosql.driver.Consistencyoracle.nosql.driver.Durabilityoracle.nosql.driver.values.FieldValue.Typeoracle.nosql.driver.ops.TableLimitsgetTableLimits(NosqlDbFactory nosqlDbFactory) intoracle.nosql.driver.TimeToLivegetTtl()Get default table level TTL of the entity.static booleanisAllowedKeyType(Class<?> type) booleanbooleanstatic booleanisCompositeKeyType(Class<?> type) voidsetConsistency(String consistency) voidsetDurability(String durability) voidsetTimeout(int milliseconds) Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaType, isNewMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-