org.okiproject.serviceapi.rules
Interface Rule

All Superinterfaces:
java.io.Serializable

public interface Rule
extends java.io.Serializable

Copyright (c) 2001 Massachusetts Institute of Technology

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

See Also:
Predicate, Verb, Subject, PredicateType, VerbType, SubjectType,

$Source: /cvs/oki/org/okiproject/serviceapi/doc/rules/org/okiproject/serviceapi/rules/Rule.html,v $


Method Summary
 void delete()
          Deletes an existing rule in the Rules DB.
 java.sql.Timestamp getEffectiveDate()
          Method getEffectiveDate
 java.sql.Timestamp getExpirationDate()
          Method getExpirationDate
 java.lang.Object getId()
          Method getId
 java.lang.String getModifiedBy()
          Method getModifiedBy
 java.sql.Timestamp getModifiedDate()
          Method getModifiedDate
 Predicate getPredicate()
          Method getPredicate
 PredicateType getPredicateType()
          Method getPredicateType
 Subject getSubject()
          Method getSubject
 VerbType getSubjectType()
          Method getSubjectType
 Verb getVerb()
          Method getVerb
 VerbType getVerbType()
          Method getVerbType
 void update(Subject subject, Verb verb, Predicate predicate, SubjectType subjectType, VerbType verbType, PredicateType predicateType, java.sql.Timestamp effectiveDate, java.sql.Timestamp expirationDate)
          Updates one or more fields in an existing rule in the Rules DB.
 

Method Detail

getId

public java.lang.Object getId()
Method getId
Returns:
 

getEffectiveDate

public java.sql.Timestamp getEffectiveDate()
Method getEffectiveDate
Returns:
 

getExpirationDate

public java.sql.Timestamp getExpirationDate()
Method getExpirationDate
Returns:
 

getModifiedDate

public java.sql.Timestamp getModifiedDate()
Method getModifiedDate
Returns:
 

getModifiedBy

public java.lang.String getModifiedBy()
Method getModifiedBy
Returns:
 

getPredicate

public Predicate getPredicate()
Method getPredicate
Returns:
 

getVerb

public Verb getVerb()
Method getVerb
Returns:
 

getSubject

public Subject getSubject()
Method getSubject
Returns:
 

getPredicateType

public PredicateType getPredicateType()
Method getPredicateType
Returns:
 

getVerbType

public VerbType getVerbType()
Method getVerbType
Returns:
 

getSubjectType

public VerbType getSubjectType()
Method getSubjectType
Returns:
 

delete

public void delete()
            throws java.lang.Exception
Deletes an existing rule in the Rules DB.

update

public void update(Subject subject,
                   Verb verb,
                   Predicate predicate,
                   SubjectType subjectType,
                   VerbType verbType,
                   PredicateType predicateType,
                   java.sql.Timestamp effectiveDate,
                   java.sql.Timestamp expirationDate)
            throws java.lang.Exception
Updates one or more fields in an existing rule in the Rules DB.