conversation
listlengths
2
2
[ { "content": "Return specific field list.\n\n@param m\nthe m\n@param columnsToOutput\nthe columns to output\n@param results\nthe results\n@param outputResults\nthe output results\n@return the list", "role": "user" }, { "content": "private List returnSpecificFieldList(EntityMetadata m, List<Map<Strin...
[ { "content": "Checks if is id col.\n\n@param m\nthe m\n@param colName\nthe col name\n@return true, if is id col", "role": "user" }, { "content": "private boolean isIdCol(EntityMetadata m, String colName)\n {\n return ((AbstractAttribute) m.getIdAttribute()).getJPAColumnName().equals(colNam...
[ { "content": "Populate embeddable object.\n\n@param data\nthe data\n@param obj\nthe obj\n@param m\nthe m\n@param clazz\nthe clazz\n@param prefix\n@return the object", "role": "user" }, { "content": "private Object populateEmbeddableObject(HBaseDataWrapper data, Object obj, EntityMetadata m, Class cl...
[ { "content": "Gets the object from byte array.\n\n@param entityType\nthe entity type\n@param value\nthe value\n@param jpaColumnName\nthe jpa column name\n@param m\nthe m\n@return the object from byte array", "role": "user" }, { "content": "private Object getObjectFromByteArray(EntityType entityType,...
[ { "content": "Gets the handle.\n\n@return the handle", "role": "user" }, { "content": "public HBaseDataHandler getHandle()\n {\n HBaseDataHandler handler = new HBaseDataHandler(this.kunderaMetadata, this.connection);\n handler.filter = this.filter;\n handler.filters = this.fi...
[ { "content": "On begin.\n\n@return the transaction", "role": "user" }, { "content": "private Transaction onBegin()\n {\n Transaction tx;\n if (((StatelessSessionImpl) s).getTransactionCoordinator().isTransactionActive())\n {\n tx = ((StatelessSessionImpl) s).getTra...
[ { "content": "Inserts records into JoinTable.\n\n@param joinTableData\nthe join table data", "role": "user" }, { "content": "@Override\n public void persistJoinTable(JoinTableData joinTableData)\n {\n String schemaName = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, joinTabl...
[ { "content": "Insert record in join table.\n\n@param schemaName\nthe schema name\n@param joinTableName\nthe join table name\n@param joinColumnName\nthe join column name\n@param inverseJoinColumnName\nthe inverse join column name\n@param parentId\nthe parent id\n@param childrenIds\nthe children ids", "role":...
[ { "content": "On native update.\n\n@param query\nthe query\n@param parameterMap\nthe parameter map\n@return the int", "role": "user" }, { "content": "public int onNativeUpdate(String query, Map<Parameter, Object> parameterMap)\n {\n s = getStatelessSession();\n\n Query q = s.createS...
[ { "content": "Gets the data type.\n\n@param entityMetadata\nthe entity metadata\n@param arg1\nthe arg1\n@return the data type\n@throws PropertyAccessException\nthe property access exception", "role": "user" }, { "content": "private Object[] getDataType(EntityMetadata entityMetadata, Object... arg1) ...
[ { "content": "Gets the from clause.\n\n@param schemaName\nthe schema name\n@param tableName\nthe table name\n@return the from clause", "role": "user" }, { "content": "private String getFromClause(String schemaName, String tableName)\n {\n String clause = tableName;\n if (schemaName ...
[ { "content": "Updates foreign keys into master table.\n\n@param metadata\nthe metadata\n@param id\nthe id\n@param relationHolders\nthe relation holders", "role": "user" }, { "content": "private void updateForeignKeys(EntityMetadata metadata, Object id, List<RelationHolder> relationHolders)\n {\n ...
[ { "content": "Removes the kundera proxies.\n\n@param metadata\nthe metadata\n@param entity\nthe entity\n@param relationHolders\nthe relation holders\n@return true, if successful", "role": "user" }, { "content": "private boolean removeKunderaProxies(EntityMetadata metadata, Object entity, List<Relati...
[ { "content": "Sets the parameters.\n\n@param parameterMap\nthe parameter map\n@param q\nthe q", "role": "user" }, { "content": "private void setParameters(Map<Parameter, Object> parameterMap, Query q)\n {\n if (parameterMap != null && !parameterMap.isEmpty())\n {\n for (P...
[ { "content": "drop schema method drop the table from keyspace.", "role": "user" }, { "content": "public void dropSchema()\n {\n if (operation != null && operation.equalsIgnoreCase(\"create-drop\"))\n {\n try\n {\n dropKeyspaceOrCFs();\n ...
[ { "content": "Drop keyspace or c fs.\n\n@throws InvalidRequestException\nthe invalid request exception\n@throws SchemaDisagreementException\nthe schema disagreement exception\n@throws TException\nthe t exception\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void dropKey...
[ { "content": "Drops column family specified in table info.\n\n@param tableInfo\nthe table info\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void dropColumnFamily(TableInfo tableInfo) throws Exception\n {\n if (isCql3Enabled(tableInfo))\n {\n ...
[ { "content": "On create keyspace.\n\n@return the ks def\n@throws Exception\nthe exception", "role": "user" }, { "content": "private KsDef onCreateKeyspace() throws Exception\n {\n try\n {\n createdKeyspaces.add(databaseName);\n createKeyspace();\n }\n ...
[ { "content": "Creates keyspace.\n\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void createKeyspace() throws Exception\n {\n if (cql_version != null && cql_version.equals(CassandraConstants.CQL_VERSION_3_0))\n {\n onCql3CreateKeyspace();\n ...
[ { "content": "On cql3 create keyspace.\n\n@throws InvalidRequestException\nthe invalid request exception\n@throws UnavailableException\nthe unavailable exception\n@throws TimedOutException\nthe timed out exception\n@throws SchemaDisagreementException\nthe schema disagreement exception\n@throws TException\nthe t...
[ { "content": "Creates the column families.\n\n@param tableInfos\nthe table infos\n@param ksDef\nthe ks def\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void createColumnFamilies(List<TableInfo> tableInfos, KsDef ksDef) throws Exception\n {\n for (TableInfo ta...
[ { "content": "Creates the or update column family.\n\n@param tableInfo\nthe table info\n@param ksDef\nthe ks def\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void createOrUpdateColumnFamily(TableInfo tableInfo, KsDef ksDef) throws Exception\n {\n MetaDataHand...
[ { "content": "Contains composite key.\n\n@param tableInfo\nthe table info\n@return true, if successful", "role": "user" }, { "content": "private boolean containsCompositeKey(TableInfo tableInfo)\n {\n return tableInfo.getTableIdType() != null && tableInfo.getTableIdType().isAnnotationPrese...
[ { "content": "Update existing column family.\n\n@param tableInfo\nthe table info\n@param ksDef\nthe ks def\n@param irex\nthe irex\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void updateExistingColumnFamily(TableInfo tableInfo, KsDef ksDef, InvalidRequestException irex...
[ { "content": "Handle create.\n\n@param tableInfo\nthe table info\n@param ksDef\nthe ks def\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void handleCreate(TableInfo tableInfo, KsDef ksDef) throws Exception\n {\n if (containsCompositeKey(tableInfo))\n {\...
[ { "content": "update method update schema and table for the list of tableInfos.\n\n@param tableInfos\nlist of TableInfos.", "role": "user" }, { "content": "protected void update(List<TableInfo> tableInfos)\n {\n try\n {\n createOrUpdateKeyspace(tableInfos);\n }\n ...
[ { "content": "Gets the composite id embeddables.\n\n@param embeddable\nthe embeddable\n@param compositeEmbeddables\nthe composite embeddables\n@param metaModel\nthe meta model\n@return the composite id embeddables", "role": "user" }, { "content": "private void getCompositeIdEmbeddables(EmbeddableTyp...
[ { "content": "On embedded columns.\n\n@param translator\nthe translator\n@param tableInfo\nthe table info\n@param queryBuilder\nthe query builder\n@param compositeEmbeddables\nthe composite embeddables", "role": "user" }, { "content": "private void onEmbeddedColumns(CQLTranslator translator, TableIn...
[ { "content": "Post process embedded.\n\n@param embNametoUDTQuery\nthe emb nameto udt query\n@param embNametoDependentList\nthe emb nameto dependent list", "role": "user" }, { "content": "private void postProcessEmbedded(Map<String, String> embNametoUDTQuery,\n Map<String, List<String>> em...
[ { "content": "Check relation and execute query.\n\n@param embeddableKey\nthe embeddable key\n@param embeddableToDependentEmbeddables\nthe embeddable to dependent embeddables\n@param queries\nthe queries", "role": "user" }, { "content": "private void checkRelationAndExecuteQuery(String embeddableKey,...
[ { "content": "Append primary key.\n\n@param translator\nthe translator\n@param compoEmbeddableType\nthe compo embeddable type\n@param fields\nthe fields\n@param queryBuilder\nthe query builder", "role": "user" }, { "content": "private void appendPrimaryKey(CQLTranslator translator, EmbeddableType co...
[ { "content": "Append clustering order.\n\n@param translator\nthe translator\n@param compositeColumns\nthe composite columns\n@param clusterKeyOrderingBuilder\nthe cluster key ordering builder\n@param primaryKeyBuilder\nthe primary key builder", "role": "user" }, { "content": "private void appendClus...
[ { "content": "Strip last char.\n\n@param columnFamilyQuery\nthe column family query\n@param queryBuilder\nthe query builder\n@return the string builder", "role": "user" }, { "content": "private StringBuilder replaceColumnsAndStripLastChar(String columnFamilyQuery, StringBuilder queryBuilder)\n {\...
[ { "content": "Creates the index using thrift.\n\n@param tableInfo\nthe table info\n@param cfDef\nthe cf def\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void createIndexUsingThrift(TableInfo tableInfo, CfDef cfDef) throws Exception\n {\n for (IndexInfo indexI...
[ { "content": "Create secondary indexes on columns.\n\n@param tableInfo\nthe table info\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void createIndexUsingCql(TableInfo tableInfo) throws Exception\n {\n\n List<String> embeddedIndexes = new ArrayList<String>();\...
[ { "content": "Drops table using cql3.\n\n@param tableInfo\nthe table info\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void dropTableUsingCql(TableInfo tableInfo) throws Exception\n {\n\n CQLTranslator translator = new CQLTranslator();\n StringBuilder ...
[ { "content": "Adds column to table if not exists previously i.e. alter table.\n\n@param tableInfo\nthe table info\n@param column\nthe column\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void addColumnToTable(TableInfo tableInfo, ColumnInfo column) throws Exception\n ...
[ { "content": "showSchema Alters column type of an existing column.\n\n@param tableInfo\nthe table info\n@param translator\nthe translator\n@param column\nthe column\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void alterColumnType(TableInfo tableInfo, CQLTranslator tra...
[ { "content": "On composite columns.\n\n@param translator\nthe translator\n@param compositeColumns\nthe composite columns\n@param queryBuilder\nthe query builder\n@param columns\nthe columns\n@param isCounterColumnFamily\nthe is counter column family", "role": "user" }, { "content": "private void onC...
[ { "content": "Validate and append column name.\n\n@param translator\nthe translator\n@param queryBuilder\nthe query builder\n@param b\nthe b\n@param clazz\nthe clazz", "role": "user" }, { "content": "private void validateAndAppendColumnName(CQLTranslator translator, StringBuilder queryBuilder, Strin...
[ { "content": "Generates schema for Collection columns.\n\n@param translator\nthe translator\n@param collectionColumnInfos\nthe collection column infos\n@param queryBuilder\nthe query builder", "role": "user" }, { "content": "private void onCollectionColumns(CQLTranslator translator, List<CollectionC...
[ { "content": "Creates the inverted index table.\n\n@param tableInfo\nthe table info\n@param ksDef\nthe ks def\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void createInvertedIndexTable(TableInfo tableInfo, KsDef ksDef) throws Exception\n {\n CfDef cfDef = get...
[ { "content": "Gets the inverted index cf.\n\n@param tableInfo\nthe table info\n@return the inverted index cf\n@throws InvalidRequestException\nthe invalid request exception\n@throws SchemaDisagreementException\nthe schema disagreement exception\n@throws TException\nthe t exception", "role": "user" }, { ...
[ { "content": "Drop inverted index table.\n\n@param tableInfo\nthe table info", "role": "user" }, { "content": "private void dropInvertedIndexTable(TableInfo tableInfo)\n {\n boolean indexTableRequired = CassandraPropertyReader.csmd.isInvertedIndexingEnabled(databaseName)/* ) */\n ...
[ { "content": "On validate table.\n\n@param ksDef\nthe ks def\n@param tableInfo\nthe table info\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void onValidateTable(KsDef ksDef, TableInfo tableInfo) throws Exception\n {\n boolean tablefound = false;\n for ...
[ { "content": "On validate column.\n\n@param tableInfo\nthe table info\n@param cfDef\nthe cf def\n@param columnInfo\nthe column info\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void onValidateColumn(TableInfo tableInfo, CfDef cfDef, ColumnInfo columnInfo) throws Except...
[ { "content": "is metadata same method returns true if ColumnDef and columnInfo have\nsame metadata.\n\n@param columnDef\nthe column def\n@param columnInfo\nthe column info\n@param isCql3Enabled\nthe is cql3 enabled\n@param isCounterColumnType\nthe is counter column type\n@return true, if is metadata same\n@thro...
[ { "content": "Update table.\n\n@param ksDef\nthe ks def\n@param tableInfo\nthe table info\n@throws Exception\nthe exception", "role": "user" }, { "content": "private void updateTable(KsDef ksDef, TableInfo tableInfo) throws Exception\n {\n for (CfDef cfDef : ksDef.getCf_defs())\n {\...
[ { "content": "Checks if is cf def updated.\n\n@param columnInfo\nthe column info\n@param cfDef\nthe cf def\n@param isCql3Enabled\nthe is cql3 enabled\n@param isCounterColumnType\nthe is counter column type\n@param tableInfo\nthe table info\n@return true, if is cf def updated\n@throws Exception\nthe exception", ...
[ { "content": "getColumnMetadata use for getting column metadata for specific\ncolumnInfo.\n\n@param columnInfo\nthe column info\n@param tableInfo\nthe table info\n@return the column metadata", "role": "user" }, { "content": "private ColumnDef getColumnMetadata(ColumnInfo columnInfo, TableInfo tableI...
[ { "content": "Sets the properties.\n\n@param ksDef\nthe ks def\n@param strategy_options\nthe strategy_options", "role": "user" }, { "content": "private void setProperties(KsDef ksDef, Map<String, String> strategy_options)\n {\n Schema schema = CassandraPropertyReader.csmd.getSchema(databas...
[ { "content": "Sets the keyspace properties.\n\n@param ksDef\nthe ks def\n@param schemaProperties\nthe schema properties\n@param strategyOptions\nthe strategy options\n@param dcs\nthe dcs", "role": "user" }, { "content": "private void setKeyspaceProperties(KsDef ksDef, Properties schemaProperties, Ma...
[ { "content": "Gets the column family properties.\n\n@param tableInfo\nthe table info\n@return the column family properties", "role": "user" }, { "content": "private Properties getColumnFamilyProperties(TableInfo tableInfo)\n {\n if (tables != null)\n {\n for (Table table ...
[ { "content": "validates entity for CounterColumnType.\n\n@param clazz\nthe clazz\n@return true, if successful", "role": "user" }, { "content": "@Override\n public boolean validateEntity(Class clazz)\n {\n EntityValidatorAgainstCounterColumn entityValidatorAgainstSchema = new EntityValid...
[ { "content": "Sets the column family properties.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe c f properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void setColumnFamilyProperties(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n if ...
[ { "content": "On set read repair chance.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetReadRepairChance(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String dclocalRe...
[ { "content": "On set repair chance.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetRepairChance(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String readRepairChance =...
[ { "content": "On set bloom filter.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetBloomFilter(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String bloomFilterFpChance ...
[ { "content": "On set caching.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetCaching(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String caching = cfProperties.getPro...
[ { "content": "On set gc grace.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetGcGrace(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String gcGraceSeconds = cfPropertie...
[ { "content": "On set table id.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetTableId(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String id = cfProperties.getPropert...
[ { "content": "On set comment.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetComment(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String comment = cfProperties.getPro...
[ { "content": "On set replicate on write.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetReplicateOnWrite(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String replicate...
[ { "content": "On set compaction threshold.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetCompactionThreshold(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String maxC...
[ { "content": "On set sub comparator.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetSubComparator(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String subComparatorTyp...
[ { "content": "On set comparator type.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetComparatorType(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String comparatorType...
[ { "content": "On set compaction strategy.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetCompactionStrategy(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String compac...
[ { "content": "On set key validation.\n\n@param cfDef\nthe cf def\n@param cfProperties\nthe cf properties\n@param builder\nthe builder", "role": "user" }, { "content": "private void onSetKeyValidation(CfDef cfDef, Properties cfProperties, StringBuilder builder)\n {\n String keyValidationCla...
[ { "content": "Checks if is cql3 enabled.\n\n@param tableInfo\nthe table info\n@return true, if is cql3 enabled", "role": "user" }, { "content": "private boolean isCql3Enabled(TableInfo tableInfo)\n {\n Properties cfProperties = getColumnFamilyProperties(tableInfo);\n\n String defaul...
[ { "content": "Append property to builder.\n\n@param builder\nthe builder\n@param replicateOnWrite\nthe replicate on write\n@param keyword\nthe keyword", "role": "user" }, { "content": "private void appendPropertyToBuilder(StringBuilder builder, String replicateOnWrite, String keyword)\n {\n ...
[ { "content": "Validate compound key.\n\n@param tableInfo\nthe table info", "role": "user" }, { "content": "private void validateCompoundKey(TableInfo tableInfo)\n {\n if (tableInfo.getType() != null && tableInfo.getType().equals(Type.SUPER_COLUMN_FAMILY.name()))\n {\n thr...
[ { "content": "Print log in case schema doesn't match!.\n\n@param tableInfo\nthe table info\n@param metadata\nthe metadata\n@param value_types\nthe value_types\n@param originalMetadata\nthe original metadata\n@throws CharacterCodingException\nthe character coding exception", "role": "user" }, { "cont...
[ { "content": "Checks if is counter column type.\n\n@param tableInfo\nthe table info\n@param defaultValidationClass\nthe default validation class\n@return true, if is counter column type", "role": "user" }, { "content": "private boolean isCounterColumnType(TableInfo tableInfo, String defaultValidatio...
[ { "content": "Retrieves entity instance of given class,row key and specific fields.\n\n@param clazz\nentity class\n@param key\nrow key\n@param connection\nconnection instance.\n@param fields\nfields.\n@return entity instance.\n@throws InstantiationException\nthrows in case of runtime exception\n@throws IllegalA...
[ { "content": "On delete relation.\n\n@param connection\nconnection instance.\n@param entityMetadata\nentity metadata.\n@param rowKey\nrow key.", "role": "user" }, { "content": "private void deleteRelation(Object connection, EntityMetadata entityMetadata, String rowKey)\n {\n List<String> r...
[ { "content": "Fetch column.\n\n@param columnName\nthe column name\n@param connection\nthe connection\n@param results\nthe results\n@param resultKeys\nthe result keys\n@return the list", "role": "user" }, { "content": "private List fetchColumn(String columnName, Object connection, List results, Set<S...
[ { "content": "Find ids by column.\n\n@param tableName\nthe table name\n@param columnName\nthe column name\n@param columnValue\nthe column value\n@return the object[]", "role": "user" }, { "content": "private Object[] findIdsByColumn(String tableName, String columnName, Object columnValue)\n {\n ...
[ { "content": "Returns hash key.\n\n@param tableName\ntable name\n@param rowKey\nrow key\n@return concatenated hash key", "role": "user" }, { "content": "private String getHashKey(final String tableName, final String rowKey)\n {\n StringBuilder builder = new StringBuilder(tableName);\n ...
[ { "content": "Returns encoded bytes.\n\n@param name\nfield name.\n@return encoded byte array.", "role": "user" }, { "content": "byte[] getEncodedBytes(final String name)\n {\n try\n {\n if (name != null)\n {\n return name.getBytes(Constants.CHARS...
[ { "content": "Add inverted index in sorted set.\n\n@param connection\nredis connection instance\n@param wrapper\nattribute wrapper.\n@param rowKey\nrow key to be stor\n@param metadata\nthe metadata", "role": "user" }, { "content": "private void addIndex(final Object connection, final AttributeWrappe...
[ { "content": "Deletes inverted indexes from redis.\n\n@param connection\nredis instance.\n@param wrapper\nattribute wrapper\n@param member\nsorted set member name.", "role": "user" }, { "content": "private void unIndex(final Object connection, final AttributeWrapper wrapper, final String member)\n ...
[ { "content": "On release connection.\n\n@param connection\nredis connection instance.", "role": "user" }, { "content": "private void onCleanup(Object connection)\n {\n // if not running within transaction boundary\n if (this.connection != null)\n {\n if (settings !...
[ { "content": "Adds field to wrapper.\n\n@param entityMetadata\nthe entity metadata\n@param wrapper\nthe wrapper\n@param resultedObject\nthe resulted object\n@param attrib\nthe attrib", "role": "user" }, { "content": "private void addToWrapper(EntityMetadata entityMetadata, AttributeWrapper wrapper, ...
[ { "content": "Re initialize.\n\n@param connection\nthe connection\n@param rowKeys\nthe row keys\n@return the object", "role": "user" }, { "content": "private Object reInitialize(Object connection, Set<String> rowKeys)\n {\n /*\n * if(!rowKeys.isEmpty()) {\n */\n conn...
[ { "content": "Find all columns.\n\n@param <E>\nthe element type\n@param entityClass\nthe entity class\n@param columns\nthe columns\n@param keys\nthe keys\n@return the list", "role": "user" }, { "content": "private <E> List<E> findAllColumns(Class<E> entityClass, byte[][] columns, Object... keys)\n ...
[ { "content": "Returns jedis connection.\n\n@return jedis resource.", "role": "user" }, { "content": "private Object getConnection()\n {\n /*\n * Jedis connection = factory.getConnection();\n * \n * // If resource is not null means a transaction in progress.\n ...
[ { "content": "Gets the and set connection.\n\n@return the and set connection", "role": "user" }, { "content": "private Jedis getAndSetConnection()\n {\n Jedis conn = factory.getConnection();\n this.connection = conn;\n // If resource is not null means a transaction in progres...
[ { "content": "Initialize indexer.", "role": "user" }, { "content": "private void initializeIndexer()\n {\n if (this.indexManager.getIndexer() != null\n && this.indexManager.getIndexer().getClass().getSimpleName().equals(\"RedisIndexer\"))\n {\n ((RedisIndex...
[ { "content": "Gets the proxy.\n\n@param entityName\nthe entity name\n@param persistentClass\nthe persistent class\n@param interfaces\nthe interfaces\n@param getIdentifierMethod\nthe get identifier method\n@param setIdentifierMethod\nthe set identifier method\n@param id\nthe id\n@param persistenceDelegator\nthe ...
[ { "content": "Gets the proxy instance.\n\n@param factory\nthe factory\n@param instance\nthe instance\n@return the proxy instance\n@throws InstantiationException\nthe instantiation exception\n@throws IllegalAccessException\nthe illegal access exception", "role": "user" }, { "content": "private static...
[ { "content": "Gets the proxy factory.\n\n@param persistentClass\nthe persistent class\n@param interfaces\nthe interfaces\n@return the proxy factory\n@throws PersistenceException\nthe persistence exception", "role": "user" }, { "content": "public static Class getProxyFactory(Class persistentClass, Cl...
[ { "content": "Checks if is find key only.\n\n@param metadata\nthe metadata\n@param colToOutput\nthe col to output\n@return true, if is find key only", "role": "user" }, { "content": "public static boolean isFindKeyOnly(EntityMetadata metadata, List<Map<String, Object>> colToOutput)\n {\n i...
[ { "content": "Find GFS entity.\n\n@param entityMetadata\nthe entity metadata\n@param entityClass\nthe entity class\n@param key\nthe key\n@return the object", "role": "user" }, { "content": "private Object findGFSEntity(EntityMetadata entityMetadata, Class entityClass, Object key)\n {\n Gri...
[ { "content": "Find GRIDFSDBFile.\n\n@param entityMetadata\nthe entity metadata\n@param key\nthe key\n@return the grid fsdb file", "role": "user" }, { "content": "private GridFSDBFile findGridFSDBFile(EntityMetadata entityMetadata, Object key)\n {\n String id = ((AbstractAttribute) entityMe...
[ { "content": "Load query data gfs.\n\n@param <E>\nthe element type\n@param entityMetadata\nthe entity metadata\n@param mongoQuery\nthe mongo query\n@param orderBy\nthe order by\n@param maxResult\nthe max result\n@param firstResult\nthe first result\n@param isCountQuery\nthe is count query\n@return the list", ...
[ { "content": "Load query data.\n\n@param <E>\nthe element type\n@param entityMetadata\nthe entity metadata\n@param mongoQuery\nthe mongo query\n@param orderBy\nthe order by\n@param maxResult\nthe max result\n@param firstResult\nthe first result\n@param isCountQuery\nthe is count query\n@param keys\nthe keys\n@p...
[ { "content": "Populate gfs entity.\n\n@param entityMetadata\nthe entity metadata\n@param entities\nthe entities\n@param gfsDBFile\nthe gfs db file", "role": "user" }, { "content": "private void populateGFSEntity(EntityMetadata entityMetadata, List entities, GridFSDBFile gfsDBFile)\n {\n Ob...
[ { "content": "Gets the DB cursor instance.\n\n@param mongoQuery\nthe mongo query\n@param orderBy\nthe order by\n@param maxResult\nthe max result\n@param firstResult\nthe first result\n@param keys\nthe keys\n@param documentName\nthe document name\n@param isCountQuery\nthe is count query\n@return the DB cursor in...
[ { "content": "Gets the GFSDB files.\n\n@param mongoQuery\nthe mongo query\n@param sort\nthe sort\n@param collectionName\nthe collection name\n@param maxResult\nthe max result\n@param firstResult\nthe first result\n@return the GFSDB files", "role": "user" }, { "content": "private List<GridFSDBFile> g...
[ { "content": "Method to find entity for given association name and association value.\n\n@param colName\nthe col name\n@param colValue\nthe col value\n@param entityClazz\nthe entity clazz\n@return the list", "role": "user" }, { "content": "public List<Object> findByRelation(String colName, Object co...