public class Record extends Object implements Serializable, Comparable, RecordInterface
| Constructor and Description |
|---|
Record(ITable table,
Map<Object,Object> newvals,
MatchSchemaInterface schema) |
Record(MatchCriteria matchcrits,
MatchSchemaInterface matchSchema) |
Record(MatchSchemaInterface matchSchema1) |
Record(MatchSchemaInterface matchSchema,
INode node) |
Record(String tableName,
String pkey,
MatchSchemaInterface matchSchema) |
public Record(MatchSchemaInterface matchSchema1) throws Exception
Exceptionpublic Record(MatchSchemaInterface matchSchema, INode node) throws Exception
Exceptionpublic Record(String tableName, String pkey, MatchSchemaInterface matchSchema) throws Exception
Exceptionpublic Record(MatchCriteria matchcrits, MatchSchemaInterface matchSchema) throws Exception
Exceptionpublic INode getBaseNode()
getBaseNode in interface RecordInterfacepublic String getPkey()
getPkey in interface RecordInterfacepublic void neverLoad()
throws Exception
neverLoad in interface RecordInterfaceExceptionpublic String getTableName()
getTableName in interface RecordInterfacepublic void setPkey(String pkey)
setPkey in interface RecordInterfacepublic RecordInterface assignNode(INode n) throws Exception
assignNode in interface RecordInterfaceExceptionpublic RecordInterface assignTable(MatchTableInterface table) throws Exception
assignTable in interface RecordInterfaceExceptionpublic String getKeyField()
getKeyField in interface RecordInterfacepublic String getEIDField()
getEIDField in interface RecordInterfacepublic MatchTableInterface getMatchTable()
public void load()
load in interface RecordInterfacepublic ConcurrentHashMap<INode,ContextMap> getRelatedNodes(String reltype, String direction, Date when) throws Exception
getRelatedNodes in interface RecordInterfaceExceptionpublic HashMap<String,String> getRelatedRecords(String relTypeName, Date when) throws Exception
Exceptionpublic List<RecordInterface> getRelatedRecords(String relTypeName, String direction, Date when) throws Exception
Exceptionpublic ArrayList<String> getFieldNames() throws Exception
getFieldNames in interface RecordInterfaceExceptionpublic void setValue(String colname, Object value)
setValue in interface RecordInterfacepublic void saveNoIndexes(String username) throws Exception
saveNoIndexes in interface RecordInterfaceExceptionpublic RecordInterface save(boolean hasKeyChanged, String username) throws Exception
save in interface RecordInterfaceExceptionpublic String getValue(String colname) throws Exception
getValue in interface RecordInterfaceExceptionpublic boolean isValid()
isValid in interface RecordInterfacepublic boolean isNew()
public boolean isPersisted()
public Map<String,Object> toHashMap() throws Exception
toHashMap in interface RecordInterfaceExceptionpublic String display() throws Exception
display in interface RecordInterfaceExceptionpublic void setLabelFields(List<String> labelFields)
setLabelFields in interface RecordInterfacepublic List<String> getLabelFields()
getLabelFields in interface RecordInterfacepublic void putRecord(boolean keychanged,
String username)
throws Exception
Exceptionpublic void addRelatedRec(RecordInterface targetRec, String reasonVerb, Date dateOf, String actionThatCausedThis, String user) throws Exception
addRelatedRec in interface RecordInterfaceExceptionpublic void addRelatedRec(RecordInterface targetRec, String reasonVerb, Date dateOf, Document values, String actionThatCausedThis, String user) throws Exception
addRelatedRec in interface RecordInterfaceExceptionpublic boolean applyInheritanceFrom(RecordInterface targetRec)
applyInheritanceFrom in interface RecordInterfacepublic boolean equals(RecordInterface that)
public String toString()
toString in interface RecordInterfacetoString in class Objectpublic boolean isRelatedTo(RecordInterface record) throws Exception
Exceptionpublic boolean isRelatedTo(RecordInterface record, String reltype, Date when) throws Exception
Exceptionpublic IRelationship getRelatedTo(RecordInterface otherRec, String relTypeName, Date when) throws Exception
getRelatedTo in interface RecordInterfaceExceptionpublic boolean setValues(Document vals)
setValues in interface RecordInterfacepublic Collection<RecordInterface> getHistoryRecords()
getHistoryRecords in interface RecordInterfacepublic void addHistoryRecord(INode newValues, String action, String username) throws Exception
addHistoryRecord in interface RecordInterfaceExceptionpublic ConcurrentHashMap<String,Object> getValues() throws Exception
getValues in interface RecordInterfaceExceptionpublic INode setBaseNode(INode baseNode2)
setBaseNode in interface RecordInterfacepublic boolean isComplete()
throws Exception
isComplete in interface RecordInterfaceExceptionpublic Date getLastUpdated()
getLastUpdated in interface RecordInterfacepublic void setLastUpdated(Date date) throws Exception
setLastUpdated in interface RecordInterfaceExceptionpublic String getAction() throws Exception
getAction in interface RecordInterfaceExceptionpublic List<Standardized> getStandardised(String purposeColumnName, MatchProcInterface proc, List<PurposeColumnMap> map, WordList anon) throws Exception
getStandardised in interface RecordInterfaceExceptionpublic List<Standardized> standardise(String purposeName, MatchProcInterface proc, List<PurposeColumnMap> pcm, WordList anon) throws Exception
standardise in interface RecordInterfaceExceptionpublic static List<Standardized> standardise(RecordInterface rec, MatchSchemaInterface schema, String purposeName, MatchProcInterface proc, List<PurposeColumnMap> pcm, WordList anon) throws Exception
Exceptionpublic Collection<RecordInterface> getAllRecords()
getAllRecords in interface RecordInterfacepublic void incrementMergeCount(int mergeIncrement)
throws NumberFormatException,
Exception
NumberFormatExceptionExceptionpublic MatchRecordInterface calculateScore(RecordInterface comparitor, boolean forSearch, boolean googleSearch, boolean asContent, boolean matchScoring) throws Exception
calculateScore in interface RecordInterfaceExceptionpublic boolean isHistory()
isHistory in interface RecordInterfacepublic String getIcon()
getIcon in interface RecordInterfacepublic String getSystemName() throws Exception
getSystemName in interface RecordInterfaceExceptionpublic String getSensitivityValue() throws Exception
getSensitivityValue in interface RecordInterfaceExceptionpublic void setSystemName(String systemName) throws Exception
setSystemName in interface RecordInterfaceExceptionpublic void setUpdatedBy(String updatedBy)
setUpdatedBy in interface RecordInterfacepublic String getUpdatedBy()
getUpdatedBy in interface RecordInterfacepublic int compareTo(Object o)
compareTo in interface Comparablepublic boolean isSensitive()
throws Exception
isSensitive in interface RecordInterfaceExceptionpublic boolean isInternal()
isInternal in interface RecordInterfacepublic RecordInterface getDocument()
getDocument in interface RecordInterfacepublic List<Document> getXref()
getXref in interface RecordInterfacepublic static RecordInterface build(MatchSchemaInterface matchSchema2) throws Exception
build in interface RecordInterfaceExceptionCopyright © 2021. All rights reserved.