Adempiere 3.5.2a

org.compiere.model
Class MSystem

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_AD_System
          extended by org.compiere.model.MSystem
All Implemented Interfaces:
Serializable, Comparator, I_AD_System, I_Persistent, Evaluatee

public class MSystem
extends X_AD_System

System Record (just one)

Version:
$Id: MSystem.java,v 1.3 2006/10/09 00:22:28 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.X_AD_System
REPLICATIONTYPE_AD_Reference_ID, REPLICATIONTYPE_Local, REPLICATIONTYPE_Merge, REPLICATIONTYPE_Reference, SYSTEMSTATUS_AD_Reference_ID, SYSTEMSTATUS_Evaluation, SYSTEMSTATUS_Implementation, SYSTEMSTATUS_Production
 
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_AD_System
accessLevel, COLUMNNAME_AD_System_ID, COLUMNNAME_CustomPrefix, COLUMNNAME_DBAddress, COLUMNNAME_DBInstance, COLUMNNAME_Description, COLUMNNAME_EncryptionKey, COLUMNNAME_IDRangeEnd, COLUMNNAME_IDRangeStart, COLUMNNAME_Info, COLUMNNAME_IsAllowStatistics, COLUMNNAME_IsAutoErrorReport, COLUMNNAME_IsFailOnBuildDiffer, COLUMNNAME_IsFailOnMissingModelValidator, COLUMNNAME_IsJustMigrated, COLUMNNAME_LastBuildInfo, COLUMNNAME_LDAPDomain, COLUMNNAME_LDAPHost, COLUMNNAME_Name, COLUMNNAME_NoProcessors, COLUMNNAME_OldName, COLUMNNAME_Password, COLUMNNAME_Processing, COLUMNNAME_ProfileInfo, COLUMNNAME_Record_ID, COLUMNNAME_ReleaseNo, COLUMNNAME_ReplicationType, COLUMNNAME_StatisticsInfo, COLUMNNAME_Summary, COLUMNNAME_SupportEMail, COLUMNNAME_SupportExpDate, COLUMNNAME_SupportUnits, COLUMNNAME_SystemStatus, COLUMNNAME_UserName, COLUMNNAME_Version, Model, Table_ID, Table_Name
 
Constructor Summary
MSystem()
          Constructor
MSystem(Properties ctx, int ignored, String mtrxName)
          Default Constructor
MSystem(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
protected  boolean beforeSave(boolean newRecord)
          Before Save
static MSystem get(Properties ctx)
          Load System Record
 String getDBAddress()
          Get DB Address
static String getDBInfoSQL(String dbType)
          Get DB Info SQL
 String getProfileInfo(boolean recalc)
          Get Profile Info
 String getStatisticsInfo(boolean recalc)
          Get Statistics Info
 void info()
          Print info
 boolean isLDAP()
          Is LDAP Authentification defined
 boolean isLDAP(String userName, String password)
          LDAP Authentification.
 boolean isPDFLicense()
          Is there a PDF License
 boolean isValid()
          Check valididity
static void main(String[] args)
          Test
 boolean save()
          Save Record (ID=0)
 boolean setInfo()
          Set/Derive Info if more then a day old
 String toString()
          String Representation
 
Methods inherited from class org.compiere.model.X_AD_System
get_AccessLevel, getAD_System_ID, getCustomPrefix, getDBInstance, getDescription, getEncryptionKey, getIDRangeEnd, getIDRangeStart, getInfo, getKeyNamePair, getLastBuildInfo, getLDAPDomain, getLDAPHost, getName, getNoProcessors, getOldName, getPassword, getProfileInfo, getRecord_ID, getReleaseNo, getReplicationType, getStatisticsInfo, getSummary, getSupportEMail, getSupportExpDate, getSupportUnits, getSystemStatus, getUserName, getVersion, initPO, isAllowStatistics, isAutoErrorReport, isFailOnBuildDiffer, isFailOnMissingModelValidator, isJustMigrated, isProcessing, setAD_System_ID, setCustomPrefix, setDBAddress, setDBInstance, setDescription, setEncryptionKey, setIDRangeEnd, setIDRangeStart, setInfo, setIsAllowStatistics, setIsAutoErrorReport, setIsFailOnBuildDiffer, setIsFailOnMissingModelValidator, setIsJustMigrated, setLastBuildInfo, setLDAPDomain, setLDAPHost, setName, setNoProcessors, setOldName, setPassword, setProcessing, setProfileInfo, setRecord_ID, setReleaseNo, setReplicationType, setStatisticsInfo, setSummary, setSupportEMail, setSupportExpDate, setSupportUnits, setSystemStatus, setUserName, setVersion
 
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, saveEx, saveEx, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MSystem

public MSystem(Properties ctx,
               int ignored,
               String mtrxName)
Default Constructor

Parameters:
ctx - context
ignored - id
mtrxName - transaction

MSystem

public MSystem(Properties ctx,
               ResultSet rs,
               String trxName)
Load Constructor

Parameters:
ctx - context
rs - result set
trxName - transaction

MSystem

public MSystem()
Constructor

Method Detail

get

public static MSystem get(Properties ctx)
Load System Record

Parameters:
ctx - context
Returns:
System

isLDAP

public boolean isLDAP()
Is LDAP Authentification defined

Returns:
true if ldap defined

isLDAP

public boolean isLDAP(String userName,
                      String password)
LDAP Authentification. Assumes that LDAP is defined.

Parameters:
userName - user name
password - password
Returns:
true if ldap authenticated

getDBAddress

public String getDBAddress()
Get DB Address

Specified by:
getDBAddress in interface I_AD_System
Overrides:
getDBAddress in class X_AD_System
Returns:
address

getStatisticsInfo

public String getStatisticsInfo(boolean recalc)
Get Statistics Info

Parameters:
recalc - recalculate
Returns:
statistics

getProfileInfo

public String getProfileInfo(boolean recalc)
Get Profile Info

Parameters:
recalc - recalculate
Returns:
profile

beforeSave

protected boolean beforeSave(boolean newRecord)
Before Save

Overrides:
beforeSave in class PO
Parameters:
newRecord - new
Returns:
true/false

save

public boolean save()
Save Record (ID=0)

Specified by:
save in interface I_Persistent
Overrides:
save in class PO
Returns:
true if saved

toString

public String toString()
String Representation

Overrides:
toString in class X_AD_System
Returns:
info

isValid

public boolean isValid()
Check valididity

Returns:
true if valid

isPDFLicense

public boolean isPDFLicense()
Is there a PDF License

Returns:
true if there is a PDF License

setInfo

public boolean setInfo()
Set/Derive Info if more then a day old

Returns:
true if set

getDBInfoSQL

public static String getDBInfoSQL(String dbType)
Get DB Info SQL

Parameters:
dbType - database type
Returns:
sql

info

public void info()
Print info


main

public static void main(String[] args)
Test

Parameters:
args -

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.