conversation listlengths 2 2 |
|---|
[
{
"content": "Save GRID FS file.\n\n@param gfsInputFile\nthe gfs input file\n@param m\nthe m",
"role": "user"
},
{
"content": "private void saveGridFSFile(GridFSInputFile gfsInputFile, EntityMetadata m)\n {\n try\n {\n DBCollection coll = mongoDb.getCollection(m.getTableN... |
[
{
"content": "On persist GFS.\n\n@param entity\nthe entity\n@param entityId\nthe entityId\n@param entityMetadata\nthe entity metadata\n@param isUpdate\nthe is update",
"role": "user"
},
{
"content": "private void onPersistGFS(Object entity, Object entityId, EntityMetadata entityMetadata, boolean isU... |
[
{
"content": "On flush batch.\n\n@param bulkWriteOperationMap\nthe bulk write operation map",
"role": "user"
},
{
"content": "private void onFlushBatch(Map<String, BulkWriteOperation> bulkWriteOperationMap)\n {\n if (!bulkWriteOperationMap.isEmpty())\n {\n for (BulkWriteO... |
[
{
"content": "On collections flush.\n\n@param collections\ncollection containing records to be inserted in mongo db.",
"role": "user"
},
{
"content": "private void onFlushCollection(Map<String, List<DBObject>> collections)\n {\n for (String tableName : collections.keySet())\n {\n ... |
[
{
"content": "Executes on list of entities to be persisted.\n\n@param collections\ncollection containing list of db objects.\n@param entity\nentity in question.\n@param id\nentity id.\n@param metadata\nentity metadata\n@param relationHolders\nrelation holders.\n@param isUpdate\nif it is an update\n@return colle... |
[
{
"content": "Method to execute mongo jscripts.\n\n@param script\njscript in string format\n\n@return result object.",
"role": "user"
},
{
"content": "@Override\n public Object executeScript(String script)\n {\n Object result = mongoDb.eval(script);\n KunderaCoreUtils.printQuery(... |
[
{
"content": "Parses the map reduce command.\n\n@param jsonClause\nthe json clause\n@return the map reduce command",
"role": "user"
},
{
"content": "private MapReduceCommand parseMapReduceCommand(String jsonClause)\n {\n String collectionName = jsonClause.replaceFirst(\"(?ms).*?\\\\.\\\\s*... |
[
{
"content": "Find comma separated argument.\n\n@param functionBody\nthe function body\n@param index\nthe index\n@return the string",
"role": "user"
},
{
"content": "private String findCommaSeparatedArgument(String functionBody, int index)\n {\n int start = 0;\n int found = -1;\n ... |
[
{
"content": "Parses the and scroll.\n\n@param jsonClause\nthe json clause\n@param collectionName\nthe collection name\n@return the DB cursor\n@throws JSONParseException\nthe JSON parse exception",
"role": "user"
},
{
"content": "private DBCursor parseAndScroll(String jsonClause, String collectionNa... |
[
{
"content": "Handle update functions.\n\n@param query\nthe query\n@param update\nthe update\n@param collName\nthe coll name\n@return the int",
"role": "user"
},
{
"content": "public int handleUpdateFunctions(BasicDBObject query, BasicDBObject update, String collName)\n {\n DBCollection co... |
[
{
"content": "Creates the unique index gfs.\n\n@param coll\nthe coll\n@param id\nthe id",
"role": "user"
},
{
"content": "private void createUniqueIndexGFS(DBCollection coll, String id)\n {\n try\n {\n coll.createIndex(new BasicDBObject(\"metadata.\" + id, 1), new BasicDB... |
[
{
"content": "Open bucket.\n\n@param cluster\nthe cluster\n@param name\nthe name\n@param password\nthe password\n@return the bucket",
"role": "user"
},
{
"content": "public static Bucket openBucket(CouchbaseCluster cluster, String name, String password)\n {\n if (cluster == null)\n ... |
[
{
"content": "Close bucket.\n\n@param bucket\nthe bucket",
"role": "user"
},
{
"content": "public static void closeBucket(Bucket bucket)\n {\n if (bucket != null)\n {\n if (!bucket.close())\n {\n LOGGER.error(\"Not able to close bucket [\" + buck... |
[
{
"content": "Finds an entity from database.\n\n@param entityClass\nthe entity class\n@param rowId\nthe row id\n@return the object",
"role": "user"
},
{
"content": "@Override\n public Object find(Class entityClass, Object rowId) {\n EntityMetadata metadata = KunderaMetadataManager.getEntit... |
[
{
"content": "Creates the select query.\n\n@param rowId\nthe row id\n@param metadata\nthe metadata\n@param tableName\nthe table name\n@return the string builder",
"role": "user"
},
{
"content": "private StringBuilder createSelectQuery(Object rowId, EntityMetadata metadata, String tableName) {\n ... |
[
{
"content": "Populates data form secondary tables of entity for given row key.\n\n@param rowId\nthe row id\n@param entity\nthe entity\n@param metaModel\nthe meta model\n@param metadata\nthe metadata",
"role": "user"
},
{
"content": "private void populateSecondaryTableData(Object rowId, Object entit... |
[
{
"content": "Iterator columns.\n\n@param metadata\nthe metadata\n@param metamodel\nthe metamodel\n@param entityType\nthe entity type\n@param relationalValues\nthe relational values\n@param entity\nthe entity\n@param row\nthe row\n@param columnDefIter\nthe column def iter\n@return the object",
"role": "user... |
[
{
"content": "Gets the compound key.\n\n@param attribute\nthe attribute\n@param entity\nthe entity\n@return the compound key\n@throws InstantiationException\nthe instantiation exception\n@throws IllegalAccessException\nthe illegal access exception",
"role": "user"
},
{
"content": "private Object get... |
[
{
"content": "Sets the key values.\n\n@param keyName\nthe key name\n@param obj\nthe obj",
"role": "user"
},
{
"content": "public void setKeyValues(String keyName, Object obj)\n {\n if (this.keyValues == null)\n {\n this.keyValues = new HashMap<String, Object>();\n ... |
[
{
"content": "Use aggregation.\n\n@param query\nthe query\n@param entityMetadata\nthe entity metadata\n@param filter\nthe filter\n@return the filter aggregation builder",
"role": "user"
},
{
"content": "public AggregationBuilder buildAggregation(KunderaQuery query, EntityMetadata entityMetadata, Que... |
[
{
"content": "Adds the having clauses.\n\n@param havingExpression\nthe having expression\n@param aggregationBuilder\nthe aggregation builder\n@param entityMetadata\nthe entity metadata\n@return the aggregation builder",
"role": "user"
},
{
"content": "private AggregationBuilder addHavingClause(Expre... |
[
{
"content": "Process group by clause.\n\n@param expression\nthe expression\n@param entityMetadata\nthe entity metadata\n@param query\nthe query\n@return the terms builder",
"role": "user"
},
{
"content": "private TermsBuilder processGroupByClause(Expression expression, EntityMetadata entityMetadata... |
[
{
"content": "Process order by clause.\n\n@param termsBuilder\nthe terms builder\n@param orderByExpression\nthe order by expression\n@param groupByClause\nthe group by clause\n@param entityMetadata\nthe entity metadata",
"role": "user"
},
{
"content": "private void processOrderByClause(TermsBuilder ... |
[
{
"content": "Gets the top hits aggregation.\n\n@param selectStatement\nthe select statement\n@param size\nthe size\n@param entityMetadata\nthe entity metadata\n@return the top hits aggregation",
"role": "user"
},
{
"content": "private TopHitsBuilder getTopHitsAggregation(SelectStatement selectState... |
[
{
"content": "Builds the where aggregations.\n\n@param entityMetadata\nthe entity metadata\n@param filter\nthe filter\n@return the filter aggregation builder",
"role": "user"
},
{
"content": "private FilterAggregationBuilder buildWhereAggregations(EntityMetadata entityMetadata, QueryBuilder filter)\... |
[
{
"content": "Builds the select aggregations.\n\n@param selectStatement\nthe select statement\n@param entityMetadata\nthe entity metadata\n@param filter\nthe filter\n@return the filter aggregation builder",
"role": "user"
},
{
"content": "private AggregationBuilder buildSelectAggregations(Aggregatio... |
[
{
"content": "Append aggregation.\n\n@param collectionExpression\nthe collection expression\n@param entityMetadata\nthe entity metadata\n@param nestedAggregation\n@param aggregationBuilder\nthe aggregation builder\n@return the filter aggregation builder",
"role": "user"
},
{
"content": "private Aggr... |
[
{
"content": "Gets the aggregation.\n\n@param expression\nthe expression\n@param entityMetadata\nthe entity metadata\n@return the aggregation",
"role": "user"
},
{
"content": "private MetricsAggregationBuilder getMetricsAggregation(Expression expression, EntityMetadata entityMetadata)\n {\n ... |
[
{
"content": "Checks whether key exist in ES Query.\n\n@param key\nthe key\n@return true, if is new key",
"role": "user"
},
{
"content": "private boolean checkIfKeyExists(String key)\n {\n if (aggregationsKeySet == null)\n {\n aggregationsKeySet = new HashSet<String>();\n... |
[
{
"content": "Removes downed host pool from pool map.\n\n@param pool",
"role": "user"
},
{
"content": "private void removePool(IThriftPool pool)\r\n {\r\n Pelops.removePool(PelopsUtils.getPoolName(pool));\r\n Node[] nodes = ((CommonsBackedPool) pool).getCluster().getNodes();\r\n ... |
[
{
"content": "drop design document from db.",
"role": "user"
},
{
"content": "@Override\n public void dropSchema()\n {\n try\n {\n for (TableInfo tableInfo : tableInfos)\n {\n HttpResponse deleteResponse = null;\n Map<String, Ma... |
[
{
"content": "Instantiate http client.\n\n@return true, if successful",
"role": "user"
},
{
"content": "@Override\n protected boolean initiateClient()\n {\n try\n {\n SchemeSocketFactory ssf = null;\n ssf = PlainSocketFactory.getSocketFactory();\n ... |
[
{
"content": "Validate design document.\n\n@param tableInfos\nthe table infos",
"role": "user"
},
{
"content": "@Override\n protected void validate(List<TableInfo> tableInfos)\n {\n try\n {\n if (!checkForDBExistence())\n {\n throw new SchemaG... |
[
{
"content": "Update design document.\n\n@param tableInfos\nthe table infos",
"role": "user"
},
{
"content": "@Override\n protected void update(List<TableInfo> tableInfos)\n {\n try\n {\n HttpResponse response = null;\n\n createDatabaseIfNotExist(false);\n\n... |
[
{
"content": "Create database and design document.\n\n@param tableInfos\nthe table infos",
"role": "user"
},
{
"content": "@Override\n protected void create(List<TableInfo> tableInfos)\n {\n try\n {\n HttpResponse response = null;\n createDatabaseIfNotExist(... |
[
{
"content": "Creates the design doc for aggregations.\n\n@throws URISyntaxException\nthe URI syntax exception\n@throws UnsupportedEncodingException\nthe unsupported encoding exception\n@throws IOException\nSignals that an I/O exception has occurred.\n@throws ClientProtocolException\nthe client protocol excepti... |
[
{
"content": "Creates the view for select specific fields.\n\n@param views\nthe views",
"role": "user"
},
{
"content": "private void createViewForSelectSpecificFields(Map<String, MapReduce> views)\n {\n if (views.get(CouchDBConstants.FIELDS) == null)\n {\n MapReduce mapr ... |
[
{
"content": "Creates the view for count.\n\n@param views\nthe views",
"role": "user"
},
{
"content": "private void createViewForCount(Map<String, MapReduce> views)\n {\n if (views.get(CouchDBConstants.COUNT) == null)\n {\n MapReduce mapr = new MapReduce();\n m... |
[
{
"content": "Creates the view for sum.\n\n@param views\nthe views",
"role": "user"
},
{
"content": "private void createViewForSum(Map<String, MapReduce> views)\n {\n if (views.get(CouchDBConstants.SUM) == null)\n {\n MapReduce mapr = new MapReduce();\n mapr.se... |
[
{
"content": "Creates the view for max.\n\n@param views\nthe views",
"role": "user"
},
{
"content": "private void createViewForMax(Map<String, MapReduce> views)\n {\n if (views.get(CouchDBConstants.MAX) == null)\n {\n MapReduce mapr = new MapReduce();\n mapr.se... |
[
{
"content": "Creates the view for min.\n\n@param views\nthe views",
"role": "user"
},
{
"content": "private void createViewForMin(Map<String, MapReduce> views)\n {\n if (views.get(CouchDBConstants.MIN) == null)\n {\n MapReduce mapr = new MapReduce();\n mapr.se... |
[
{
"content": "Creates the view for avg.\n\n@param views\nthe views",
"role": "user"
},
{
"content": "private void createViewForAvg(Map<String, MapReduce> views)\n {\n if (views.get(CouchDBConstants.AVG) == null)\n {\n MapReduce mapr = new MapReduce();\n mapr.se... |
[
{
"content": "Creates the view if not exist.\n\n@param views\nthe views\n@param columnName\nthe column name",
"role": "user"
},
{
"content": "private void createViewIfNotExist(Map<String, MapReduce> views, String columnName)\n {\n if (views.get(columnName) == null)\n {\n ... |
[
{
"content": "Creates the view for select all if not exist.\n\n@param tableInfo\nthe table info\n@param views\nthe views",
"role": "user"
},
{
"content": "private void createViewForSelectAllIfNotExist(TableInfo tableInfo, Map<String, MapReduce> views)\n {\n if (views.get(\"all\") == null)\... |
[
{
"content": "Creates the view for select all.\n\n@param tableInfo\nthe table info\n@param views\nthe views",
"role": "user"
},
{
"content": "private void createViewForSelectAll(TableInfo tableInfo, Map<String, MapReduce> views)\n {\n MapReduce mapr = new MapReduce();\n mapr.setMap(... |
[
{
"content": "Creates the database if not exist.\n\n@param drop\nthe drop\n@throws URISyntaxException\nthe URI syntax exception\n@throws IOException\nSignals that an I/O exception has occurred.\n@throws ClientProtocolException\nthe client protocol exception",
"role": "user"
},
{
"content": "private ... |
[
{
"content": "Check for db existence.\n\n@return true, if successful\n@throws ClientProtocolException\nthe client protocol exception\n@throws IOException\nSignals that an I/O exception has occurred.\n@throws URISyntaxException\nthe URI syntax exception",
"role": "user"
},
{
"content": "private boole... |
[
{
"content": "Drop database.\n\n@throws IOException\nSignals that an I/O exception has occurred.\n@throws ClientProtocolException\nthe client protocol exception\n@throws URISyntaxException\nthe URI syntax exception",
"role": "user"
},
{
"content": "private void dropDatabase() throws IOException, Cli... |
[
{
"content": "Method to prepare class simple name to list of pu's mapping. 1 class can\nbe mapped to multiple persistence units, in case of RDBMS, in other cases\nit will only be 1!\n\n@param clazz\nentity class to be mapped.\n@param pu\ncurrent persistence unit name\n@param clazzToPuMap\ncollection holding map... |
[
{
"content": "On update.\n\n@param log\nthe log",
"role": "user"
},
{
"content": "private void onUpdate(EventLog log)\n {\n if (updateEvents == null)\n {\n updateEvents = new ConcurrentHashMap<Object, EventLog>();\n\n }\n\n updateEvents.put(log.getEntityId()... |
[
{
"content": "On insert.\n\n@param log\nthe log",
"role": "user"
},
{
"content": "private void onInsert(EventLog log)\n {\n if (insertEvents == null)\n {\n insertEvents = new ConcurrentHashMap<Object, EventLog>();\n }\n\n insertEvents.put(log.getEntityId(), ... |
[
{
"content": "Creates the id index.\n\n@param bucketName\nthe bucket name",
"role": "user"
},
{
"content": "private void createIdIndex(String bucketName)\n {\n Bucket bucket = null;\n try\n {\n bucket = CouchbaseBucketUtils.openBucket(cluster, bucketName, csmd.getB... |
[
{
"content": "Removes the bucket.\n\n@param name\nthe name",
"role": "user"
},
{
"content": "private void removeBucket(String name)\n {\n try\n {\n if (clusterManager.removeBucket(name))\n {\n LOGGER.info(\"Bucket [\" + name + \"] is removed!\");... |
[
{
"content": "Adds the bucket.\n\n@param name\nthe name",
"role": "user"
},
{
"content": "private void addBucket(String name)\n {\n String qouta = csmd.getBucketProperty(\"bucket.quota\");\n int bucketQuota = qouta != null ? Integer.parseInt(qouta) : DEFAULT_RAM_SIZE_IN_MB;\n ... |
[
{
"content": "Builds the index name.\n\n@param bucketName\nthe bucket name\n@return the string",
"role": "user"
},
{
"content": "private String buildIndexName(String bucketName)\n {\n if (bucketName == null)\n {\n throw new KunderaException(\"Bucket Name can't be null!\")... |
[
{
"content": "Gets the connection string.\n\n@param m\nthe m\n@return the connection string",
"role": "user"
},
{
"content": "public String getConnectionString(EntityMetadata m)\n {\n Properties properties = new Properties();\n\n String fileName = \"teradata.properties\";\n I... |
[
{
"content": "Links referenced resource to current transaction thread.\n\n@param implementor\nresource implementor.",
"role": "user"
},
{
"content": "public void setImplementor(ResourceManager implementor)\n {\n KunderaTransaction tx = threadLocal.get();\n if (tx == null)\n {... |
[
{
"content": "Gets the join column name.\n\n@return the joinColumnName",
"role": "user"
},
{
"content": "public String getJoinColumnName(final KunderaMetadata kunderaMetadata)\r\n {\r\n \r\n if(joinColumnName == null && isJoinedByPrimaryKey)\r\n {\r\n Entit... |
[
{
"content": "Checks if is unary.\n\n@return true, if is unary",
"role": "user"
},
{
"content": "public boolean isUnary()\r\n {\r\n return type.equals(Relation.ForeignKey.ONE_TO_ONE) || type.equals(Relation.ForeignKey.MANY_TO_ONE);\r\n }",
"role": "assistant"
}
] |
[
{
"content": "Checks if is collection.\n\n@return true, if is collection",
"role": "user"
},
{
"content": "public boolean isCollection()\r\n {\r\n return type.equals(Relation.ForeignKey.ONE_TO_MANY) || type.equals(Relation.ForeignKey.MANY_TO_MANY);\r\n }",
"role": "assistant"
}
] |
[
{
"content": "Populate rmap.\n\n@param entityMetadata\nthe entity metadata\n@param entity\nthe entity\n@return the map object",
"role": "user"
},
{
"content": "private MapObject populateRmap(EntityMetadata entityMetadata, Object entity)\n {\n MetamodelImpl metaModel = (MetamodelImpl) kunde... |
[
{
"content": "Iterate and populate rmap.\n\n@param entity\nthe entity\n@param metaModel\nthe meta model\n@param iterator\nthe iterator\n@return the map object",
"role": "user"
},
{
"content": "private MapObject iterateAndPopulateRmap(Object entity, MetamodelImpl metaModel, Iterator<Attribute> iterat... |
[
{
"content": "Fetch object.\n\n@return the e",
"role": "user"
},
{
"content": "private E fetchObject()\n {\n try\n {\n String previousSkip = \"&skip=\" + (skipCounter - 1);\n String currentSkip = \"&skip=\" + skipCounter;\n int indexOf = q.indexOf(pr... |
[
{
"content": "Split host names.\n\n@param hostNames\nthe host names\n@return the string[]",
"role": "user"
},
{
"content": "private String[] splitHostNames(String hostNames)\n {\n String[] hostArray = hostNames.split(Constants.COMMA);\n String[] hosts = new String[hostArray.length];... |
[
{
"content": "get Table metadata method returns the HTableDescriptor of table for given\ntableInfo\n\n@return HHTableDescriptor object for tableInfo",
"role": "user"
},
{
"content": "private HTableDescriptor getTableMetaData(List<TableInfo> tableInfos)\n {\n HTableDescriptor tableDescripto... |
[
{
"content": "Persists records into Join Table.\n\n@param joinTableData\nthe join table data",
"role": "user"
},
{
"content": "public void persistJoinTable(JoinTableData joinTableData)\n {\n Mutator mutator = clientFactory.getMutator(pool);\n\n String joinTableName = joinTableData.g... |
[
{
"content": "Load super columns.\n\n@param keyspace\nthe keyspace\n@param columnFamily\nthe column family\n@param rowId\nthe row id\n@param superColumnNames\nthe super column names\n@return the list",
"role": "user"
},
{
"content": "@Override\n public final List<SuperColumn> loadSuperColumns(Str... |
[
{
"content": "Find by range.\n\n@param minVal\nthe min val\n@param maxVal\nthe max val\n@param m\nthe m\n@param isWrapReq\nthe is wrap req\n@param relations\nthe relations\n@param columns\nthe columns\n@param conditions\nthe conditions\n@param maxResults\nthe max results\n@return the list\n@throws Exception\nth... |
[
{
"content": "Returns assigned jpa column name.\n\n@return column name jpa column name.",
"role": "user"
},
{
"content": "public String getJPAColumnName()\n {\n // In case of Attribute override.\n Column column = ((AbstractManagedType) this.managedType).getAttributeBinding(member);\... |
[
{
"content": "If property file is xml.\n\n@param propertyFileName\n@param puMetadata\n@return",
"role": "user"
},
{
"content": "private ClientProperties onParseXML(String propertyFileName, PersistenceUnitMetadata puMetadata)\n {\n InputStream inStream = puMetadata.getClassLoader().getResou... |
[
{
"content": "Initiate jpql object.\n\n@param jpaQuery\nthe jpa query",
"role": "user"
},
{
"content": "private void initiateJPQLObject(final String jpaQuery) {\n JPQLGrammar jpqlGrammar = EclipseLinkJPQLGrammar2_4.instance();\n this.jpqlExpression = new JPQLExpression(jpaQuery, jpqlGr... |
[
{
"content": "Sets the kundera query type object.",
"role": "user"
},
{
"content": "private void setKunderaQueryTypeObject() {\n\n try {\n if (isSelectStatement()) {\n\n this.setSelectStatement((SelectStatement) (this.getJpqlExpression().getQueryStatement()));\n\n ... |
[
{
"content": "Returns clause value for supplied parameter.\n\n@param paramString\nthe param string\n@return the clause value",
"role": "user"
},
{
"content": "public List<Object> getClauseValue(String paramString) {\n if (typedParameter != null && typedParameter.getParameters() != null) {\n ... |
[
{
"content": "Returns specific clause value.\n\n@param param\nparameter\n\n@return clause value.",
"role": "user"
},
{
"content": "public List<Object> getClauseValue(Parameter param) {\n Parameter match = null;\n if (typedParameter != null && typedParameter.jpaParameters != null) {\n ... |
[
{
"content": "Inits the update clause.",
"role": "user"
},
{
"content": "private void initUpdateClause() {\n for (UpdateClause updateClause : updateClauseQueue) {\n\n onTypedParameter(updateClause.getValue(), updateClause, updateClause.getProperty().trim());\n }\n\n }",
... |
[
{
"content": "Inits the entity class.",
"role": "user"
},
{
"content": "private void initEntityClass() {\n if (from == null) {\n throw new JPQLParseException(\"Bad query format FROM clause is mandatory for SELECT queries\");\n }\n String fromArray[] = from.split(\" \"... |
[
{
"content": "Inits the filter.",
"role": "user"
},
{
"content": "private void initFilter() {\n EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClass);\n Metamodel metaModel = kunderaMetadata.getApplicationMetadata().getMetamodel(getPersistence... |
[
{
"content": "Adds the discriminator clause.\n\n@param clauses\nthe clauses\n@param entityType\nthe entity type",
"role": "user"
},
{
"content": "private void addDiscriminatorClause(List<String> clauses, EntityType entityType) {\n if (((AbstractManagedType) entityType).isInherited()) {\n ... |
[
{
"content": "Filter jpa parameter info.\n\n@param type\nthe type\n@param name\nthe name\n@param fieldName\nthe field name",
"role": "user"
},
{
"content": "private void filterJPAParameterInfo(Type type, String name, String fieldName) {\n String attributeName = getAttributeName(fieldName);\n ... |
[
{
"content": "Gets the attribute name.\n\n@param fieldName\nthe field name\n@return the attribute name",
"role": "user"
},
{
"content": "private String getAttributeName(String fieldName) {\n String attributeName = fieldName;\n if (fieldName.indexOf(\".\") != -1) {\n attribut... |
[
{
"content": "Adds the update clause.\n\n@param property\nthe property\n@param value\nthe value",
"role": "user"
},
{
"content": "public void addUpdateClause(final String property, final String value) {\n UpdateClause updateClause = new UpdateClause(property.trim(), value.trim());\n up... |
[
{
"content": "Adds the filter clause.\n\n@param property\nthe property\n@param condition\nthe condition\n@param value\nthe value\n@param fieldName\nthe field name\n@param ignoreCase\nto ignore case in the filter",
"role": "user"
},
{
"content": "public void addFilterClause(final String property, fin... |
[
{
"content": "Method to skip string literal as per JPA specification. if literal starts is enclose within \"''\" then skip \"'\"\nand include \"'\" in case of \"''\" replace it with \"'\".\n\n@param value\nvalue.\n\n@return replaced string in case of string, else will return original value.",
"role": "user"... |
[
{
"content": "on query with user email id\n\n@param em entity manager instance.\n@param user user entity instance.\n@return collection of user instance.",
"role": "user"
},
{
"content": "static List<User> onQueryByEmail(final EntityManager em, final User user) \r\n {\r\n\t... |
[
{
"content": "On persist user.\n\n@param em entity manager instance.\n@param user user object.",
"role": "user"
},
{
"content": "static void onPersist(final EntityManager em, final User user) \r\n\t{\r\n\t\tlogger.info(\"\");\r\n\t\tlogger.info(\"\");\r\n\t\tlogger.info(\"###############... |
[
{
"content": "On find by user id.\n\n@param em entity manager instance.\n@param userId user id.",
"role": "user"
},
{
"content": "static User findByKey(final EntityManager em, final String userId)\r\n {\r\n User user = em.find(User.class, userId);\r\n logger.info(\"[On F... |
[
{
"content": "on find by wild search query.\n\n@param em entity manager instance.\n@param query query.",
"role": "user"
},
{
"content": "@SuppressWarnings(\"unchecked\")\r\n\tstatic void findByQuery(final EntityManager em, final String query)\r\n {\r\n Query q = em.createNamedQu... |
[
{
"content": "On find by native CQL3 query.\n\n@param em entity manager instance.\n@param query native cql3 query.",
"role": "user"
},
{
"content": "@SuppressWarnings(\"unchecked\")\r\n\tstatic void findByNativeQuery(final EntityManager em, final String query)\r\n {\r\n\r\n ... |
[
{
"content": "On print tweets event.\n\n@param tweets",
"role": "user"
},
{
"content": "private static void onPrintTweets(final List<Tweets> tweets)\r\n {\r\n for (Iterator<Tweets> iterator = tweets.iterator(); iterator.hasNext();)\r\n {\r\n\r\n int counter = 1;\r\n ... |
[
{
"content": "Adds the element collection metadata.\n\n@param elementCollectionMetadata\nthe element collection metadata",
"role": "user"
},
{
"content": "public void addElementCollectionMetadata(CollectionColumnInfo elementCollectionMetadata)\n {\n if (this.elementCollectionMetadatas == n... |
[
{
"content": "Adds the column info.\n\n@param columnInfo\nthe column info",
"role": "user"
},
{
"content": "public void addColumnInfo(ColumnInfo columnInfo)\n {\n if (this.columnMetadatas == null)\n {\n this.columnMetadatas = new ArrayList<ColumnInfo>();\n }\n ... |
[
{
"content": "Adds the embedded column info.\n\n@param embdColumnInfo\nthe embd column info",
"role": "user"
},
{
"content": "public void addEmbeddedColumnInfo(EmbeddedColumnInfo embdColumnInfo)\n {\n if (this.embeddedColumnMetadatas == null)\n {\n this.embeddedColumnMeta... |
[
{
"content": "Adds the collection column metadata.\n\n@param collectionColumnMetadata\nthe collection column metadata",
"role": "user"
},
{
"content": "public void addCollectionColumnMetadata(CollectionColumnInfo collectionColumnMetadata)\n {\n if (this.collectionColumnMetadatas == null)\n... |
[
{
"content": "Gets the column to be indexed.\n\n@param columnName\nthe column name\n@return the column to be indexed",
"role": "user"
},
{
"content": "public IndexInfo getColumnToBeIndexed(String columnName)\n {\n IndexInfo idxInfo = new IndexInfo(columnName);\n if (columnToBeIndexe... |
[
{
"content": "Adds the to indexed column list.\n\n@param indexInfo\nthe index info",
"role": "user"
},
{
"content": "public void addToIndexedColumnList(IndexInfo indexInfo)\n {\n ColumnInfo columnInfo = new ColumnInfo();\n columnInfo.setColumnName(indexInfo.getColumnName());\n ... |
[
{
"content": "Close the factory, releasing any resources that it holds. After a factory\ninstance has been closed, all methods invoked on it will throw the\nIllegalStateException, except for isOpen, which will return false. Once\nan EntityManagerFactory has been closed, all its entity managers are\nconsidered t... |
[
{
"content": "Create a new application-managed EntityManager with the specified Map of\nproperties. This method returns a new EntityManager instance each time it\nis invoked. The isOpen method will return true on the returned instance.\n\n@param map\nproperties for entity manager\n@return entity manager instanc... |
[
{
"content": "Return an instance of Metamodel interface for access to the metamodel of\nthe persistence unit.\n\n@return Metamodel instance\n@throws IllegalStateException\nif the entity manager factory has been closed\n@see javax.persistence.EntityManagerFactory#getMetamodel()",
"role": "user"
},
{
... |
[
{
"content": "Initialize and load clientFactory for all persistenceUnit with external\nproperties.\n\n@param persistenceUnit\n@param externalProperties",
"role": "user"
},
{
"content": "private void configureClientFactories()\r\n {\r\n ClientMetadataBuilder builder = new ClientMetadataBuil... |
[
{
"content": "Inits the second level cache.\n\n@return the cache provider",
"role": "user"
},
{
"content": "private CacheProvider initSecondLevelCache(final PersistenceUnitMetadata puMetadata)\r\n {\r\n\r\n String classResourceName = (String) getProperties().get(PersistenceProperties.KUNDE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.