com.sri.emo.annotations
Class NodeTag

java.lang.Object
  extended by com.jcorporate.expresso.core.dataobjects.BaseDataObject
      extended by com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject
          extended by com.jcorporate.expresso.core.dbobj.DBObject
              extended by com.jcorporate.expresso.core.dbobj.SecuredDBObject
                  extended by com.jcorporate.expresso.core.dbobj.SecurDBObject
                      extended by com.sri.emo.annotations.NodeTag
All Implemented Interfaces:
Cacheable, ContextNested, DataObject, Securable, LookupInterface, Serializable

public class NodeTag
extends SecurDBObject

Table of tags associated with the given nodes.

Author:
Michael Rimov
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jcorporate.expresso.core.dbobj.DBObject
DBObject.FieldError, DBObject.FieldUpdate
 
Field Summary
static String TAG_ADDED_BY
           
static String TAG_ADDED_ON
           
static String TAG_ID
           
static String TAG_PARENT_NODE
           
static String TAG_VALUE
           
static String TAGS_TABLE
           
 
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
NodeTag()
           
NodeTag(ControllerRequest request)
           
NodeTag(DBConnection newConnection)
           
NodeTag(DBConnection newConnection, String setupTablesContext)
           
NodeTag(ReadOnlyUser readOnlyUser)
           
 
Method Summary
 void add(String userId)
           
 String getAddedBy()
           
 Date getAddedOn()
           
 Integer getNodeId()
           
 Node[] getTaggedNodes()
           
 Integer getTagId()
           
 String getTagValue()
           
 void setAddedBy()
          Sets the current user for the 'added by' node value.
 void setAddedBy(String addedBy)
          Set who it was added by.
 void setAddedOn()
          Sets the current date for the item.
 void setAddedOn(Date addedOn)
           
 void setNodeId(Integer nodeId)
          Sets the parent node id.
 void setNodeId(String nodeId)
           
 void setTagValue(String tagValue)
          Sets the value of the tag.
protected  void setupFields()
           
 
Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject
add, canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, delete, deleteAll, find, getRequestingUid, getRequestingUser, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, setRequestingUser, update
 
Methods inherited from class com.jcorporate.expresso.core.dbobj.DBObject
addDetail, addField, addField, addFieldError, addFoundKeys, addIfNeeded, addIndex, addKey, addMaster, addOrUpdate, addSortKey, addTransition, addVirtualField, addVirtualField, addVirtualField, addVirtualField, average, basicAdd, cacheIsChangedComparison, canUseRetrieve, checkAllReferredToBy, checkAllRefs, checkAllRefsPublic, checkDeleteDetailPerm, checkField, checkMutable, checkRef, checkRef, clear, clearDistinctFields, clearError, clearFieldsToInput, clearFieldsToRetrieve, clearSortKeys, clone, containsWildCards, copyAllFields, delete, deleteAll, deleteDetails, denotesRange, equals, fetchImmut, fetchImmutable, forKey, formatDateTime, get, getAllAttributes, getAttribute, getAttributesIterator, getBooleanFieldValue, getCacheSize, getCacheStatsMap, getCacheUtil, getCheckZeroUpdate, getCustomWhereClause, getDataContext, getDataField, getDataTransferObject, getDBName, getDetails, getDistinctFieldCount, getDistinctFields, getField, getFieldAttributesIterator, getFieldBigDecimal, getFieldBoolean, getFieldByte, getFieldByteArray, getFieldData, getFieldDate, getFieldDecimalFormatted, getFieldDouble, getFieldErrorMessage, getFieldFloat, getFieldInt, getFieldLong, getFieldMetaData, getFieldShort, getFieldsToInputCount, getFieldsToRetrieveCount, getFilterClass, getFoundCount, getFoundKeysArray, getIndexArray, getISOValuesDefault, getISOValuesDefault, getISOValuesDefault, getKey, getKeyFieldListIterator, getLength, getLengthInt, getLocale, getLogger, getLookupObject, getMax, getMax, getMaxRecords, getMyKeys, getMyUpdatesArray, getOffsetRecord, getPatternMatcher, getPrecision, getSerializedForm, getSizeEstimate, getStringFilter, getThisDBbj, getThisDBObj, getValidValueDescrip, getValidValues, getValidValuesList, getValues, getValuesDefault, getValuesDefault, getValuesDefault, hasError, hasErrors, haveAllKeys, initialize, isCached, isChanged, isDistinct, isEmpty, isFieldDistinct, isFieldNull, isFieldsToInput, isFieldsToRetrieve, isFieldToRetrieve, isMultiValued, isMutable, isMutable, isReadOnly, isSecret, isVirtual, loadFromConnection, logChange, max, min, newInstance, noNewLine, noQuotes, notifyListeners, populateDefaultValues, referredToBy, removeAttribute, removeFromCache, retrieveFromCache, saveBinaryField, search, set, setAttribute, setCacheLimit, setCacheLimit, setCacheLimitAsPercent, setCacheSize, setCharset, setCheckZeroUpdate, setConnection, setConnection, setCustomWhereClause, setCustomWhereClause, setDataContext, setDataField, setDataTransferObject, setDefaultValue, setDescription, setField, setField, setField, setField, setField, setField, setField, setField, setField, setField, setFieldData, setFieldData, setFieldDistinct, setFieldsToInput, setFieldsToRetrieve, setFilterClass, setFilterClass, setKey, setKeys, setLocale, setLookupField, setLookupObject, setMask, setMaxRecords, setMultiValued, setName, setOffsetRecord, setReadOnly, setSchema, setSecret, setSortKey, setStringFilter, setStringFiltersOnAll, setTargetDbSchema, setTargetTable, sqlAggrFunction, sum, toDebugString, update, updateAll, updateAll, updateIsChanged, verify
 
Methods inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject
addInParam, addOutParam, buildWhereClause, buildWhereClauseBuffer, checkZeroUpdate, constructNewMetaData, createAndExecuteSearch, createAndRunStoreProcedure, createSQLSelectStatement, createSQLSelectStatement, getConnectionPool, getCustomStringFieldValue, getDef, getDistinctFieldArrayList, getExecutor, getFieldsToInputIterator, getFieldsToRetrieveIterator, getJDBCMetaData, getJDBCUtil, getLocalConnection, getMappedDataContext, getMetaData, getQueryInterface, getSerialForm, loadFromConnection, makeLimitationStub, quoteIfNeeded, runStoredProcedure, runStoredProcedureAndRetrieveList, selectFieldString, setCaseSensitiveQuery, setDBConnectionPool, setDBName, setMappedDataContext, setOriginalDBName, setTargetStoreProcedure
 
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
 
Methods inherited from interface com.jcorporate.expresso.core.dataobjects.Securable
getRequestingUid, isAllowed, setRequestingUid, setRequestingUser
 

Field Detail

TAG_ID

public static final String TAG_ID
See Also:
Constant Field Values

TAG_PARENT_NODE

public static final String TAG_PARENT_NODE
See Also:
Constant Field Values

TAG_VALUE

public static final String TAG_VALUE
See Also:
Constant Field Values

TAG_ADDED_BY

public static final String TAG_ADDED_BY
See Also:
Constant Field Values

TAG_ADDED_ON

public static final String TAG_ADDED_ON
See Also:
Constant Field Values

TAGS_TABLE

public static final String TAGS_TABLE
See Also:
Constant Field Values
Constructor Detail

NodeTag

public NodeTag()
        throws DBException
Throws:
DBException

NodeTag

public NodeTag(DBConnection newConnection)
        throws DBException
Throws:
DBException

NodeTag

public NodeTag(DBConnection newConnection,
               String setupTablesContext)
        throws DBException
Throws:
DBException

NodeTag

public NodeTag(ControllerRequest request)
        throws DBException
Throws:
DBException

NodeTag

public NodeTag(ReadOnlyUser readOnlyUser)
        throws DBException
Throws:
DBException
Method Detail

setupFields

protected void setupFields()
                    throws DBException
Overrides:
setupFields in class DBObject
Throws:
DBException

setTagValue

public void setTagValue(String tagValue)
                 throws DataException
Sets the value of the tag.

Parameters:
tagValue - String may be initially null, but may not be null once added or updated.
Throws:
DataException

setNodeId

public void setNodeId(Integer nodeId)
               throws DataException
Sets the parent node id.

Parameters:
nodeId - Integer
Throws:
DataException

setNodeId

public void setNodeId(String nodeId)
               throws DataException
Throws:
DataException

setAddedBy

public void setAddedBy()
                throws DBException
Sets the current user for the 'added by' node value.

Throws:
DBException

setAddedBy

public void setAddedBy(String addedBy)
                throws DataException
Set who it was added by.

Parameters:
addedBy - String
Throws:
DataException

setAddedOn

public void setAddedOn()
                throws DataException
Sets the current date for the item.

Throws:
DataException

setAddedOn

public void setAddedOn(Date addedOn)
                throws DataException
Throws:
DataException

getTagId

public Integer getTagId()
                 throws DBException
Throws:
DBException

getTagValue

public String getTagValue()
                   throws DBException
Throws:
DBException

getNodeId

public Integer getNodeId()
                  throws DBException
Throws:
DBException

getAddedBy

public String getAddedBy()
                  throws DBException
Throws:
DBException

getAddedOn

public Date getAddedOn()
                throws DBException
Throws:
DBException

add

public void add(String userId)
         throws DBException
Throws:
DBException

getTaggedNodes

public Node[] getTaggedNodes()
                      throws DBException
Returns:
array of nodes based on this tag, using value and 'addedby' IFF those
Throws:
DBException


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.