org.opencrx.kernel.contract1.jmi1
Interface AbstractFilterContract

All Superinterfaces:
AbstractFilter, AbstractFilterContract, RefBaseObject, RefFeatured, RefObject, RefObject_1_0
All Known Subinterfaces:
ContractFilterGlobal

public interface AbstractFilterContract
extends AbstractFilterContract, AbstractFilter

Abstract class AbstractFilterContract

isFrozen


Method Summary
 void addFilterProperty(boolean idIsPersistent, String id, ContractFilterProperty filterProperty)
          Adds the specified element to the set of the values for the reference filterProperty.
 void addFilterProperty(String id, ContractFilterProperty filterProperty)
          Adds the specified element to the set of the values for the reference filterProperty using a reassignable qualifier.
 CountFilteredObjectsResult countFilteredContract()
           
<T extends AbstractContract>
List<T>
getFilteredContract(AbstractContractQuery query)
          Retrieves the value for the reference filteredContract for the specified query.
 AbstractContract getFilteredContract(boolean idIsPersistent, String id)
          Retrieves the value for the reference filteredContract for the specified qualifier attribute value.
 AbstractContract getFilteredContract(String id)
          Retrieves the value for the reference filteredContract for the specified qualifier attribute value.
 ContractFilterProperty getFilterProperty(boolean idIsPersistent, String id)
          Retrieves the value for the reference filterProperty for the specified qualifier attribute value.
<T extends ContractFilterProperty>
List<T>
getFilterProperty(ContractFilterPropertyQuery query)
          Retrieves the value for the reference filterProperty for the specified query.
 ContractFilterProperty getFilterProperty(String id)
          Retrieves the value for the reference filterProperty for the specified qualifier attribute value.
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AbstractFilterContract
getFilteredContract, getFilterProperty
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refDefaultFetchGroup, refDelegate, refGetEventListeners, refGetPath, refGetValue, refInitialize, refInitialize, refRemoveEventListener, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

countFilteredContract

CountFilteredObjectsResult countFilteredContract()
Specified by:
countFilteredContract in interface AbstractFilterContract

getFilterProperty

<T extends ContractFilterProperty> List<T> getFilterProperty(ContractFilterPropertyQuery query)
Retrieves the value for the reference filterProperty for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getFilterProperty

ContractFilterProperty getFilterProperty(boolean idIsPersistent,
                                         String id)
Retrieves the value for the reference filterProperty for the specified qualifier attribute value.

Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getFilterProperty

ContractFilterProperty getFilterProperty(String id)
Retrieves the value for the reference filterProperty for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getFilterProperty(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

addFilterProperty

void addFilterProperty(boolean idIsPersistent,
                       String id,
                       ContractFilterProperty filterProperty)
Adds the specified element to the set of the values for the reference filterProperty.

Note: This is an extension to the JMI 1 standard.

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
filterProperty - The element to be appended.

addFilterProperty

void addFilterProperty(String id,
                       ContractFilterProperty filterProperty)
Adds the specified element to the set of the values for the reference filterProperty using a reassignable qualifier.

Note: This is an extension to the JMI 1 standard.

Parameters:
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
filterProperty - The element to be appended.

getFilteredContract

<T extends AbstractContract> List<T> getFilteredContract(AbstractContractQuery query)
Retrieves the value for the reference filteredContract for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getFilteredContract

AbstractContract getFilteredContract(boolean idIsPersistent,
                                     String id)
Retrieves the value for the reference filteredContract for the specified qualifier attribute value.

Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getFilteredContract

AbstractContract getFilteredContract(String id)
Retrieves the value for the reference filteredContract for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getFilteredContract(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier


This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.