conversation listlengths 2 2 |
|---|
[
{
"content": "Read embeddable.\n\n@param key\nthe key\n@param columnsToSelect\nthe columns to select\n@param entityMetadata\nthe entity metadata\n@param metamodel\nthe metamodel\n@param schemaTable\nthe schema table\n@param value\nthe value\n@param attribute\nthe attribute",
"role": "user"
},
{
"con... |
[
{
"content": "Delete by primary key.\n\n@param entity\nthe entity\n@param pKey\nthe key",
"role": "user"
},
{
"content": "@Override\n public void delete(Object entity, Object pKey)\n {\n EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.get... |
[
{
"content": "Adds the ops.\n\n@param operations\nthe operations\n@param schemaTable\nthe schema table\n@param row\nthe row",
"role": "user"
},
{
"content": "private void addOps(Map<Key, List<TableOperation>> operations, Table schemaTable, Row row)\n {\n Key key = ((TableImpl) schemaTable)... |
[
{
"content": "On JPQL query execution.\n\n@param <E>\nthe element type\n@param entityClass\nentity class.\n@param interpreter\nquery interpreter\n@param primaryKeys\nset of primary keys. Empty if\n@return the list",
"role": "user"
},
{
"content": "public <E> List<E> executeQuery(Class<E> entityClass... |
[
{
"content": "Find by relational column name and 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": "@Override\n public List<Object> findByRelation(String colName, Object colValue, Class e... |
[
{
"content": "Iterate and store attributes.\n\n@param entity\nJPA entity.\n@param metamodel\nJPA meta model.\n@param row\nkv row.\n@param attributes\nJPA attributes.\n@param schemaTable\nthe schema table\n@param metadata\nthe metadata",
"role": "user"
},
{
"content": "private void process(Object ent... |
[
{
"content": "Process embeddable attribute.\n\n@param entity\nthe entity\n@param metamodel\nthe metamodel\n@param row\nthe row\n@param schemaTable\nthe schema table\n@param metadata\nthe metadata\n@param attribute\nthe attribute",
"role": "user"
},
{
"content": "private void processEmbeddableAttribu... |
[
{
"content": "Process relational attributes.\n\n@param rlHolders\nrelation holders\n@param row\nkv row object\n@param schemaTable\nthe schema table",
"role": "user"
},
{
"content": "private void onRelationalAttributes(List<RelationHolder> rlHolders, Row row, Table schemaTable)\n {\n // Ite... |
[
{
"content": "Process discriminator columns.\n\n@param row\nkv row object.\n@param entityType\nmetamodel attribute.\n@param schemaTable\nthe schema table",
"role": "user"
},
{
"content": "private void addDiscriminatorColumn(Row row, EntityType entityType, Table schemaTable)\n {\n String di... |
[
{
"content": "setter field.\n\n@param row\nthe row\n@param schemaTable\nthe schema table\n@param embeddedObject\nthe embedded object\n@param embeddedAttrib\nthe embedded attrib",
"role": "user"
},
{
"content": "private void setField(Row row, Table schemaTable, Object embeddedObject, Attribute embedd... |
[
{
"content": "Populate id.\n\n@param entityMetadata\nthe entity metadata\n@param schemaTable\nthe schema table\n@param entity\nthe entity\n@param row\nthe row",
"role": "user"
},
{
"content": "private void populateId(EntityMetadata entityMetadata, Table schemaTable, Object entity, Row row)\n {\n ... |
[
{
"content": "On embeddable id.\n\n@param entityMetadata\nthe entity metadata\n@param metaModel\nthe meta model\n@param schemaTable\nthe schema table\n@param entity\nthe entity\n@param row\nthe row\n@throws InstantiationException\nthe instantiation exception\n@throws IllegalAccessException\nthe illegal access e... |
[
{
"content": "Initialize entity.\n\n@param key\nthe key\n@param entityMetadata\nthe entity metadata\n@return the object\n@throws InstantiationException\nthe instantiation exception\n@throws IllegalAccessException\nthe illegal access exception",
"role": "user"
},
{
"content": "private Object initiali... |
[
{
"content": "On index search.\n\n@param <E>\nthe element type\n@param interpreter\nthe interpreter\n@param entityMetadata\nthe entity metadata\n@param metamodel\nthe metamodel\n@param results\nthe results\n@param columnsToSelect\nthe columns to select\n@return the list",
"role": "user"
},
{
"conten... |
[
{
"content": "Creates the row.\n\n@param entityMetadata\nthe entity metadata\n@param entity\nthe entity\n@param id\nthe id\n@param rlHolders\nthe rl holders\n@return the row",
"role": "user"
},
{
"content": "private Row createRow(EntityMetadata entityMetadata, Object entity, Object id, List<Relation... |
[
{
"content": "Eligible to fetch.\n\n@param columnsToSelect\nthe columns to select\n@param columnName\nthe column name\n@return true, if successful",
"role": "user"
},
{
"content": "private boolean eligibleToFetch(List<String> columnsToSelect, String columnName)\n {\n return (columnsToSelec... |
[
{
"content": "Creates the and execute query.\n\n@param interpreter\nthe interpreter\n@return the list",
"role": "user"
},
{
"content": "List createAndExecuteQuery(CouchDBQueryInterpreter interpreter)\n {\n EntityMetadata m = interpreter.getMetadata();\n List results = new ArrayList(... |
[
{
"content": "Execute query and get results.\n\n@param q\nthe q\n@param _id\nthe _id\n@param m\nthe m\n@param results\nthe results\n@param interpreter\nthe interpreter\n@throws IOException\nSignals that an I/O exception has occurred.\n@throws URISyntaxException\nthe URI syntax exception\n@throws ClientProtocolE... |
[
{
"content": "Sets the aggregated values in result.\n\n@param results\nthe results\n@param interpreter\nthe interpreter\n@param array\nthe array",
"role": "user"
},
{
"content": "private void setAggregatedValuesInResult(List results, CouchDBQueryInterpreter interpreter, JsonArray array)\n {\n ... |
[
{
"content": "Sets the specific fields in result.\n\n@param columnsToOutput\nthe columns to output\n@param m\nthe m\n@param results\nthe results\n@param array\nthe array",
"role": "user"
},
{
"content": "private void setSpecificFieldsInResult(List<Map<String, Object>> columnsToOutput, EntityMetadata... |
[
{
"content": "Sets the entities in result.\n\n@param m\nthe m\n@param results\nthe results\n@param array\nthe array",
"role": "user"
},
{
"content": "private void setEntitiesInResult(EntityMetadata m, List results, JsonArray array)\n {\n for (JsonElement element : array)\n {\n\n ... |
[
{
"content": "Gets the json from response.\n\n@param response\nthe response\n@return the json from response\n@throws IOException\nSignals that an I/O exception has occurred.",
"role": "user"
},
{
"content": "private JsonArray getJsonFromResponse(HttpResponse response) throws IOException\n {\n ... |
[
{
"content": "Gets the single instance of LuceneIndexer.\n\n@param analyzer\nthe analyzer\n@param lucDirPath\nthe luc dir path\n@return single instance of LuceneIndexer",
"role": "user"
},
{
"content": "public static synchronized LuceneIndexer getInstance(String lucDirPath)\n {\n // super(... |
[
{
"content": "Returns default index reader.\n\n@return index reader.",
"role": "user"
},
{
"content": "private IndexReader getIndexReader()\n {\n // removed flushInternal() call while reading\n if (reader == null)\n {\n try\n {\n if (!isIn... |
[
{
"content": "Creates a Lucene index directory if it does not exist.\n\n@return the index directory",
"role": "user"
},
{
"content": "private File getIndexDirectory()\n {\n File file = new File(luceneDirPath);\n\n if (!file.isDirectory())\n {\n file.mkdir();\n ... |
[
{
"content": "search the data from lucene for embeddedid\n\n@param docs\n@param indexCol\n@param searcher\n@param metadata\n@param metaModel",
"role": "user"
},
{
"content": "public void prepareEmbeddedId(TopDocs docs, Map<String, Object> indexCol, IndexSearcher searcher,\n EntityMetadata... |
[
{
"content": "Flush internal.",
"role": "user"
},
{
"content": "private void flushInternal()\n {\n try\n {\n if (w != null && readyForCommit)\n {\n // w.optimize();\n w.commit();\n copy(index, FSDirectory.open(getInd... |
[
{
"content": "Close of transaction.",
"role": "user"
},
{
"content": "public void close()\n {\n try\n {\n if (w != null && readyForCommit)\n {\n w.commit();\n copy(index, FSDirectory.open(getIndexDirectory().toPath()));\n ... |
[
{
"content": "Index document.\n\n@param metadata\nthe metadata\n@param object\nthe object\n@param parentId\nthe parent id\n@param clazz\nthe clazz\n@return the document",
"role": "user"
},
{
"content": "private Document indexDocument(EntityMetadata metadata, final MetamodelImpl metaModel, Object obj... |
[
{
"content": "update or Create Index for non super columnfamily\n\n@param metadata\n@param metaModel\n@param entity\n@param parentId\n@param clazz\n@param isUpdate\n@param isEmbeddedId\n@param rowKey\n@return",
"role": "user"
},
{
"content": "private Document updateOrCreateIndexNonSuperColumnFamily(... |
[
{
"content": "update or create indexes when embedded object is of collection type\n\n@param metadata\n@param metaModel\n@param entity\n@param parentId\n@param clazz\n@param isUpdate\n@param document\n@param embeddedObject\n@param rowKey\n@param attributeName\n@param embeddableAttribute\n@return",
"role": "u... |
[
{
"content": "Updates document.\n\n@param metadata\nthe metadata\n@param entity\nthe object\n@param parentId\nthe parent id\n@param clazz\nthe clazz\n@return the document",
"role": "user"
},
{
"content": "private void updateDocument(EntityMetadata metadata, final MetamodelImpl metaModel, Object enti... |
[
{
"content": "Append range.\n\n@param value\nthe value\n@param inclusive\nthe inclusive\n@param isGreaterThan\nthe is greater than\n@return the string",
"role": "user"
},
{
"content": "private String appendRange(final String value, final boolean inclusive, final boolean isGreaterThan,\n f... |
[
{
"content": "Deep copy.\n\n@param source\nthe source\n@param kunderaMetadata\nthe kundera metadata\n@return the object",
"role": "user"
},
{
"content": "public static final Object deepCopy(Object source, final KunderaMetadata kunderaMetadata)\n {\n Map<Object, Object> copiedObjectMap = ne... |
[
{
"content": "Search in cache then copy.\n\n@param copiedObjectMap\nthe copied object map\n@param sourceObject\nthe source object\n@param kunderaMetadata\nthe kundera metadata\n@return the object",
"role": "user"
},
{
"content": "private static Object searchInCacheThenCopy(Map<Object, Object> copied... |
[
{
"content": "Gets the field instance.\n\n@param chids\nthe chids\n@param f\nthe f\n@return the field instance",
"role": "user"
},
{
"content": "public static Object getFieldInstance(List chids, Field f)\n {\n\n if (Set.class.isAssignableFrom(f.getType()))\n {\n Set col =... |
[
{
"content": "Gets the entity from GFSDBFile.\n\n@param entityClazz\nthe entity clazz\n@param entity\nthe entity\n@param m\nthe m\n@param outputFile\nthe output file\n@param kunderaMetadata\nthe kundera metadata\n@return the entity from GFSDBFile",
"role": "user"
},
{
"content": "public Object getEn... |
[
{
"content": "Gets the document from entity.\n\n@param m\nthe m\n@param entity\nthe entity\n@param relations\nthe relations\n@return the document from entity\n@throws PropertyAccessException\nthe property access exception",
"role": "user"
},
{
"content": "public Map<String, DBObject> getDocumentFrom... |
[
{
"content": "Gets the GFSInputFile from entity.\n\n@param gfs\nthe gfs\n@param m\nthe m\n@param entity\nthe entity\n@param kunderaMetadata\nthe kundera metadata\n@return the GFS iuput file from entity",
"role": "user"
},
{
"content": "public GridFSInputFile getGFSInputFileFromEntity(GridFS gfs, Ent... |
[
{
"content": "Creates the GFS Input file.\n\n@param gfs\nthe gfs\n@param entity\nthe entity\n@param f\nthe f\n@return the grid fs input file",
"role": "user"
},
{
"content": "private GridFSInputFile createGFSInputFile(GridFS gfs, Object entity, Field f)\n {\n Object obj = PropertyAccessorH... |
[
{
"content": "Gets the lob from GFS entity.\n\n@param gfs\nthe gfs\n@param m\nthe m\n@param entity\nthe entity\n@param kunderaMetadata\nthe kundera metadata\n@return the lob from gfs entity",
"role": "user"
},
{
"content": "public Object getLobFromGFSEntity(GridFS gfs, EntityMetadata m, Object entit... |
[
{
"content": "Gets the metadata from GFS entity.\n\n@param gfs\nthe gfs\n@param m\nthe m\n@param entity\nthe entity\n@param kunderaMetadata\nthe kundera metadata\n@return the metadata from GFS entity",
"role": "user"
},
{
"content": "public DBObject getMetadataFromGFSEntity(GridFS gfs, EntityMetadat... |
[
{
"content": "Add a Fragment to this PagerFragment.\n\n@param title The title of the {@link android.app.Fragment} to be added\n@param fragment The {@link android.app.Fragment} to be added\n@return The current PagerFragmentInstance",
"role": "user"
},
{
"content": "@SuppressWarnings({\"UnusedRetur... |
[
{
"content": "Default material red transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style red() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_RED);\r\n return style... |
[
{
"content": "Default material pink transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style pink() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_PINK);\r\n return st... |
[
{
"content": "Default material purple transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style purple() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_PURPLE);\r\n ret... |
[
{
"content": "Default material deep purple transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style deepPurple() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_DEEP_PURPLE);\... |
[
{
"content": "Default material indigo transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style indigo() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_INDIGO);\r\n ret... |
[
{
"content": "Default material blue transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style blue() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_BLUE);\r\n return st... |
[
{
"content": "Default material light blue transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style lightBlue() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_LIGHT_BLUE);\r\n... |
[
{
"content": "Default material cyan transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style cyan() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_CYAN);\r\n return st... |
[
{
"content": "Default material teal transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style teal() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_TEAL);\r\n return st... |
[
{
"content": "Default material green transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style green() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_GREEN);\r\n return... |
[
{
"content": "Default material light green transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style lightGreen() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_LIGHT_GREEN);\... |
[
{
"content": "Default material lime transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style lime() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_LIME);\r\n style.mes... |
[
{
"content": "Default material yellow transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style yellow() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_YELLOW);\r\n sty... |
[
{
"content": "Default material amber transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style amber() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_AMBER);\r\n return... |
[
{
"content": "Default material orange transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style orange() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_ORANGE);\r\n ret... |
[
{
"content": "Default material deep orange transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style deepOrange() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_DEEP_ORANGE);\... |
[
{
"content": "Default material brown transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style brown() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_BROWN);\r\n return... |
[
{
"content": "Default material grey transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style grey() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_GREY);\r\n return st... |
[
{
"content": "Default material blue-grey transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style blueGrey() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_BLUE_GREY);\r\n ... |
[
{
"content": "Default material rotten banana transparent style for SuperToasts.\n@return A new Style",
"role": "user"
},
{
"content": "public static Style rottenBanana() {\r\n final Style style = new Style();\r\n style.color = PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_YELLOW);\r... |
[
{
"content": "Set the progress of the ProgressBar in a TYPE_PROGRESS_BAR SuperActivityToast.\nThis can be called multiple times after the SuperActivityToast is showing.\n\n@param progress The desired progress\n@return The current SuperActivityToast instance",
"role": "user"
},
{
"content": "public S... |
[
{
"content": "Protected View that is overridden by the SuperActivityToast class.",
"role": "user"
},
{
"content": "@SuppressLint(\"InflateParams\")\r\n protected View onCreateView(Context context, LayoutInflater layoutInflater, int type) {\r\n return layoutInflater.inflate(R.layout.superto... |
[
{
"content": "Returns a density independent pixel value rounded to the nearest integer\nfor the desired dimension.\n\n@param pixels The pixel value to be converted\n@return A rounded DIP value",
"role": "user"
},
{
"content": "public static int convertToDIP(int pixels) {\n return Math.round(Ty... |
[
{
"content": "Show the next SuperToast in the current queue. If a SuperToast is currently showing,\ndo nothing. The currently showing SuperToast will call this method when it dismisses.",
"role": "user"
},
{
"content": "private void showNextSuperToast() {\r\n // Do nothing if the queue is emp... |
[
{
"content": "Send a message at a later time. This is used to dismiss a SuperToast.",
"role": "user"
},
{
"content": "private void sendDelayedMessage(SuperToast superToast, int messageId, long delay) {\r\n Message message = obtainMessage(messageId);\r\n message.obj = superToast;\r\n ... |
[
{
"content": "Try to show the SuperToast. SuperToasts will be shown using the WindowManager while\nSuperActivityToasts will be shown using their supplied ViewGroup.\n@param superToast the SuperToast (or SuperActivityToast) to be shown",
"role": "user"
},
{
"content": "private void displaySuperToast(... |
[
{
"content": "Removes a showing SuperToast. This method will poll the Queue as well as try\nto show the next SuperToast if one exists in the Queue.\n@param superToast the SuperToast (or SuperActivityToast) to be removed",
"role": "user"
},
{
"content": "void removeSuperToast(final SuperToast superTo... |
[
{
"content": "insert value into the db through the specified connection.\n\n@param value the value\n@throws SQLException if an error occurs",
"role": "user"
},
{
"content": "public void create(final T value) throws SQLException {\n transactionTemplate\n .doInTransaction(new SQ... |
[
{
"content": "delete the objects with the specified keys.\n\n@param keys the keys\n@throws SQLException if an error occurs",
"role": "user"
},
{
"content": "public void delete(final Collection<K> keys) throws SQLException {\n transactionTemplate\n .doInTransaction(new SQLFunc... |
[
{
"content": "write the specified value to the underlying appendable.\n@param value the value to write\n@return the current writer\n@throws IOException If an I/O error occurs",
"role": "user"
},
{
"content": "public CsvWriter<T> append(T value) throws IOException {\n try {\n mapper... |
[
{
"content": "add a new mapping to the specified property with a key property definition and an undefined type.\nThe index is incremented for each non indexed property mapping.\n\n@param column the property name\n@return the current builder",
"role": "user"
},
{
"content": "public final B addKey(Str... |
[
{
"content": "append a FieldMapper to the mapping list.\n\n@param mapper the field jdbcMapper\n@return the current builder",
"role": "user"
},
{
"content": "@SuppressWarnings(\"unchecked\")\n public final B addMapper(FieldMapper<ROW, T> mapper) {\n setRowMapperBuilder.addMapper(mapper);\n ... |
[
{
"content": "Override the default implementation of the GetterFactory used to get access to value from the ResultSet.\n@param getterFactory the getterFactory\n@return the current factory",
"role": "user"
},
{
"content": "public JdbcMapperFactory getterFactory(final GetterFactory<ResultSet, JdbcColu... |
[
{
"content": "Associate the specified FieldMapper for the specified property.\n@param key the property\n@param fieldMapper the fieldMapper\n@return the current factory",
"role": "user"
},
{
"content": "public JdbcMapperFactory addCustomFieldMapper(String key, FieldMapper<ResultSet, ?> fieldMapper) {... |
[
{
"content": "Associate the specified Getter for the specified property.\n@param key the property\n@param getter the getter\n@return the current factory",
"role": "user"
},
{
"content": "public JdbcMapperFactory addCustomGetter(String key, Getter<ResultSet, ?> getter) {\n\t\treturn addColumnDefiniti... |
[
{
"content": "Will create a newInstance of JdbcMapper based on the specified metadata and the target class.\n@param target the target class of the jdbcMapper\n@param metaData the metadata to create the jdbcMapper from\n@param <T> the jdbcMapper target type\n@return a jdbcMapper that will map the data represente... |
[
{
"content": "Will create a newInstance of JdbcMapperBuilder on the specified target class.\n@param target the target class\n@param <T> the jdbcMapper target type\n@return the builder",
"role": "user"
},
{
"content": "public <T> JdbcMapperBuilder<T> newBuilder(final Class<T> target) {\n\t\treturn ne... |
[
{
"content": "Will create a newInstance of JdbcMapperBuilder on the type T specified by the typeReference.\n@param target the typeReference\n@param <T> the jdbcMapper target type\n@return the builder",
"role": "user"
},
{
"content": "public <T> JdbcMapperBuilder<T> newBuilder(final TypeReference<T> ... |
[
{
"content": "Will create a newInstance of JdbcMapperBuilder on the specified type.\n@param target the type\n@param <T> the jdbcMapper target type\n@return the builder",
"role": "user"
},
{
"content": "public <T> JdbcMapperBuilder<T> newBuilder(final Type target) {\n\t\tClassMeta<T> classMeta = getC... |
[
{
"content": "Will create a DynamicMapper on the specified target class.\n@param target the class\n@param <T> the jdbcMapper target type\n@return the DynamicMapper",
"role": "user"
},
{
"content": "public <T> DynamicJdbcMapper<T> newMapper(final Class<T> target) {\n\t\treturn newMapper((Type) target... |
[
{
"content": "Will create a DynamicMapper on the type specified by the TypeReference.\n@param target the TypeReference\n@param <T> the jdbcMapper target type\n@return the DynamicMapper",
"role": "user"
},
{
"content": "public <T> DynamicJdbcMapper<T> newMapper(final TypeReference<T> target) {\n ... |
[
{
"content": "Will create a DynamicMapper on the specified type.\n@param target the type\n@param <T> the jdbcMapper target type\n@return the DynamicMapper",
"role": "user"
},
{
"content": "public <T> DynamicJdbcMapper<T> newMapper(final Type target) {\n\t\tfinal ClassMeta<T> classMeta = getClassMeta... |
[
{
"content": "Create a discriminator builder based on the specified property\n@param column the discriminator property\n@param <T> the root type of the jdbcMapper\n@return a builder to specify the type mapping",
"role": "user"
},
{
"content": "public <T> DiscriminatorJdbcBuilder<T> newDiscriminator(... |
[
{
"content": "the keys are initialised",
"role": "user"
},
{
"content": "protected <P> void addMapping(K columnKey, ColumnDefinition<K, ?> columnDefinition, PropertyMeta<T, P> prop) {\n\t\tpropertyMappingsBuilder.addProperty(columnKey, columnDefinition, prop);\n\t}",
"role": "assistant"
}
] |
[
{
"content": "Add a discriminator value with its associated type.\n@param value the value\n@param type the type\n@return the current builder",
"role": "user"
},
{
"content": "public DiscriminatorJdbcSubBuilder when(String value, Type type) {\n return when(new DiscriminatorPredicate(value), ty... |
[
{
"content": "Add a discriminator matching predicate with its associated type.\n@param predicate the predicate\n@param type the type\n@return the current builder",
"role": "user"
},
{
"content": "public DiscriminatorJdbcSubBuilder when(Predicate<String> predicate, Type type) {\n final Discrim... |
[
{
"content": "Add a discriminator value with its associated class.\n@param value the value\n@param type the class\n@return the current builder",
"role": "user"
},
{
"content": "public DiscriminatorJdbcSubBuilder when(String value, Class<? extends T> type) {\n return when(value, (Type)type);\n... |
[
{
"content": "Add a discriminator value with its associated type specified by the type reference.\n@param value the value\n@param type the type reference\n@return the current builder",
"role": "user"
},
{
"content": "public DiscriminatorJdbcSubBuilder when(String value, TypeReference<? extends T> ty... |
[
{
"content": "add a new mapping to the specified property with the specified index and the specified type.\n\n@param column the property name\n@param index the property index\n@param sqlType the property type, @see java.sql.Types\n@return the current builder",
"role": "user"
},
{
"content": "publ... |
[
{
"content": "ignore empty parent useful to skip root keys",
"role": "user"
},
{
"content": "private int getNonEmptyParentIndex() {\n return parent == null\n ? -1\n : parent.effectiveKeys().isEmpty() ? parent.getNonEmptyParentIndex() : parent.currentIndex;\n }... |
[
{
"content": "copy of Integer.parseInt",
"role": "user"
},
{
"content": "public static int parseInt(char[] s, int beginIndex, int endIndex)\n throws NumberFormatException {\n s = Objects.requireNonNull(s);\n\n if (beginIndex < 0 || beginIndex > endIndex || endIndex > s.lengt... |
[
{
"content": "set a new getterFactory.\n@param getterFactory the getterFactory\n@return the newInstance",
"role": "user"
},
{
"content": "public SheetMapperFactory getterFactory(GetterFactory<Row, CsvColumnKey> getterFactory) {\n return super.addGetterFactory(new ContextualGetterFactoryAdapte... |
[
{
"content": "update the objects.\n\n@param values the objects\n@throws DataAccessException if an error occurs",
"role": "user"
},
{
"content": "public void update(final Collection<T> values) throws DataAccessException {\n jdbcTemplate.execute(new ConnectionCallback<Object>() {\n ... |
[
{
"content": "delete the object with the specified key.\n\n@param key the key\n@throws DataAccessException if an error occurs",
"role": "user"
},
{
"content": "public void delete(final K key) throws DataAccessException {\n jdbcTemplate.execute(new ConnectionCallback<Object>() {\n ... |
[
{
"content": "assume parameter name are either present or not for the type",
"role": "user"
},
{
"content": "private static boolean _areParameterNamePresent(Type target) {\n Class<?> targetClass = TypeHelper.toClass(target);\n\n for(Method m : targetClass.getDeclaredMethods()) {\n ... |
[
{
"content": "Will create a newInstance of ResultSetMapperBuilder\n@param target the target class of the jdbcMapper\n@param <T> the targeted type\n@return a builder ready to instantiate a jdbcMapper or to be customized\n@throws MapperBuildingException if an error occurs building the jdbcMapper",
"role": "us... |
[
{
"content": "copy from Array.deepHashCode0",
"role": "user"
},
{
"content": "private int _hashCode(Object values) {\n int valueHash = 0;\n if (values instanceof Object[])\n valueHash = Arrays.deepHashCode((Object[]) values);\n else if (values instanceof byte[])\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.