|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jcorporate.expresso.core.dataobjects.BaseDataObject com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject com.jcorporate.expresso.core.dbobj.DBObject com.jcorporate.expresso.core.dbobj.SecuredDBObject com.jcorporate.expresso.core.dbobj.RowSecuredDBObject com.sri.emo.dbobj.RelationType
public class RelationType
The types of relations between nodes in the model.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
---|
DBObject.FieldError, DBObject.FieldUpdate |
Field Summary | |
---|---|
static String[][] |
ALL_RELATION_TYPES
we automatically populate this subset of relations |
static String |
DEST_ASSOCIATED_SRC
|
static String |
DEST_CONTAINS_SRC
|
static String |
DEST_IS_EXAMPLE_OF_SRC
|
static String |
DEST_IS_PART_OF_SRC
|
static String |
RELATION_INVERSE
marker for whether this relation has an inverse ("reflexive" relations have inverses) |
static String |
RELATION_STRENGTH
|
static String |
RELATION_TYPE_DESCRIP
|
static String |
RELATION_TYPE_DISPLAY_NAME
|
static String |
RELATION_TYPE_NAME
|
static String |
STRONG_RELATION
Strong relations will result in a child being destroyed with the parent (Unless the child also belongs to a strong relation of another parent. |
static String |
WEAK_RELATION
Indicates that there is an association, but there is no use of it for dealing with entity traversals when selecting trees. |
Fields inherited from class com.jcorporate.expresso.core.dbobj.RowSecuredDBObject |
---|
DEFAULT_PERMISSION_CODE |
Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
---|
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, SYSTEM_ACCOUNT_NAME, UPDATE |
Fields inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
---|
ATTRIBUTE_ERROR, ATTRIBUTE_ERROR_MESSAGE, ATTRIBUTE_PAGE_LIMIT, BIG_DECIMAL_ZERO, CACHE_LIMIT_PERCENT, CACHE_LIMIT_TTL, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, IS_MUTABLE, sCacheStats, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
---|
anyFieldsDistinct, anyFieldsToInput, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, inputFields, localConnection, LONGBINARY_READ_DEFAULT_SIZE, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
---|
currentStatus, globalMask |
Fields inherited from interface com.jcorporate.expresso.core.dataobjects.Securable |
---|
SYSTEM_ACCOUNT |
Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
---|
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
Constructor Summary | |
---|---|
RelationType()
Default constructor for RelationType
creates a new object of this type with no connection
yet allocated. |
Method Summary | |
---|---|
void |
add()
If the user is allowed to add, invoke the superclass add |
void |
delete()
Delete a record from the target table |
String |
getInverseRel()
|
RelationType |
getInverseRelType()
|
List |
getParts()
Get parts of ANY object with this relation type from database, NOT from cache. |
List |
getRelations()
get all Relations of this type, across entire universe of object types |
String |
getRelTypeDescrip()
|
String |
getRelTypeDisplayName()
|
static String |
getRelTypeDisplayName(String typename)
|
String |
getRelTypeName()
|
String |
getStrength()
|
Vector |
getValidValues(String fieldName)
Popup list for inverse relations. |
Transition |
getViewTrans()
provide a transition for viewing this object, suitable for creating an HTTP link |
boolean |
hasInverseRelation(String type)
|
boolean |
isReflexive()
|
boolean |
isStrong()
|
void |
setInverseRel(String inverse)
|
void |
setRelDescrip(String descrip)
|
void |
setRelDisplayName(String displayName)
|
void |
setRelType(String nodeRelation)
|
void |
setStrength(String newValue)
|
void |
setStrongRelation(boolean strongRelation)
|
protected void |
setupFields()
Defines the database table name and fields for this DB object |
Methods inherited from class com.jcorporate.expresso.core.dbobj.RowSecuredDBObject |
---|
add, addGroupPerm, canRequesterAdministrate, canRequesterRead, canRequesterWrite, checkDeleteDetailPerm, checkKeyLength, defaultGroup, defaultPermissions, delete, deleteAll, find, getAdministrateGroups, getGroups, getPermissions, getReadGroups, getWriteGroups, isAdminGroup, isReadGroup, isRowAllowed, isRowAllowed, isWriteGroup, ownerID, removeGroup, retrieve, searchAndRetrieveList, searchAndRetrieveList, setPermissions, setPermissions, update |
Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
---|
canRequesterAdd, canRequesterDelete, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, getRequestingUid, getRequestingUser, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, search, setRequestingUid, setRequestingUser |
Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
---|
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RELATION_TYPE_NAME
public static final String RELATION_TYPE_DISPLAY_NAME
public static final String RELATION_TYPE_DESCRIP
public static final String RELATION_INVERSE
public static final String RELATION_STRENGTH
public static final String DEST_IS_PART_OF_SRC
public static final String DEST_CONTAINS_SRC
public static final String DEST_ASSOCIATED_SRC
public static final String DEST_IS_EXAMPLE_OF_SRC
public static final String STRONG_RELATION
public static final String WEAK_RELATION
public static final String[][] ALL_RELATION_TYPES
Constructor Detail |
---|
public RelationType() throws DBException
RelationType
creates a new object of this type with no connection
yet allocated.
DBException
- If the new object cannot be
createdMethod Detail |
---|
protected void setupFields() throws DBException
setupFields
in class DBObject
DBException
- if the operation cannot be performedpublic Vector getValidValues(String fieldName) throws DBException
getValidValues
in class DBObject
fieldName
- The name of the fields for which a value set is requested
DBException
- upon errorpublic void setInverseRel(String inverse) throws DBException
DBException
public String getInverseRel() throws DBException
DBException
public static String getRelTypeDisplayName(String typename) throws DBException
DBException
public boolean hasInverseRelation(String type) throws DBException
DBException
public String getRelTypeDescrip() throws DBException
DBException
public String getRelTypeName() throws DBException
DBException
public String getRelTypeDisplayName() throws DBException
DBException
public void setRelType(String nodeRelation) throws DBException
DBException
public boolean isReflexive() throws DBException
DBException
public RelationType getInverseRelType() throws DBException
DBException
- upon errorhasInverseRelation(java.lang.String)
public void delete() throws DBException
delete
in interface DataObject
delete
in class SecuredDBObject
DBException
- if delete is not allowed for the current userpublic void add() throws DBException
add
in interface DataObject
add
in class RowSecuredDBObject
DBException
- If the user is not permitted to add
or if the add failspublic List getRelations() throws DBException
DBException
- upon errorpublic List getParts() throws DBException
DBException
- upon database query error.public void setRelDescrip(String descrip) throws DBException
DBException
public void setRelDisplayName(String displayName) throws DBException
DBException
public Transition getViewTrans() throws DBException
getViewTrans
in interface IViewable
DBException
- upon query parameter error.public void setStrength(String newValue) throws DBException
DBException
public String getStrength() throws DBException
DBException
public void setStrongRelation(boolean strongRelation) throws DBException
DBException
public boolean isStrong() throws DBException
DBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |