Class DsDbSchema
java.lang.Object
de.uplanet.lucy.server.usermanager.ds.DsDbSchema
- 
Method SummaryModifier and TypeMethodDescriptionstatic List<de.uplanet.lucy.server.usermanager.ds.DsClass>getAllDerivedClasses(int p_iClass) Get a list of classes that are derived from the given class (contains the given class).static List<de.uplanet.lucy.server.usermanager.ds.DsClass>getAllDerivedClasses(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) gets a list of classes that are derived from the class (contains the given class)static List<de.uplanet.lucy.server.usermanager.ds.DsClass>getAllDerivedClasses(String p_strClassName) gets a list of classes that are derived from the class (contains the given class)static StringgetAttributeGuidForName(String p_strName) static StringgetAttributeNameForGuid(String p_strGuid) static de.uplanet.lucy.server.usermanager.ds.DsClassgetDSClassDefinition(int p_iClassID) static de.uplanet.lucy.server.usermanager.ds.DsClassgetDSClassDefinition(String p_strClass) static de.uplanet.lucy.server.usermanager.ds.DsClassgetDSClassDefinitionByGuid(String p_strGuid) static booleanisArrayAttribute(String p_strGuid) checks if the given guid is an array attributestatic booleanisDerivedFrom(int p_iSuperClass, int p_iClass) Returnstrue, when the type is derived from the super type.static booleanisDerivedFrom(de.uplanet.lucy.server.usermanager.ds.DsClass p_srcClass, de.uplanet.lucy.server.usermanager.ds.DsClass p_dstClass) Returns true, when p_checkType is derived from the p_iSrcType.static booleanisDerivedFrom(String p_strSrcTypeName, String p_strDestTypeName) Returns true, when p_checkType is derived from the p_iSrcType.static booleanisDerivedFromContainer(int p_iClassId) return true if p_iClass is derived from a containerstatic booleanisDerivedFromContainer(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) return true if p_class is derived from a containerstatic booleanisDerivedFromContainer(String p_strClass) return true if p_strClass is derived from a containerstatic booleanisDerivedFromSet(int p_iClassId) Return true if p_class is derived from a set.static booleanisDerivedFromSet(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) true if p_class is derived from a setstatic booleanisDerivedFromSet(String p_strClass) Return true if p_strClass is derived from a set.static booleanisDerivedFromUser(int p_iClassId) Check if the given class is derived from the user class.static booleanisDerivedFromUser(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) Check if the given class is derived from the user class.static booleanisDerivedFromUser(String p_strClass) Check if the given class is derived from the user class.static booleanisNoContainer(int p_iClassID) true if p_class is not derived from a container or a setstatic booleanisNoContainer(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) true if p_class is not derived from a containerstatic booleanisNoContainer(String p_strClass) true if p_strClass is not derived from a container or a setstatic booleanisNoContainerOrSet(int p_iClassID) true if p_iClassID is not derived from a container or a setstatic booleanisNoContainerOrSet(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) true if p_class is not derived from a container or a setstatic booleanisNoContainerOrSet(String p_strClass) true if p_strClass is not derived from a container or a setstatic booleanisNoSet(int p_iClassID) true if p_class is not derived from a setstatic booleanisNoSet(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) true if p_class is not derived from a setstatic booleantrue if p_strClass is not derived from a setstatic booleanIs a attribute defined as tenant ID in this schema?static StringmapClassIdToClassKey(int p_iID) static intmapClassKeyToClassId(String p_strKey) static voidrefreshCache(de.uplanet.jdbc.JdbcConnection p_conn) reloads the cache.
- 
Method Details- 
refreshCachereloads the cache.- Parameters:
- p_conn- The database connection
- Throws:
- SQLException
 
- 
getDSClassDefinitionpublic static de.uplanet.lucy.server.usermanager.ds.DsClass getDSClassDefinition(int p_iClassID) - Parameters:
- p_iClassID- The pk value of the DSClass Table (LID)
- Returns:
- The class with the given id (could be null)
 
- 
getDSClassDefinition- Parameters:
- p_strClass- The unique class name
- Returns:
- The dsclass object or nullif not found.
 
- 
getDSClassDefinitionByGuidpublic static de.uplanet.lucy.server.usermanager.ds.DsClass getDSClassDefinitionByGuid(String p_strGuid) - Parameters:
- p_strGuid- The class guid
- Returns:
- The dsclass object or nullif not found.
 
- 
getDSClassDefinitions- Returns:
- An unmodifiable map of class definitions.
 
- 
isDerivedFrompublic static boolean isDerivedFrom(int p_iSuperClass, int p_iClass) Returnstrue, when the type is derived from the super type.- Parameters:
- p_iSuperClass- if not exists a DsRuntimeException is thrown
- p_iClass- if not exists false is returned
- Returns:
- trueif p_iDstType is derived from p_iSrcType.
 
- 
getAllDerivedClassespublic static List<de.uplanet.lucy.server.usermanager.ds.DsClass> getAllDerivedClasses(int p_iClass) Get a list of classes that are derived from the given class (contains the given class).- Parameters:
- p_iClass- the type of the class. If no class will be found for that id an- DsRuntimeExceptionwill be thrown.
- Returns:
- a list of derived classes, contains the src class.
 
- 
getAllDerivedClassespublic static List<de.uplanet.lucy.server.usermanager.ds.DsClass> getAllDerivedClasses(String p_strClassName) gets a list of classes that are derived from the class (contains the given class)- Parameters:
- p_strClassName- the type of the class. If no class will be found for that name an- IllegalArgumentExceptionwill be thrown.
- Returns:
- a list of derived classes, contains the src class.
 
- 
getAllDerivedClassespublic static List<de.uplanet.lucy.server.usermanager.ds.DsClass> getAllDerivedClasses(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) gets a list of classes that are derived from the class (contains the given class)- Parameters:
- p_class- the ds class.
- Returns:
- a list of derived classes, contains the src class.
 
- 
getAttributeNameForGuid- Parameters:
- p_strGuid- guid of the attribute (DSATTRIBUTE.STRGUID column)
- Returns:
- name of the attribute given by the guid, or nullif not found
 
- 
getAttributeGuidForName- Parameters:
- p_strName- name of the attribute (DSATTRIBUTE.STRNAME column)
- Returns:
- name of the attribute given by the guid, or nullif not found
 
- 
isDerivedFromReturns true, when p_checkType is derived from the p_iSrcType.- Parameters:
- p_strSrcTypeName- if null true is returned, if not exists a- DsRuntimeExceptionis thrown
- p_strDestTypeName- if null or not exists then false is returned
- Returns:
- true if p_strDstTypeName is derived type o p_strSrcTypeName
 
- 
isDerivedFrompublic static boolean isDerivedFrom(de.uplanet.lucy.server.usermanager.ds.DsClass p_srcClass, de.uplanet.lucy.server.usermanager.ds.DsClass p_dstClass) Returns true, when p_checkType is derived from the p_iSrcType.- Parameters:
- p_srcClass- if null always true is returned
- p_dstClass- if null always falseis returned
- Returns:
- true
 
- 
isDerivedFromSetpublic static boolean isDerivedFromSet(int p_iClassId) Return true if p_class is derived from a set.- Parameters:
- p_iClassId- The class id
- Returns:
- true the class is derived from a set
 
- 
isDerivedFromSetReturn true if p_strClass is derived from a set.- Parameters:
- p_strClass- The class type name
- Returns:
- true the p_strClass is derived from a set.
 
- 
isDerivedFromSetpublic static boolean isDerivedFromSet(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) true if p_class is derived from a set- Parameters:
- p_class- The class object
- Returns:
- true if p_class is derived from a set.
 
- 
isDerivedFromContainerpublic static boolean isDerivedFromContainer(int p_iClassId) return true if p_iClass is derived from a container- Parameters:
- p_iClassId- The class id
- Returns:
- trueif derived from the container class
 
- 
isDerivedFromContainerreturn true if p_strClass is derived from a container- Parameters:
- p_strClass- The class type name
- Returns:
- trueif derived from the container class
 
- 
isDerivedFromContainerpublic static boolean isDerivedFromContainer(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) return true if p_class is derived from a container- Parameters:
- p_class- The class object
- Returns:
- trueif derived from the container class
 
- 
isDerivedFromUserpublic static boolean isDerivedFromUser(int p_iClassId) Check if the given class is derived from the user class.- Parameters:
- p_iClassId- The integer class identifier.
- Returns:
- trueif the given class is derived from the user class, or- falseotherwise.
 
- 
isDerivedFromUserCheck if the given class is derived from the user class.- Parameters:
- p_strClass- The class identifier.
- Returns:
- trueif the given class is derived from the user class, or- falseotherwise.
 
- 
isDerivedFromUserpublic static boolean isDerivedFromUser(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) Check if the given class is derived from the user class.- Parameters:
- p_class- The class object.
- Returns:
- trueif the given class is derived from the user class, or- falseotherwise.
 
- 
isNoContainerpublic static boolean isNoContainer(int p_iClassID) true if p_class is not derived from a container or a set- Parameters:
- p_iClassID- The class type id
- Returns:
- true if not derived from a container.
 
- 
isNoContainertrue if p_strClass is not derived from a container or a set- Parameters:
- p_strClass- The class type name
- Returns:
- trueif not derived from a container
 
- 
isNoContainerpublic static boolean isNoContainer(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) true if p_class is not derived from a container- Parameters:
- p_class- The class object
- Returns:
- ture if not derived from a container
 
- 
isNoSetpublic static boolean isNoSet(int p_iClassID) true if p_class is not derived from a set- Parameters:
- p_iClassID- The class type id
- Returns:
- trueif not derived for a set
 
- 
isNoSettrue if p_strClass is not derived from a set- Parameters:
- p_strClass- The class type name
- Returns:
- trueif class not derived from a set
 
- 
isNoSetpublic static boolean isNoSet(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) true if p_class is not derived from a set- Parameters:
- p_class- The class object
- Returns:
- trueif not derived from a set
 
- 
isNoContainerOrSetpublic static boolean isNoContainerOrSet(int p_iClassID) true if p_iClassID is not derived from a container or a set- Parameters:
- p_iClassID- The class type id
- Returns:
- trueif not derived form a container or set
 
- 
isNoContainerOrSettrue if p_strClass is not derived from a container or a set- Parameters:
- p_strClass- The class type name
- Returns:
- trueif not derived from a container or set
 
- 
isNoContainerOrSetpublic static boolean isNoContainerOrSet(de.uplanet.lucy.server.usermanager.ds.DsClass p_class) true if p_class is not derived from a container or a set- Parameters:
- p_class- The class object
- Returns:
- true if not derived from a container or set
 
- 
isArrayAttributechecks if the given guid is an array attribute- Parameters:
- p_strGuid- unique identifier
- Returns:
- trueif the attribute of the guid is an array attribute otherwise- false
 
- 
mapClassKeyToClassId- Parameters:
- p_strKey- The class type name (must be valid otherwise an DsRuntime exception will be thrown).
- Returns:
- The class type id.
 
- 
mapClassIdToClassKey- Parameters:
- p_iID- The class type id (must be valid otherwise an DsRuntime exception will be thrown).
- Returns:
- The class type name.
 
- 
isTenantAttributeDefinedpublic static boolean isTenantAttributeDefined()Is a attribute defined as tenant ID in this schema?- Returns:
- trueif a attribute is defined as tenant ID in this schema.
 
 
-