public class PropertyStoreCassandra extends AbstractPropertyStore implements FF4jCassandraSchema
PropertyStore for store Cassandra.AUDIT_ATT_ACTION, AUDIT_ATT_CUSTOM, AUDIT_ATT_DURATION, AUDIT_ATT_HOSTNAME, AUDIT_ATT_NAME, AUDIT_ATT_SOURCE, AUDIT_ATT_TIME, AUDIT_ATT_TYPE, AUDIT_ATT_UID, AUDIT_ATT_USER, AUDIT_ATT_VALUE, AUDIT_HITCOUNT_TABLE, AUDIT_TABLE, DEFAULT_KEYSPACE, FEATURES_ATT_DESCRIPTION, FEATURES_ATT_ENABLED, FEATURES_ATT_GROUPNAME, FEATURES_ATT_PROPERTIES, FEATURES_ATT_ROLES, FEATURES_ATT_STRATEGY, FEATURES_ATT_UID, FEATURES_INDEX_GROUPNAME, FEATURES_TABLE, PROPERTIES_ATT_CLASS, PROPERTIES_ATT_DESCRIPTION, PROPERTIES_ATT_FIXEDVALUES, PROPERTIES_ATT_UID, PROPERTIES_ATT_VALUE, PROPERTIES_TABLE, STMT_AUDIT_INSERT, STMT_AUDIT_INSERT_HITCOUNT, STMT_AUDIT_READ_BY_ID, STMT_CREATE_INDEX_FEATUREGROUP, STMT_CREATE_TABLE_AUDIT, STMT_CREATE_TABLE_AUDITHITCOUNT, STMT_CREATE_TABLE_FEATURE, STMT_CREATE_TABLE_PROPERTY, STMT_CREATE_UDT_PROPERTY, STMT_CREATE_UDT_STRATEGY, STMT_FEATURE_ADDTOGROUP, STMT_FEATURE_DELETE, STMT_FEATURE_EXIST, STMT_FEATURE_INSERT, STMT_FEATURE_READ, STMT_FEATURE_READ_ALL, STMT_FEATURE_REMOVEGROUP, STMT_FEATURE_TOGGLE, STMT_FEATUREGROUP_LIST, STMT_FEATUREGROUP_READ, STMT_PROPERTY_DELETE, STMT_PROPERTY_EXIST, STMT_PROPERTY_INSERT, STMT_PROPERTY_LISTNAMES, STMT_PROPERTY_READ, STMT_PROPERTY_READ_ALL, UDT_PROPERTY, UDT_PROPERTY_CLASS, UDT_PROPERTY_DESCRIPTION, UDT_PROPERTY_FIXEDVALUES, UDT_PROPERTY_UID, UDT_PROPERTY_VALUE, UDT_STRATEGY, UDT_STRATEGY_CLASS, UDT_STRATEGY_PARAMS| Constructor and Description |
|---|
PropertyStoreCassandra(com.datastax.oss.driver.api.core.CqlSession cqlSession)
Connector with running session
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
<T> void |
createProperty(Property<T> prop) |
void |
createSchema() |
void |
deleteProperty(String name) |
boolean |
existProperty(String name) |
Set<String> |
listPropertyNames() |
protected Property<?> |
mapPropertyRow(com.datastax.oss.driver.api.core.cql.Row row)
Map from a row to property.
|
protected void |
prepareStatements()
Prepared once, run many.
|
Map<String,Property<?>> |
readAllProperties() |
Property<?> |
readProperty(String name) |
assertPropertyExist, assertPropertyNotExist, assertPropertyNotNull, importProperties, importPropertiesFromXmlFile, isEmpty, readProperty, toJson, updateProperty, updatePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdropTableIfExists, dropTypeIffExists, isTableExist, truncateTablepublic PropertyStoreCassandra(com.datastax.oss.driver.api.core.CqlSession cqlSession)
public void createSchema()
createSchema in interface PropertyStorecreateSchema in class AbstractPropertyStorepublic boolean existProperty(String name)
existProperty in interface PropertyStorepublic <T> void createProperty(Property<T> prop)
createProperty in interface PropertyStorepublic Property<?> readProperty(String name)
readProperty in interface PropertyStorepublic void deleteProperty(String name)
deleteProperty in interface PropertyStorepublic Map<String,Property<?>> readAllProperties()
readAllProperties in interface PropertyStorepublic Set<String> listPropertyNames()
listPropertyNames in interface PropertyStorepublic void clear()
clear in interface PropertyStoreprotected void prepareStatements()
protected Property<?> mapPropertyRow(com.datastax.oss.driver.api.core.cql.Row row)
Copyright © 2013–2022 FF4J. All rights reserved.