public class KnowledgeQuestion extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
A question
|
static java.lang.String |
DBCLASS_NAME
A question
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
KnowledgeQuestion(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
void |
check()
check
|
protected void |
clearCache(GlobalKey changedKey)
clear the handle.
|
static KnowledgeQuestion |
create(MutableDataSource mds)
Make a new instance of this class.
|
boolean |
doesMatch(java.lang.String text,
int fromUserId,
boolean verbose) |
boolean |
doesMatch(Tweet tweet,
boolean includeLearnFromUsers) |
protected void |
extPreValidate()
OVERRIDE To add functionality to before validation is called.
|
protected void |
extValidateRecord(ValidationList list)
validate
|
KnowledgeAnswerRaw |
fetchNextAnswer(TwitterUser fromUser) |
TwitterAccount |
findAccount(java.lang.String... args)
The account.
|
KnowledgeAnswer |
findAnswer(java.lang.String... args)
Deprecated.
|
static KnowledgeQuestion |
findKey(DataSource ds,
java.lang.String key)
Find the target for this class by the primary key
|
KnowledgeResponseMode |
findMode(java.lang.String... args)
The mode for this question.
|
TwitterAccount |
getAccount(java.lang.String... args) |
KnowledgeAnswer |
getAnswer(java.lang.String... args)
Deprecated.
|
java.lang.String |
getCode(java.lang.String... args) |
java.util.List<java.lang.String> |
getKeys(java.lang.String... args) |
KnowledgeResponseMode |
getMode(java.lang.String... args) |
java.lang.String |
getNotesHTML(java.lang.String... args) |
int |
getSeq(java.lang.String... args) |
java.util.List<KnowledgeTag> |
getTags(java.lang.String... args) |
boolean |
isCheckFailed(java.lang.String... args) |
boolean |
isDirectlyAddressedQuestionsOnly(java.lang.String... args) |
boolean |
isDisabled(java.lang.String... args) |
boolean |
isStdExcludes(java.lang.String... args) |
static DBQuery<KnowledgeQuestion> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
KnowledgeQuestion |
setAccount(com.aspc.dal.twitter.obj.TwitterAccount value,
java.lang.String... args) |
KnowledgeQuestion |
setAnswer(com.aspc.dal.knowledge.obj.KnowledgeAnswer value,
java.lang.String... args)
Deprecated.
|
KnowledgeQuestion |
setCheckFailed(boolean value,
java.lang.String... args) |
KnowledgeQuestion |
setCode(java.lang.String value,
java.lang.String... args) |
KnowledgeQuestion |
setDirectlyAddressedQuestionsOnly(boolean value,
java.lang.String... args) |
KnowledgeQuestion |
setDisabled(boolean value,
java.lang.String... args) |
KnowledgeQuestion |
setKeys(java.util.List<java.lang.String> value,
java.lang.String... args) |
KnowledgeQuestion |
setMode(com.aspc.dal.knowledge.obj.KnowledgeResponseMode value,
java.lang.String... args) |
KnowledgeQuestion |
setNotesHTML(java.lang.String value,
java.lang.String... args) |
KnowledgeQuestion |
setSeq(int value,
java.lang.String... args) |
KnowledgeQuestion |
setStdExcludes(boolean value,
java.lang.String... args) |
KnowledgeQuestion |
setTags(java.util.List<KnowledgeTag> value,
java.lang.String... args) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, eventFieldUpdated, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extFixUp, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateField, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public KnowledgeQuestion(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The class of this objectdataSource
- The datasource for this objectjava.lang.Exception
- A serious problem occurred@CheckReturnValue @Nonnull public java.lang.String getCode(java.lang.String... args)
@Nonnull public KnowledgeQuestion setCode(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public TwitterAccount getAccount(java.lang.String... args)
@CheckReturnValue @Nonnull public final TwitterAccount findAccount(java.lang.String... args) throws NotFoundException
TwitterAccount
(Integer, Searchable)args
- the optional argumentsNotFoundException
- TwitterAccount was not found@Nonnull public KnowledgeQuestion setAccount(com.aspc.dal.twitter.obj.TwitterAccount value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Deprecated @CheckReturnValue @Nullable public KnowledgeAnswer getAnswer(java.lang.String... args)
@CheckReturnValue @Deprecated @Nonnull public final KnowledgeAnswer findAnswer(java.lang.String... args) throws NotFoundException
KnowledgeAnswer
(String, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- KnowledgeAnswer was not found@Deprecated @Nonnull public KnowledgeQuestion setAnswer(com.aspc.dal.knowledge.obj.KnowledgeAnswer value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isCheckFailed(java.lang.String... args)
@Nonnull public KnowledgeQuestion setCheckFailed(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isDirectlyAddressedQuestionsOnly(java.lang.String... args)
@Nonnull public KnowledgeQuestion setDirectlyAddressedQuestionsOnly(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isDisabled(java.lang.String... args)
@Nonnull public KnowledgeQuestion setDisabled(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.util.List<java.lang.String> getKeys(java.lang.String... args)
@Nonnull public KnowledgeQuestion setKeys(java.util.List<java.lang.String> value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public KnowledgeResponseMode getMode(java.lang.String... args)
@CheckReturnValue @Nonnull public final KnowledgeResponseMode findMode(java.lang.String... args) throws NotFoundException
KnowledgeResponseMode
(String, Searchable)args
- the optional argumentsNotFoundException
- KnowledgeResponseMode was not found@Nonnull public KnowledgeQuestion setMode(com.aspc.dal.knowledge.obj.KnowledgeResponseMode value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getNotesHTML(java.lang.String... args)
@Nonnull public KnowledgeQuestion setNotesHTML(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getSeq(java.lang.String... args)
@Nonnull public KnowledgeQuestion setSeq(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isStdExcludes(java.lang.String... args)
@Nonnull public KnowledgeQuestion setStdExcludes(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.util.List<KnowledgeTag> getTags(java.lang.String... args)
@Nonnull public KnowledgeQuestion setTags(java.util.List<KnowledgeTag> value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static KnowledgeQuestion create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds
- the datasourcejava.lang.Exception
- an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<KnowledgeQuestion> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static KnowledgeQuestion findKey(@Nonnull DataSource ds, @Nonnull java.lang.String key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void clearCache(@Nullable GlobalKey changedKey)
clearCache
in class DBObject
changedKey
- The key that was changed.@OverridingMethodsMustInvokeSuper protected void extPreValidate() throws java.lang.Exception
extPreValidate
in class DBObject
java.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void extValidateRecord(@Nonnull ValidationList list) throws java.lang.Exception
extValidateRecord
in class DBObject
list
- the validationjava.lang.Exception
- a serious problempublic void check() throws java.lang.Exception
java.lang.Exception
- a serious problempublic KnowledgeAnswerRaw fetchNextAnswer(TwitterUser fromUser) throws java.lang.Exception
fromUser
- the userjava.lang.Exception
- a serious problempublic boolean doesMatch(Tweet tweet, boolean includeLearnFromUsers) throws java.lang.Exception
tweet
- the tweetincludeLearnFromUsers
- includejava.lang.Exception
- a serious problempublic boolean doesMatch(java.lang.String text, int fromUserId, boolean verbose) throws java.lang.Exception
text
- the textfromUserId
- from a userverbose
- is verbosejava.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.