conversation
listlengths
2
2
[ { "content": "Merge the state of the given entity into the current persistence context.\n\n@param entity\n@return the managed instance that the state was merged to\n@throws IllegalArgumentException\nif instance is not an entity or is a removed entity\n@throws TransactionRequiredException\nif invoked on a contai...
[ { "content": "Find by primary key. Search for an entity of the specified class and\nprimary key. If the entity instance is contained in the persistence\ncontext it is returned from there.\n\n@param entityClass\n@param primaryKey\n@return the found entity instance or null if the entity does not exist\n@throws Il...
[ { "content": "Find by primary key, using the specified properties. Search for an entity\nof the specified class and primary key. If the entity instance is\ncontained in the persistence context it is returned from there. If a\nvendor-specific property or hint is not recognized, it is silently\nignored.\n\n@param...
[ { "content": "Refresh the state of the instance from the database, using the specified\nproperties, and overwriting changes made to the entity, if any. If a\nvendor-specific property or hint is not recognized, it is silently\nignored.\n\n@param entity\n@param properties\nstandard and vendor-specific properties ...
[ { "content": "Set an entity manager property or hint. If a vendor-specific property or\nhint is not recognized, it is silently ignored.\n\n@param propertyName\nname of property or hint\n@param value\n@throws IllegalArgumentException\nif the second argument is not valid for the implementation\n@see javax.persist...
[ { "content": "Gets the props.\n\n@param fileName\nthe file name\n@return the props\n@throws Exception\nthe exception", "role": "user" }, { "content": "public static Properties getProps(String fileName) throws Exception\n {\n Properties properties = new Properties();\n InputStream in...
[ { "content": "On bind.\n\n@param clazz\nthe clazz", "role": "user" }, { "content": "private static void onBind(Class clazz)\n {\n\n if (((MetamodelImpl) em.getMetamodel()).getEntityMetadataMap().isEmpty())\n {\n\n EntityMetadata metadata = new EntityMetadata(clazz);\n ...
[ { "content": "Sets the schema and pu.\n\n@param clazz\nthe clazz\n@param metadata\nthe metadata", "role": "user" }, { "content": "private static void setSchemaAndPU(Class<?> clazz, EntityMetadata metadata)\n {\n Table table = clazz.getAnnotation(Table.class);\n if (table != null)\n ...
[ { "content": "Adds the where condition.\n\n@param asPath\nthe as path\n@param identifier\nthe identifier\n@param colName\nthe col name\n@param val\nthe val\n@param tableName\nthe table name\n@return the statement", "role": "user" }, { "content": "public Statement addWhereCondition(AsPath asPath, Str...
[ { "content": "Adds the join columns.\n\n@param joinColumn\nthe joinColumns to add", "role": "user" }, { "content": "public void addJoinColumns(String joinColumn)\n {\n if (joinColumns == null || joinColumns.isEmpty())\n {\n joinColumns = new HashSet<String>();\n }\...
[ { "content": "Adds the inverse join columns.\n\n@param inverseJoinColumn\nthe inverseJoinColumns to add", "role": "user" }, { "content": "public void addInverseJoinColumns(String inverseJoinColumn)\n {\n if (inverseJoinColumns == null || inverseJoinColumns.isEmpty())\n {\n ...
[ { "content": "Gets the table name.\n\n@return the tableName", "role": "user" }, { "content": "public String getTableName()\r\n {\r\n getEntityType();\r\n\r\n return this.entityType != null && !StringUtils.isBlank(((AbstractManagedType) this.entityType).getTableName()) ? ((AbstractMa...
[ { "content": "Gets the schema.\n\n@return the schema", "role": "user" }, { "content": "public String getSchema()\r\n {\r\n getEntityType();\r\n\r\n return this.entityType != null && !StringUtils.isBlank(((AbstractManagedType) this.entityType).getSchemaName()) ? ((AbstractManagedType...
[ { "content": "Adds the relation.\n\n@param property\nthe property\n@param relation\nthe relation", "role": "user" }, { "content": "public void addRelation(String property, Relation relation)\r\n {\r\n relationsMap.put(property, relation);\r\n addRelationName(relation);\r\n }", ...
[ { "content": "Method to add specific relation name for given relational field.\n\n@param rField\nrelation object.", "role": "user" }, { "content": "private void addRelationName(Relation rField)\r\n {\r\n if (rField != null && !rField.isRelatedViaJoinTable())\r\n {\r\n Str...
[ { "content": "Adds relation name to relation name collection.\n\n@param relationName\nrelational name", "role": "user" }, { "content": "private void addToRelationNameCollection(String relationName)\r\n {\r\n if (relationNames == null)\r\n {\r\n relationNames = new ArrayLi...
[ { "content": "Gets the relation field name.\n\n@param relation\nthe relation\n@return the relation field name", "role": "user" }, { "content": "private String getJoinColumnName(Field relation)\r\n {\r\n String columnName = null;\r\n JoinColumn ann = relation.getAnnotation(JoinColumn...
[ { "content": "Generate entity graph and returns after assigning headnode. n\n\n@param entity\nentity.\n@param delegator\ndelegator\n@param pc\npersistence cache\n@return object graph.", "role": "user" }, { "content": "public <E> ObjectGraph generateGraph(E entity, PersistenceDelegator delegator, Nod...
[ { "content": "Check and set if relation is set via primary key.\n\n@param relation\nrelation\n@param childObject\ntarget entity\n@param childMetadata\ntarget entity metadata\n@param entityId\nentity id\n@return target entity.", "role": "user" }, { "content": "private Object onIfSharedByPK(Relation r...
[ { "content": "On building child node\n\n@param childObject\nchild object\n@param childMetadata\nchild metadata\n@param delegator\npersistence delegator\n@param pc\npersistence cache\n@param node\nnode\n@param relation\nentity relation", "role": "user" }, { "content": "void onBuildChildNode(Object ch...
[ { "content": "On assigning node link properties\n\n@param node\nnode\n@param relation\nrelation\n@param childNode\nchild node", "role": "user" }, { "content": "private void assignNodeLinkProperty(Node node, Relation relation, Node childNode)\n {\n // Construct Node Link for this relationsh...
[ { "content": "Set link property\n\n@param node\nnode\n@param relation\nrelation\n@param childNode\ntarget node\n@param nodeLink\nnode link(bridge)", "role": "user" }, { "content": "void setLink(Node node, Relation relation, Node childNode, NodeLink nodeLink)\n {\n nodeLink.setMultiplicity(...
[ { "content": "Method to translate criteriaQuery into JPQL.\n\n@param criteriaQuery\ncriteria query.\n\n@return JPQL string.", "role": "user" }, { "content": "static <S> String translate(CriteriaQuery criteriaQuery)\n {\n QueryBuilder builder = new CriteriaQueryTranslator.QueryBuilder();\n\...
[ { "content": "Convert ether block to kundera block.\n\n@param block\nthe block\n@param includeTransactions\nthe include transactions\n@return the block", "role": "user" }, { "content": "public static Block convertEtherBlockToKunderaBlock(EthBlock block, boolean includeTransactions)\n {\n\n ...
[ { "content": "Convert ether tx to kundera tx.\n\n@param transactionResult\nthe transaction result\n@return the transaction", "role": "user" }, { "content": "public static Transaction convertEtherTxToKunderaTx(TransactionResult transactionResult)\n {\n\n Transaction kunderaTx = new Transact...
[ { "content": "Finds an entity from graph database.\n\n@param entityClass\nthe entity class\n@param key\nthe key\n@return the object", "role": "user" }, { "content": "@Override\n public Object find(Class entityClass, Object key)\n {\n GraphDatabaseService graphDb = null;\n if (res...
[ { "content": "Deletes an entity from database.\n\n@param entity\nthe entity\n@param key\nthe key", "role": "user" }, { "content": "@Override\n public void delete(Object entity, Object key)\n {\n // All Modifying Neo4J operations must be executed within a transaction\n checkActive...
[ { "content": "Writes an entity to database.\n\n@param entityMetadata\nthe entity metadata\n@param entity\nthe entity\n@param id\nthe id\n@param rlHolders\nthe rl holders", "role": "user" }, { "content": "@Override\n protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id,...
[ { "content": "Binds Transaction resource to this client.\n\n@param resource\nthe resource", "role": "user" }, { "content": "@Override\n public void bind(TransactionResource resource)\n {\n if (resource != null && resource instanceof Neo4JTransaction)\n {\n ((Neo4JTrans...
[ { "content": "Execute lucene query.\n\n@param m\nthe m\n@param luceneQuery\nthe lucene query\n@return the list", "role": "user" }, { "content": "public List<Object> executeLuceneQuery(EntityMetadata m, String luceneQuery)\n {\n log.info(\"Executing Lucene Query on Neo4J:\" + luceneQuery);\...
[ { "content": "Adds the entity from index hits.\n\n@param m\nthe m\n@param entities\nthe entities\n@param hits\nthe hits", "role": "user" }, { "content": "protected void addEntityFromIndexHits(EntityMetadata m, List<Object> entities, IndexHits<Node> hits)\n {\n for (Node node : hits)\n ...
[ { "content": "Gets the entity with association from node.\n\n@param m\nthe m\n@param node\nthe node\n@return the entity with association from node", "role": "user" }, { "content": "private Object getEntityWithAssociationFromNode(EntityMetadata m, Node node)\n {\n Map<String, Object> relati...
[ { "content": "Adds the discriminator.\n\n@param values\nthe values\n@param entityType\nthe entity type", "role": "user" }, { "content": "private void addDiscriminator(Map<String, Object> values, EntityType entityType)\n {\n String discrColumn = ((AbstractManagedType) entityType).getDiscrim...
[ { "content": "Adds the relations.\n\n@param rlHolders\nthe rl holders\n@param values\nthe values", "role": "user" }, { "content": "private void addRelations(List<RelationHolder> rlHolders, Map<String, Object> values)\n {\n if (rlHolders != null)\n {\n for (RelationHolder ...
[ { "content": "Adds the source.\n\n@param entity\nthe entity\n@param values\nthe values\n@param entityType\nthe entity type", "role": "user" }, { "content": "private void addSource(Object entity, Map<String, Object> values, EntityType entityType)\n {\n Set<Attribute> attributes = entityType...
[ { "content": "Adds the sort order.\n\n@param builder\nthe builder\n@param query\nthe query\n@param entityMetadata\nthe entity metadata", "role": "user" }, { "content": "private void addSortOrder(SearchRequestBuilder builder, KunderaQuery query, EntityMetadata entityMetadata)\n {\n Metamode...
[ { "content": "Adds the fields to builder\n\n@param fieldsToSelect\nthe fields to select\n@param clazz\nthe clazz\n@param metaModel\nthe meta model\n@param builder\nthe builder", "role": "user" }, { "content": "private void addFieldsToBuilder(String[] fieldsToSelect, Class clazz, MetamodelImpl metaMo...
[ { "content": "Gets the key as string.\n\n@param id\nthe id\n@param metadata\nthe metadata\n@param metaModel\nthe meta model\n@return the key as string", "role": "user" }, { "content": "private String getKeyAsString(Object id, EntityMetadata metadata, MetamodelImpl metaModel)\n {\n if (meta...
[ { "content": "Sets the refresh indexes.\n\n@param puProps\nthe pu props\n@param externalProperties\nthe external properties", "role": "user" }, { "content": "private void setRefreshIndexes(Properties puProps, Map<String, Object> externalProperties)\n {\n Object refreshIndexes = null;\n\n ...
[ { "content": "Checks if is refresh indexes.\n\n@return true, if is refresh indexes", "role": "user" }, { "content": "private boolean isRefreshIndexes()\n {\n\n if (clientProperties != null)\n {\n\n Object refreshIndexes = clientProperties.get(ESConstants.ES_REFRESH_INDEXE...
[ { "content": "Load data and populate results.\n\n@param dataFrame\nthe data frame\n@param m\nthe m\n@param kunderaQuery\nthe kundera query\n@return the list", "role": "user" }, { "content": "public List<?> loadDataAndPopulateResults(DataFrame dataFrame, EntityMetadata m, KunderaQuery kunderaQuery)\n...
[ { "content": "Populate entity objects list.\n\n@param dataFrame\nthe data frame\n@param m\nthe m\n@return the list", "role": "user" }, { "content": "private List<?> populateEntityObjectsList(DataFrame dataFrame, EntityMetadata m)\n {\n List results = new ArrayList();\n String[] colu...
[ { "content": "Populate entity from data frame.\n\n@param m\nthe m\n@param columnIndexMap\nthe column index map\n@param row\nthe row\n@return the object", "role": "user" }, { "content": "private Object populateEntityFromDataFrame(EntityMetadata m, Map<String, Integer> columnIndexMap, Row row)\n {\...
[ { "content": "Creates the map of column index.\n\n@param columns\nthe columns\n@return the map", "role": "user" }, { "content": "private Map<String, Integer> createMapOfColumnIndex(String[] columns)\n {\n int i = 0;\n Map<String, Integer> map = new HashMap<String, Integer>();\n ...
[ { "content": "Builds the flush stack.\n\n@param headNode\nthe head node\n@param eventType\nthe event type", "role": "user" }, { "content": "public void buildFlushStack(Node headNode, EventType eventType)\n {\n if (headNode != null)\n {\n headNode.setTraversed(false);\n ...
[ { "content": "Empties Flush stack present in a PersistenceCache.", "role": "user" }, { "content": "public void clearFlushStack()\n {\n if (stackQueue != null && !stackQueue.isEmpty())\n {\n stackQueue.clear();\n }\n if (joinTableDataCollection != null && !jo...
[ { "content": "On roll back.\n\n@param delegator\nthe delegator\n@param eventCol\nthe event col", "role": "user" }, { "content": "private void onRollBack(PersistenceDelegator delegator, Map<Object, EventLog> eventCol)\n {\n if (eventCol != null && !eventCol.isEmpty())\n {\n ...
[ { "content": "Adds the join table data into map.\n\n@param operation\nthe operation\n@param joinTableName\nthe join table name\n@param joinColumnName\nthe join column name\n@param invJoinColumnName\nthe inv join column name\n@param entityClass\nthe entity class\n@param joinColumnValue\nthe join column value\n@p...
[ { "content": "Log event.\n\n@param node\nthe node\n@param eventType\nthe event type", "role": "user" }, { "content": "private void logEvent(Node node, EventType eventType)\n {\n // Node contains original as well as transactional copy.\n EventLog log = new EventLog(eventType, node);\...
[ { "content": "Persists a Join table record set into database.\n\n@param joinTableData\nthe join table data", "role": "user" }, { "content": "@Override\n public void persistJoinTable(JoinTableData joinTableData)\n {\n String joinTableName = joinTableData.getJoinTableName();\n Stri...
[ { "content": "Loads super columns from database.\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 protected final List<SuperColumn> lo...
[ { "content": "Retrieves column for a given primary key.\n\n@param <E>\nthe element type\n@param schemaName\nthe schema name\n@param tableName\nthe table name\n@param pKeyColumnName\nthe key column name\n@param columnName\nthe column name\n@param pKeyColumnValue\nthe key column value\n@param columnJavaType\nthe ...
[ { "content": "Retrieves IDs for a given column.\n\n@param schemaName\nthe schema name\n@param tableName\nthe table name\n@param pKeyName\nthe key name\n@param columnName\nthe column name\n@param columnValue\nthe column value\n@param entityClazz\nthe entity clazz\n@return the object[]", "role": "user" }, ...
[ { "content": "Query related methods.\n\n@param clazz\nthe clazz\n@param relationalField\nthe relational field\n@param isNative\nthe is native\n@param cqlQuery\nthe cql query\n@return the list", "role": "user" }, { "content": "@Override\n public List executeQuery(Class clazz, List<String> relation...
[ { "content": "Creates an a data collection which has no entity inside it", "role": "user" }, { "content": "private void createEmptyDataCollection()\n {\n Class<?> collectionClass = getRelation().getProperty().getType();\n if (collectionClass.isAssignableFrom(Set.class))\n {\n...
[ { "content": "Gets the metamodel map.\n\n@return the entityMetadataMap", "role": "user" }, { "content": "public Map<String, Metamodel> getMetamodelMap()\r\n {\r\n if (metamodelMap == null)\r\n {\r\n metamodelMap = new HashMap<String, Metamodel>();\r\n }\r\n ...
[ { "content": "Sets the clazz to pu map.\n\n@param map\nthe map", "role": "user" }, { "content": "public void setClazzToPuMap(Map<String, List<String>> map)\r\n {\r\n if (clazzToPuMap == null)\r\n {\r\n this.clazzToPuMap = map;\r\n }\r\n else\r\n {\r\n...
[ { "content": "Gets the mapped persistence unit.\n\n@param clazz\nthe clazz\n\n@return the mapped persistence unit", "role": "user" }, { "content": "public List<String> getMappedPersistenceUnit(Class<?> clazz)\r\n {\r\n return this.clazzToPuMap != null ? this.clazzToPuMap.get(clazz.getName(...
[ { "content": "returns mapped persistence unit.\n\n@param clazzName\nclazz name.\n\n@return mapped persistence unit.", "role": "user" }, { "content": "public String getMappedPersistenceUnit(String clazzName)\r\n {\r\n\r\n List<String> pus = clazzToPuMap.get(clazzName);\r\n\r\n final ...
[ { "content": "Adds parameterised query with given name into collection. Throws\nexception if duplicate name is provided.\n\n@param queryName\nquery name.\n@param query\nnamed/native query.\n@param isNativeQuery\ntrue, if it is a namednativequery.", "role": "user" }, { "content": "public void addQuer...
[ { "content": "Returns query interface.\n\n@param name\nquery name.\n@return query.", "role": "user" }, { "content": "public String getQuery(String name)\r\n {\r\n QueryWrapper wrapper = namedNativeQueries != null && name != null ? namedNativeQueries.get(name) : null;\r\n return wrap...
[ { "content": "Returns true, if query is named native or native, else false\n\n@param name\nmapped name.\n@return boolean value", "role": "user" }, { "content": "public boolean isNative(String name)\r\n {\r\n QueryWrapper wrapper = namedNativeQueries != null && name != null ? namedNativeQue...
[ { "content": "Fire event listeners.\n\n@param metadata\nthe metadata\n@param entity\nthe entity\n@param event\nthe event\n@throws PersistenceException\nthe persistence exception", "role": "user" }, { "content": "public void fireEventListeners(EntityMetadata metadata, Object entity, Class<?> event)\r...
[ { "content": "Method to detect whether this token is a keyword for JPQL Single-String.\n\n@param token\nThe token\n\n@return Whether it is a keyword", "role": "user" }, { "content": "private boolean isKeyword(String token)\n {\n // Compare the passed token against the provided keyword list...
[ { "content": "Like to regex.\n\n@param like\nthe like\n@return the string", "role": "user" }, { "content": "static String likeToRegex(String like)\n {\n StringBuilder builder = new StringBuilder();\n boolean wasPercent = false;\n for (int i = 0; i < like.length(); ++i)\n ...
[ { "content": "If parameterised metadata is not for intended persistence unit, assign it\nto null.\n\n@param metadata\nentity metadata\n@return metadata.", "role": "user" }, { "content": "private EntityMetadata belongsToPersistenceUnit(EntityMetadata metadata)\r\n {\r\n\r\n // if pu is null...
[ { "content": "Initialize property reader.", "role": "user" }, { "content": "private void initializePropertyReader()\n {\n if (propertyReader == null)\n {\n propertyReader = new KuduDBPropertyReader(externalProperties,\n kunderaMetadata.getApplicationMet...
[ { "content": "Reads the persistence xml content into an object graph and validates it\nagainst the related xsd schema.\n\n@param pathToPersistenceXml\npath to the persistence.xml file\n@return parsed persistence xml as object graph\n@throws InvalidConfigurationException\nif the file could not be parsed or is no...
[ { "content": "Validates an xml object graph against its schema. Therefore it reads the\nversion from the root tag and tries to load the related xsd file from the\nclasspath.\n\n@param xmlRootNode\nroot xml node of the document to validate\n@throws InvalidConfigurationException\nif the validation could not be pe...
[ { "content": "Get stream from classpath.\n\n@param fileName\nthe file name\n@return the stream\n@throws Exception\nthe exception", "role": "user" }, { "content": "private static InputStream getStreamFromClasspath(String fileName)\r\n {\r\n String path = fileName;\r\n InputStream dtd...
[ { "content": "Gets the transaction type.\n\n@param elementContent\nthe element content\n@return the transaction type", "role": "user" }, { "content": "public static PersistenceUnitTransactionType getTransactionType(String elementContent)\r\n {\r\n\r\n if (elementContent == null || elementC...
[ { "content": "Get the content of the given element.\n\n@param element\nThe element to get the content for.\n@param defaultStr\nThe default to return when there is no content.\n@return The content of the element or the default.\n@throws Exception\nthe exception", "role": "user" }, { "content": "priva...
[ { "content": "Returns persistence unit root url\n\n@param url\nraw url\n@return rootUrl rootUrl", "role": "user" }, { "content": "private static URL getPersistenceRootUrl(URL url)\r\n {\r\n String f = url.getFile();\r\n f = parseFilePath(f);\r\n\r\n URL jarUrl = url;\r\n ...
[ { "content": "Parse and exclude path till META-INF\n\n@param file\nraw file path.\n@return extracted/parsed file path.", "role": "user" }, { "content": "private static String parseFilePath(String file)\r\n {\r\n final String excludePattern = \"/META-INF/persistence.xml\";\r\n file =...
[ { "content": "On via embeddable.\n\n@param entityType\nthe entity type\n@param column\nthe column\n@param m\nthe m\n@param entity\nthe entity\n@param embeddable\nthe embeddable\n@param jsonObj\nthe json obj", "role": "user" }, { "content": "private static void onViaEmbeddable(EntityType entityType, ...
[ { "content": "Gets the object from json.\n\n@param jsonObj\nthe json obj\n@param clazz\nthe clazz\n@param columns\nthe columns\n@return the object from json", "role": "user" }, { "content": "static Object getObjectFromJson(JsonObject jsonObj, Class clazz, Set<Attribute> columns)\n {\n Obje...
[ { "content": "Gets the json primitive.\n\n@param value\nthe value\n@param clazz\nthe clazz\n@return the json primitive", "role": "user" }, { "content": "private static JsonElement getJsonPrimitive(Object value, Class clazz)\n {\n if (value != null)\n {\n if (clazz.isAssig...
[ { "content": "Returns configuration object.", "role": "user" }, { "content": "private void getConfigurationObject()\n {\n RDBMSPropertyReader reader = new RDBMSPropertyReader(externalProperties, kunderaMetadata\n .getApplicationMetadata().getPersistenceUnitMetadata(getPersis...
[ { "content": "Gets the singular attribute.\n\n@param paramString\nthe param string\n@param checkValidity\nthe check validity\n@return the singular attribute", "role": "user" }, { "content": "private SingularAttribute<? super X, ?> getSingularAttribute(String paramString, boolean checkValidity)\n ...
[ { "content": "Adds the singular attribute.\n\n@param attributeName\nthe attribute name\n@param attribute\nthe attribute", "role": "user" }, { "content": "public void addSingularAttribute(String attributeName, SingularAttribute<X, ?> attribute)\n {\n if (declaredSingluarAttribs == null)\n ...
[ { "content": "Adds the plural attribute.\n\n@param attributeName\nthe attribute name\n@param attribute\nthe attribute", "role": "user" }, { "content": "public void addPluralAttribute(String attributeName, PluralAttribute<X, ?, ?> attribute)\n {\n if (declaredPluralAttributes == null)\n ...
[ { "content": "Adds the sub managed type.\n\n@param inheritedType\nthe inherited type", "role": "user" }, { "content": "private void addSubManagedType(ManagedType inheritedType)\n {\n\n if (Modifier.isAbstract(this.getJavaType().getModifiers()))\n {\n subManagedTypes.add(i...
[ { "content": "Gets the declared plural attribute.\n\n@param paramName\nthe param name\n@return the declared plural attribute", "role": "user" }, { "content": "private PluralAttribute<X, ?, ?> getDeclaredPluralAttribute(String paramName)\n {\n return declaredPluralAttributes != null ? decla...
[ { "content": "Gets the plural attriute.\n\n@param paramName\nthe param name\n@return the plural attriute", "role": "user" }, { "content": "private PluralAttribute<? super X, ?, ?> getPluralAttriute(String paramName)\n {\n if (superClazzType != null)\n {\n return ((Abstrac...
[ { "content": "On check collection attribute.\n\n@param <E>\nthe element type\n@param pluralAttribute\nthe plural attribute\n@param paramClass\nthe param class\n@return true, if successful", "role": "user" }, { "content": "private <E> boolean onCheckCollectionAttribute(PluralAttribute<? super X, ?, ?...
[ { "content": "On check set attribute.\n\n@param <E>\nthe element type\n@param pluralAttribute\nthe plural attribute\n@param paramClass\nthe param class\n@return true, if successful", "role": "user" }, { "content": "private <E> boolean onCheckSetAttribute(PluralAttribute<? super X, ?, ?> pluralAttrib...
[ { "content": "On check list attribute.\n\n@param <E>\nthe element type\n@param pluralAttribute\nthe plural attribute\n@param paramClass\nthe param class\n@return true, if successful", "role": "user" }, { "content": "private <E> boolean onCheckListAttribute(PluralAttribute<? super X, ?, ?> pluralAttr...
[ { "content": "On check map attribute.\n\n@param <V>\nthe value type\n@param pluralAttribute\nthe plural attribute\n@param valueClazz\nthe value clazz\n@return true, if successful", "role": "user" }, { "content": "private <V> boolean onCheckMapAttribute(PluralAttribute<? super X, ?, ?> pluralAttribut...
[ { "content": "Checks if is collection attribute.\n\n@param attribute\nthe attribute\n@return true, if is collection attribute", "role": "user" }, { "content": "private boolean isCollectionAttribute(PluralAttribute<? super X, ?, ?> attribute)\n {\n return attribute != null && attribute.getC...
[ { "content": "Checks if is list attribute.\n\n@param attribute\nthe attribute\n@return true, if is list attribute", "role": "user" }, { "content": "private boolean isListAttribute(PluralAttribute<? super X, ?, ?> attribute)\n {\n return attribute != null && attribute.getCollectionType().eq...
[ { "content": "Checks if is sets the attribute.\n\n@param attribute\nthe attribute\n@return true, if is sets the attribute", "role": "user" }, { "content": "private boolean isSetAttribute(PluralAttribute<? super X, ?, ?> attribute)\n {\n return attribute != null && attribute.getCollectionTy...
[ { "content": "Checks if is map attribute.\n\n@param attribute\nthe attribute\n@return true, if is map attribute", "role": "user" }, { "content": "private boolean isMapAttribute(PluralAttribute<? super X, ?, ?> attribute)\n {\n return attribute != null && attribute.getCollectionType().equal...
[ { "content": "Checks if is bindable.\n\n@param <E>\nthe element type\n@param attribute\nthe attribute\n@param elementType\nthe element type\n@return true, if is bindable", "role": "user" }, { "content": "private <E> boolean isBindable(Bindable<?> attribute, Class<E> elementType)\n {\n retu...
[ { "content": "Check for valid.\n\n@param paramName\nthe param name\n@param attribute\nthe attribute", "role": "user" }, { "content": "private void checkForValid(String paramName, Attribute<? super X, ?> attribute)\n {\n if (attribute == null)\n {\n throw new IllegalArgume...
[ { "content": "Gets the declared attribute.\n\n@param paramName\nthe param name\n@param checkValidity\nthe check validity\n@return the declared attribute", "role": "user" }, { "content": "private Attribute<X, ?> getDeclaredAttribute(String paramName, boolean checkValidity)\n {\n Attribute<X...
[ { "content": "On validity check.\n\n@param paramString\nthe param string\n@param checkValidity\nthe check validity\n@param attribute\nthe attribute", "role": "user" }, { "content": "private void onValidity(String paramString, boolean checkValidity, SingularAttribute<? super X, ?> attribute)\n {\n...
[ { "content": "Bind type annotations.", "role": "user" }, { "content": "private void bindTypeAnnotations()\n {\n // TODO:: need to check @Embeddable attributes as well!\n\n // TODO:: need to Handle association override in\n // RelationMetadataProcessor.\n\n for (Class<?...
[ { "content": "Bind attribute.\n\n@param annotation\nthe annotation", "role": "user" }, { "content": "private void bindAttribute(Annotation annotation)\n {\n String fieldname = ((AttributeOverride) annotation).name();\n Column column = ((AttributeOverride) annotation).column();\n ...
[ { "content": "Build inheritance model.\n\n@return inheritance model instance.", "role": "user" }, { "content": "private InheritanceModel buildInheritenceModel()\n {\n InheritanceModel model = null;\n\n if (superClazzType != null)\n {\n // means there is a super cla...
[ { "content": "On strategy type.\n\n@param model\nthe model\n@param strategyType\nthe strategy type\n@param descriminator\nthe descriminator\n@param descriminatorValue\nthe descriminator value\n@param tableName\nthe table name\n@param schemaName\nthe schema name\n@return the inheritance model", "role": "user...