/** * ADVANCED: * Configure the mapping to use a container policy. * The policy manages the access to the collection. */ public void setContainerPolicy(ContainerPolicy containerPolicy) { this.containerPolicy = containerPolicy; ((ReadAllQuery)getSelectionQuery()).setContainerPolicy(containerPolicy); }
/** * PUBLIC: * Provide order support for queryKeyName in descending order. */ public void addDescendingOrdering(String queryKeyName) { this.hasOrderBy = true; if (queryKeyName == null) { return; } ((ReadAllQuery)getSelectionQuery()).addDescendingOrdering(queryKeyName); }
/** * PUBLIC: * Provide order support for queryKeyName in ascending order */ public void addAscendingOrdering(String queryKeyName) { this.hasOrderBy = true; if (queryKeyName == null) { return; } ((ReadAllQuery)getSelectionQuery()).addAscendingOrdering(queryKeyName); }
/** * PUBLIC: * Provide order support for queryKeyName in ascending order */ public void addAscendingOrdering(String queryKeyName) { this.hasOrderBy = true; if (queryKeyName == null) { return; } ((ReadAllQuery)getSelectionQuery()).addAscendingOrdering(queryKeyName); }
/** * INTERNAL: * Get the container policy from the selection query for this mapping. This * method is overridden in DirectCollectionMapping since its selection * query is a DataReadQuery. */ protected ContainerPolicy getSelectionQueryContainerPolicy() { return ((ReadAllQuery) getSelectionQuery()).getContainerPolicy(); }
/** * INTERNAL: * Set the container policy on the selection query for this mapping. This * method is overridden in DirectCollectionMapping since its selection * query is a DataReadQuery. */ protected void setSelectionQueryContainerPolicy(ContainerPolicy containerPolicy) { ((ReadAllQuery) getSelectionQuery()).setContainerPolicy(containerPolicy); }
/** * ADVANCED: * Configure the mapping to use a container policy. * The policy manages the access to the collection. */ public void setContainerPolicy(ContainerPolicy containerPolicy) { this.containerPolicy = containerPolicy; ((ReadAllQuery)getSelectionQuery()).setContainerPolicy(containerPolicy); }
/** * ADVANCED: * Configure the mapping to use a container policy. * The policy manages the access to the collection. */ public void setContainerPolicy(ContainerPolicy containerPolicy) { this.containerPolicy = containerPolicy; ((ReadAllQuery)getSelectionQuery()).setContainerPolicy(containerPolicy); }
/** * INTERNAL: * Set the container policy on the selection query for this mapping. This * method is overridden in DirectCollectionMapping since its selection * query is a DataReadQuery. */ protected void setSelectionQueryContainerPolicy(ContainerPolicy containerPolicy) { ((ReadAllQuery) getSelectionQuery()).setContainerPolicy(containerPolicy); }
/** * INTERNAL: * Set the container policy on the selection query for this mapping. This * method is overridden in DirectCollectionMapping since its selection * query is a DataReadQuery. */ protected void setSelectionQueryContainerPolicy(ContainerPolicy containerPolicy) { ((ReadAllQuery) getSelectionQuery()).setContainerPolicy(containerPolicy); }
/** * PUBLIC: * Provide order support for queryKeyName in ascending order */ public void addAscendingOrdering(String queryKeyName) { this.hasOrderBy = true; if (queryKeyName == null) { return; } ((ReadAllQuery)getSelectionQuery()).addAscendingOrdering(queryKeyName); }
/** * INTERNAL: * Get the container policy from the selection query for this mapping. This * method is overridden in DirectCollectionMapping since its selection * query is a DataReadQuery. */ protected ContainerPolicy getSelectionQueryContainerPolicy() { return ((ReadAllQuery) getSelectionQuery()).getContainerPolicy(); }
/** * PUBLIC: * Provide order support for queryKeyName in descending order. */ public void addDescendingOrdering(String queryKeyName) { this.hasOrderBy = true; if (queryKeyName == null) { return; } ((ReadAllQuery)getSelectionQuery()).addDescendingOrdering(queryKeyName); }
/** * INTERNAL: * Get the container policy from the selection query for this mapping. This * method is overridden in DirectCollectionMapping since its selection * query is a DataReadQuery. */ protected ContainerPolicy getSelectionQueryContainerPolicy() { return ((ReadAllQuery) getSelectionQuery()).getContainerPolicy(); }
/** * PUBLIC: * Provide order support for queryKeyName in descending order. */ public void addDescendingOrdering(String queryKeyName) { this.hasOrderBy = true; if (queryKeyName == null) { return; } ((ReadAllQuery)getSelectionQuery()).addDescendingOrdering(queryKeyName); }
/** * PUBLIC: * Set the name of the session to execute the mapping's queries under. * This can be used by the session broker to override the default session * to be used for the target class. */ public void setSessionName(String name) { getDeleteAllQuery().setSessionName(name); getSelectionQuery().setSessionName(name); } /**
/** * PUBLIC: * Set the name of the session to execute the mapping's queries under. * This can be used by the session broker to override the default session * to be used for the target class. */ public void setSessionName(String name) { getDeleteAllQuery().setSessionName(name); getSelectionQuery().setSessionName(name); } /**
/** * PUBLIC: * Set the name of the session to execute the mapping's queries under. * This can be used by the session broker to override the default session * to be used for the target class. */ public void setSessionName(String name) { getDeleteAllQuery().setSessionName(name); getSelectionQuery().setSessionName(name); }
/** * INTERNAL: * All the privately owned parts are read */ protected Object readPrivateOwnedForObject(ObjectLevelModifyQuery modifyQuery) throws DatabaseException { if (modifyQuery.getSession().isUnitOfWork()) { return getRealCollectionAttributeValueFromObject(modifyQuery.getBackupClone(), modifyQuery.getSession()); } else { // cr 3819 prepareTranslationRow(modifyQuery.getTranslationRow(), modifyQuery.getObject(), modifyQuery.getDescriptor(), modifyQuery.getSession()); return modifyQuery.getSession().executeQuery(getSelectionQuery(), modifyQuery.getTranslationRow()); } }
/** * INTERNAL: * All the privately owned parts are read */ protected Object readPrivateOwnedForObject(ObjectLevelModifyQuery modifyQuery) throws DatabaseException { if (modifyQuery.getSession().isUnitOfWork()) { return getRealCollectionAttributeValueFromObject(modifyQuery.getBackupClone(), modifyQuery.getSession()); } else { // cr 3819 prepareTranslationRow(modifyQuery.getTranslationRow(), modifyQuery.getObject(), modifyQuery.getDescriptor(), modifyQuery.getSession()); return modifyQuery.getSession().executeQuery(getSelectionQuery(), modifyQuery.getTranslationRow()); } }