Klasse DsClass
java.lang.Object
de.uplanet.lucy.server.usermanager.ds.DsClass
- Alle implementierten Schnittstellen:
de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper
public final class DsClass
extends Object
implements de.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper
Information class for a ds class object
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungList<de.uplanet.lucy.server.usermanager.ds.DsAttribute> all attributes with the parent class attributesde.uplanet.lucy.server.usermanager.ds.DsAttributegetAttributeByGuid(String p_strGUID) de.uplanet.lucy.server.usermanager.ds.DsAttributegetAttributeByName(String p_strName) de.uplanet.lucy.server.usermanager.ds.DsAttributegetAttributeByUserAppFieldGuid(String p_strFieldGUID) returns all attribute without the parent attributesa list of guids, for the custom attributes in dsattr (bmandatory = false=de.uplanet.lucy.server.usermanager.ds.DbColumngetDbColumnByGuid(String p_strGUID) de.uplanet.lucy.server.usermanager.ds.DbColumngetDbColumnByGuid(String p_strGUID, Map<String, DsClass> p_tblAliasToClassMap) de.uplanet.lucy.server.usermanager.ds.DbColumngetDbColumnByName(String p_strName) getGuid()intgetID()getLocalizedNameMap(de.uplanet.jdbc.JdbcConnection p_conn) getName()final intgetOrder()de.uplanet.lucy.server.usermanager.ds.DsAttributereturns all attibutes guids which the BSEARCHABLE column is true and is a string typevoidgenerates the select count(*) from tbls with the needed join.voidgetSelectCountStatement(StringBuilder p_sql, List<String> p_whereTbls) generates the select count(*) from tbls with the needed join.de.uplanet.lucy.server.usermanager.ds.IDsSelectWorkergetSelectStatement(StringBuilder p_sql, String[] p_fields, boolean p_bDistinct, List<String> p_whereTables) getSqlSelectStatement(String... p_selectfieldGuids) getSqlSelectStatement(Map<String, String> p_fieldAliases, String... p_selectFields) generates the sql statement, first field will always the pk keyList<de.uplanet.lucy.server.usermanager.ds.DsAttribute> getTenantAttributes(boolean p_bParentAttributes) Get tenant attributesfinal de.uplanet.lucy.server.usermanager.IDsTypegetType()de.uplanet.lucy.server.usermanager.ds.IDsUpdInsWorkergetUpdateInsertStatement(boolean p_bInsert, IDsRecord p_record) de.uplanet.lucy.server.usermanager.ds.IDsSelectWorkerbooleanhasAttribute(String p_strAttributeGuid) booleanfinal booleanvoid
-
Methodendetails
-
isContainer
public boolean isContainer()- Gibt zurück:
- True if class is an container or depends to a container class
-
getID
public int getID()- Gibt zurück:
- the iD
-
getGuid
- Gibt zurück:
- the guid
-
getName
- Gibt zurück:
- the name
-
getTablename
- Gibt zurück:
- the tablename
-
getParent
- Gibt zurück:
- the parent
-
getAttributes
returns all attribute without the parent attributes- Gibt zurück:
- the p_attribute
-
getSelectStatement
public de.uplanet.lucy.server.usermanager.ds.IDsSelectWorker getSelectStatement(StringBuilder p_sql, String[] p_fields, boolean p_bDistinct, List<String> p_whereTables) - Parameter:
p_sql- The sql stringp_fields- The fieldsp_bDistinct- distinct selectp_whereTables- The where tables- Gibt zurück:
- The selectins worker
-
getWorker
-
getUpdateInsertStatement
public de.uplanet.lucy.server.usermanager.ds.IDsUpdInsWorker getUpdateInsertStatement(boolean p_bInsert, IDsRecord p_record) - Parameter:
p_bInsert- Insert record?p_record- The record to insert or update- Gibt zurück:
- The insert / update worker
-
getRequiredAttributes
- Gibt zurück:
- the requiredAttributes
-
getPkAttribute
public de.uplanet.lucy.server.usermanager.ds.DsAttribute getPkAttribute()- Gibt zurück:
- the pkAttribuite
-
getNameDescriptionSelect
- Gibt zurück:
- Select statement
-
getSqlSelectStatement
generates the sql statement, first field will always the pk key- Parameter:
p_fieldAliases- Table Aliases to DsClassp_selectFields- Name = FieldGuid, Value used when Field not found- Gibt zurück:
- sql statement
-
getSqlSelectStatement
- Parameter:
p_selectfieldGuids- Field guids to select- Gibt zurück:
- the sql statemennt
-
getAllAttributesGuids
- Gibt zurück:
- all attribute guids, with the parent class guids
-
getAllAttributes
all attributes with the parent class attributes- Gibt zurück:
- list of
DsAttributeitems
-
getSelectCountStatement
generates the select count(*) from tbls with the needed join. no where clause is generated here. and no special joins to the dsmember or to dsobject for the containerguid is generated here.- Parameter:
p_sql- StringBuilder to store the generated sql statement
-
getSelectCountStatement
generates the select count(*) from tbls with the needed join. no where clause is generated here. and no special joins to the dsmember or to dsobject for the containerguid is generated here.- Parameter:
p_sql- StringBuilder to store the generated sql statement
-
getSearchableAttributeGuids
returns all attibutes guids which the BSEARCHABLE column is true and is a string type- Gibt zurück:
- list of searchable fields (DsObject.STRNAME is allways in the result set)
-
getCustomAttributeGuids
a list of guids, for the custom attributes in dsattr (bmandatory = false=- Gibt zurück:
- unmodifieable list
-
getOrder
public final int getOrder()- Gibt zurück:
- the order
-
isMandatory
public final boolean isMandatory()- Gibt zurück:
- the mandatory
-
getType
public final de.uplanet.lucy.server.usermanager.IDsType getType()- Gibt zurück:
- The type @see
DsDefaultType
-
getDerivedTypes
- Gibt zurück:
- The derived class type ids.
-
hasAttribute
- Parameter:
p_strAttributeGuid- The attribute guid- Gibt zurück:
- true if a attribute with the guid exists.
-
getLocalizedNameMap
- Parameter:
p_conn- The database connection- Gibt zurück:
- Map with the localized names
-
resetLocalizedCache
public void resetLocalizedCache() -
getDbColumnByName
- Parameter:
p_strName- The column name- Gibt zurück:
- The column field with the guid or
nullif not found.
-
getDbColumnByGuid
public de.uplanet.lucy.server.usermanager.ds.DbColumn getDbColumnByGuid(String p_strGUID, Map<String, DsClass> p_tblAliasToClassMap) - Angegeben von:
getDbColumnByGuidin Schnittstellede.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper
-
getDbColumnByGuid
- Angegeben von:
getDbColumnByGuidin Schnittstellede.uplanet.lucy.server.usermanager.ds.IDsAttributesHelper
-
getAttributeByName
- Parameter:
p_strName- The attribute name- Gibt zurück:
- The attribute with the given name or
nullif not found
-
getAttributeByGuid
- Parameter:
p_strGUID- The attribute guid- Gibt zurück:
- The attribute with the given guid or
nullif not found.
-
getAttributeByUserAppFieldGuid
public de.uplanet.lucy.server.usermanager.ds.DsAttribute getAttributeByUserAppFieldGuid(String p_strFieldGUID) - Parameter:
p_strFieldGUID- The attribute field guid- Gibt zurück:
- The attribute with the given guid or
nullif not found.
-
getTenantAttributes
public List<de.uplanet.lucy.server.usermanager.ds.DsAttribute> getTenantAttributes(boolean p_bParentAttributes) Get tenant attributes- Parameter:
p_bParentAttributes- True to include the tenant attributes of parent classes.- Gibt zurück:
- list of
DsAttributeitems
-