org.okiproject.serviceapi.rules
Interface Model

All Superinterfaces:
java.io.Serializable

public interface Model
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:
VerbType, PredicateType, SubjectType,

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


Method Summary
 void delete()
          Deletes an existing Model 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
 PredicateType getPredicateType()
          Method getPredicateType
 SubjectType getSubjectType()
          Method getSubjectType
 VerbType getVerbType()
          Method getVerbType
 void update(SubjectType subjectType, VerbType verbType, PredicateType predicateType, java.sql.Timestamp effectiveDate, java.sql.Timestamp expirationDate)
          Updates one or more fields in an existing Model in the Rules DB.
 

Method Detail

getId

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

getModifiedBy

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

getModifiedDate

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

getEffectiveDate

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

getExpirationDate

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

getVerbType

public VerbType getVerbType()
Method getVerbType
Returns:
 

getPredicateType

public PredicateType getPredicateType()
Method getPredicateType
Returns:
 

getSubjectType

public SubjectType getSubjectType()
Method getSubjectType
Returns:
 

delete

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

update

public void update(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 Model in the Rules DB.