org.meta2project.storage
Class DBOProperty

java.lang.Object
  extended by org.meta2project.storage.DBEntity
      extended by org.meta2project.storage.DBOProperty
All Implemented Interfaces:
AnnotatedEntity, NamedEntity, OProperty, Property

public class DBOProperty
extends DBEntity
implements OProperty

Author:
Aleksey Yakunin

Field Summary
 
Fields inherited from interface org.meta2project.model.AnnotatedEntity
CASCADE, CASCADE_DELETE_VALUE, COMMENT, MAX_CARD, MIN_CARD, MODEL_URI, TITLE
 
Constructor Summary
DBOProperty(DBConnection con, CachedOProperty cachedEntity)
           
 
Method Summary
 void delete()
          Удалить свойство.
 OntClass getDomain()
          Get property domain
 EntityCache getEntityCache()
           
 java.lang.Integer getMaxCardinality()
          Get max.cardinality
 java.lang.Integer getMinCardinality()
          Get min.cardinality
 OntClass getRange()
          Get the range class for the oproperty.
 void setDomain(OntClass cl)
          Set property domain
 void setRange(OntClass r)
          Set range class
 
Methods inherited from class org.meta2project.storage.DBEntity
equals, getAnnotation, getAnnotationNames, getFullName, getId, getName, getOntology, hashCode, putAnnotation, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.meta2project.model.NamedEntity
getFullName, getName, getOntology, setName
 
Methods inherited from interface org.meta2project.model.AnnotatedEntity
getAnnotation, getAnnotationNames, putAnnotation
 

Constructor Detail

DBOProperty

public DBOProperty(DBConnection con,
                   CachedOProperty cachedEntity)
Method Detail

getEntityCache

public EntityCache getEntityCache()
Specified by:
getEntityCache in class DBEntity

getRange

public OntClass getRange()
Description copied from interface: OProperty
Get the range class for the oproperty.

Specified by:
getRange in interface OProperty
Returns:
range class

getDomain

public OntClass getDomain()
Description copied from interface: Property
Get property domain

Specified by:
getDomain in interface Property
Returns:
null, if domain is any object

getMinCardinality

public java.lang.Integer getMinCardinality()
Description copied from interface: Property
Get min.cardinality

Specified by:
getMinCardinality in interface Property
Returns:
null is equivalent to 0

getMaxCardinality

public java.lang.Integer getMaxCardinality()
Description copied from interface: Property
Get max.cardinality

Specified by:
getMaxCardinality in interface Property
Returns:
null is equivalent to infinity

delete

public void delete()
Удалить свойство. Если свойство используется в значении свойств объектов, то оно не может быть удалено.

Specified by:
delete in interface NamedEntity
Specified by:
delete in interface Property

setDomain

public void setDomain(OntClass cl)
Description copied from interface: Property
Set property domain

Specified by:
setDomain in interface Property
Parameters:
cl - domain class (may be null)

setRange

public void setRange(OntClass r)
Description copied from interface: OProperty
Set range class

Specified by:
setRange in interface OProperty
Parameters:
r - range class, may be null