|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.compiere.model.X_K_Index
org.compiere.model.MIndex
public class MIndex
Text Index Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Fields inherited from interface org.compiere.model.I_K_Index |
|---|
accessLevel, COLUMNNAME_AD_Table_ID, COLUMNNAME_C_DocType_ID, COLUMNNAME_CM_WebProject_ID, COLUMNNAME_Excerpt, COLUMNNAME_K_INDEX_ID, COLUMNNAME_Keyword, COLUMNNAME_R_RequestType_ID, COLUMNNAME_Record_ID, COLUMNNAME_SourceUpdated, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MIndex(Properties ctx,
int K_Index_ID,
String trxName)
Standard Constructor |
|
MIndex(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static int |
cleanUp(String trxName,
int AD_Client_ID,
int AD_Table_ID,
int Record_ID)
cleanUp |
static Hashtable<String,String> |
indexString(String thisText)
Index/Keyword a String |
static Hashtable |
indexStringBuffer(StringBuffer thisText)
Index/Keyword a StringBuffer |
static void |
reIndex(boolean runCleanUp,
String[] toBeIndexed,
Properties ctx,
int AD_Client_ID,
int AD_Table_ID,
int Record_ID,
int CM_WebProject_ID,
Timestamp lastUpdated)
reIndex Document |
protected static String |
removeHTML(String textElement)
remove HTML Tags from content... |
static boolean |
runIndex(String thisText,
Properties ctx,
String trxName,
int tableID,
int recordID,
int CMWebProjectID,
Timestamp sourceUpdated)
runIndex |
void |
setKeyword(String Keyword)
Set Keyword & standardize |
protected static String |
standardizeKeyword(String keyword)
Clean up & standardize Keyword |
| Methods inherited from class org.compiere.model.X_K_Index |
|---|
get_AccessLevel, getAD_Table_ID, getAD_Table, getC_DocType_ID, getC_DocType, getCM_WebProject_ID, getCM_WebProject, getExcerpt, getK_INDEX_ID, getKeyNamePair, getKeyword, getR_RequestType_ID, getR_RequestType, getRecord_ID, getSourceUpdated, initPO, setAD_Table_ID, setC_DocType_ID, setCM_WebProject_ID, setExcerpt, setK_INDEX_ID, setR_RequestType_ID, setRecord_ID, setSourceUpdated, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MIndex(Properties ctx,
int K_Index_ID,
String trxName)
ctx - contextK_Index_ID - indextrxName - transaction
public MIndex(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static int cleanUp(String trxName,
int AD_Client_ID,
int AD_Table_ID,
int Record_ID)
trxName - AD_Client_ID - AD_Table_ID - Record_ID -
public void setKeyword(String Keyword)
setKeyword in interface I_K_IndexsetKeyword in class X_K_IndexKeyword - protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
public static Hashtable indexStringBuffer(StringBuffer thisText)
thisText - The String to convert into Hash
public static Hashtable<String,String> indexString(String thisText)
thisText - The String to convert into Hash
public static boolean runIndex(String thisText,
Properties ctx,
String trxName,
int tableID,
int recordID,
int CMWebProjectID,
Timestamp sourceUpdated)
thisText - The text to be indexedctx - contexttrxName - Transaction if neededtableID - Table IDrecordID - Record IDCMWebProjectID - Web Project IDsourceUpdated - Update Date of Source
public static void reIndex(boolean runCleanUp,
String[] toBeIndexed,
Properties ctx,
int AD_Client_ID,
int AD_Table_ID,
int Record_ID,
int CM_WebProject_ID,
Timestamp lastUpdated)
runCleanUp - clean old recordstoBeIndexed - Array of Strings to be indexedctx - ContextAD_Client_ID - ClientAD_Table_ID - TableRecord_ID - RecordCM_WebProject_ID - Web ProjectlastUpdated - Date of last updateprotected static String removeHTML(String textElement)
textElement -
protected static String standardizeKeyword(String keyword)
keyword - keyword
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||