public class Term extends DBPersist
Thesauri Term
Modifier and Type | Field and Description |
---|---|
static short |
ClassId |
static int |
SCOPE_ALL |
static int |
SCOPE_ONE |
Constructor and Description |
---|
Term() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(JDCConnection oConn)
Delete a Term and all its synonyms
|
static boolean |
delete(JDCConnection oConn,
java.lang.String sTermGUID)
Delete a Term and all its synonyms
|
java.util.LinkedList |
getChilds(JDCConnection oConn,
int iScope)
Get child terms for this term.
|
static java.lang.String |
getIdFromText(JDCConnection oConn,
int iDomainId,
java.lang.String sTermText)
Get a term GUID given its exact singular or plural name
|
java.lang.String |
getParent(JDCConnection oConn)
Get Term Parent GUID
|
int |
id()
Get term numeric Id.
|
boolean |
isGrandChildOf(JDCConnection oConn,
int iIdDomain,
java.lang.String sTxParent)
Check whether or not this term is child or grand child of another parent term
|
int |
level()
Get term level [1..10]
|
boolean |
load(JDCConnection oConn,
int iIdDomain,
java.lang.String sTxTerm)
Load a Term given its Domain and Text
|
allcaps, allcaps, clear, clone, columns, containsKey, containsValue, entrySet, exists, get, get, getAuditClassName, getCreationDate, getDate, getDate, getDateFormated, getDateShort, getDateTime, getDateTime24, getDecimal, getDecimalFormated, getDecimalFormated, getDouble, getDoubleFormated, getFloat, getFloatFormated, getInt, getIntArray, getInteger, getIntegerArray, getIntervalPart, getItemMap, getItems, getMoney, getPrimaryKey, getShort, getSQLDate, getSQLTime, getString, getStringHtml, getStringNull, getTable, getTable, getTime, getTimeOfDay, getTimestamp, isEmpty, isNull, iterator, keySet, load, load, parseXML, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, remove, remove, replace, replace, replace, replace, replace, replace, replace, replace, setAuditTransact, setAuditUser, setCreationDate, setPrimaryKey, size, store, toLowerCase, toUpperCase, toXML, toXML, toXML, values
public static final short ClassId
public static final int SCOPE_ONE
public static final int SCOPE_ALL
public boolean load(JDCConnection oConn, int iIdDomain, java.lang.String sTxTerm) throws java.sql.SQLException
oConn
- Database ConnectioniIdDomain
- Domain to which term belongssTxTerm
- Term Textjava.sql.SQLException
public boolean delete(JDCConnection oConn) throws java.sql.SQLException
public static boolean delete(JDCConnection oConn, java.lang.String sTermGUID) throws java.sql.SQLException
oConn
- Database ConnectionsTermGUID
- Term GUIDjava.sql.SQLException
public int level()
public int id()
public java.lang.String getParent(JDCConnection oConn) throws java.sql.SQLException
oConn
- Database Connectionjava.sql.SQLException
public java.util.LinkedList getChilds(JDCConnection oConn, int iScope) throws java.sql.SQLException
oConn
- Database ConnectioniScope
- SCOPE_ONE for just first level childs or SCOPE_ALL for childs from all levels downjava.sql.SQLException
public boolean isGrandChildOf(JDCConnection oConn, int iIdDomain, java.lang.String sTxParent) throws java.sql.SQLException
oConn
- Database ConnectioniDomainId
- int Domain Numeric Unique IdentifiersTxParent
- String Parent Term textjava.sql.SQLException
public static java.lang.String getIdFromText(JDCConnection oConn, int iDomainId, java.lang.String sTermText) throws java.sql.SQLException
oConn
- Database ConnectioniDomainId
- Domain Numeric Unique IdentifiersTermText
- Exact term singular or plural text case sensitivejava.sql.SQLException