Klasse DsDbSchema
java.lang.Object
de.uplanet.lucy.server.usermanager.ds.DsDbSchema
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAllDerivedClasses(int p_iClass) Get a list of classes that are derived from the given class (contains the given class).getAllDerivedClasses(DsClass p_class) gets a list of classes that are derived from the class (contains the given class)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 DsClassgetDSClassDefinition(int p_iClassID) static DsClassgetDSClassDefinition(String p_strClass) static 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(DsClass p_srcClass, 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(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(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(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(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(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 booleantrue 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.
-
Methodendetails
-
refreshCache
reloads the cache.- Parameter:
p_conn- The database connection- Löst aus:
SQLException
-
getDSClassDefinition
- Parameter:
p_iClassID- The pk value of the DSClass Table (LID)- Gibt zurück:
- The class with the given id (could be
null)
-
getDSClassDefinition
- Parameter:
p_strClass- The unique class name- Gibt zurück:
- The dsclass object or
nullif not found.
-
getDSClassDefinitionByGuid
- Parameter:
p_strGuid- The class guid- Gibt zurück:
- The dsclass object or
nullif not found.
-
getDSClassDefinitions
- Gibt zurück:
- An unmodifiable map of class definitions.
-
isDerivedFrom
public static boolean isDerivedFrom(int p_iSuperClass, int p_iClass) Returnstrue, when the type is derived from the super type.- Parameter:
p_iSuperClass- if not exists a DsRuntimeException is thrownp_iClass- if not exists false is returned- Gibt zurück:
trueif p_iDstType is derived from p_iSrcType.
-
getAllDerivedClasses
Get a list of classes that are derived from the given class (contains the given class).- Parameter:
p_iClass- the type of the class. If no class will be found for that id anDsRuntimeExceptionwill be thrown.- Gibt zurück:
- a list of derived classes, contains the src class.
-
getAllDerivedClasses
gets a list of classes that are derived from the class (contains the given class)- Parameter:
p_strClassName- the type of the class. If no class will be found for that name anIllegalArgumentExceptionwill be thrown.- Gibt zurück:
- a list of derived classes, contains the src class.
-
getAllDerivedClasses
gets a list of classes that are derived from the class (contains the given class)- Parameter:
p_class- the ds class.- Gibt zurück:
- a list of derived classes, contains the src class.
-
getAttributeNameForGuid
- Parameter:
p_strGuid- guid of the attribute (DSATTRIBUTE.STRGUID column)- Gibt zurück:
- name of the attribute given by the guid, or
nullif not found
-
getAttributeGuidForName
- Parameter:
p_strName- name of the attribute (DSATTRIBUTE.STRNAME column)- Gibt zurück:
- name of the attribute given by the guid, or
nullif not found
-
isDerivedFrom
Returns true, when p_checkType is derived from the p_iSrcType.- Parameter:
p_strSrcTypeName- if null true is returned, if not exists aDsRuntimeExceptionis thrownp_strDestTypeName- if null or not exists then false is returned- Gibt zurück:
- true if p_strDstTypeName is derived type o p_strSrcTypeName
-
isDerivedFrom
Returns true, when p_checkType is derived from the p_iSrcType.- Parameter:
p_srcClass- if null always true is returnedp_dstClass- if null always falseis returned- Gibt zurück:
- true
-
isDerivedFromSet
public static boolean isDerivedFromSet(int p_iClassId) Return true if p_class is derived from a set.- Parameter:
p_iClassId- The class id- Gibt zurück:
- true the class is derived from a set
-
isDerivedFromSet
Return true if p_strClass is derived from a set.- Parameter:
p_strClass- The class type name- Gibt zurück:
- true the p_strClass is derived from a set.
-
isDerivedFromSet
true if p_class is derived from a set- Parameter:
p_class- The class object- Gibt zurück:
- true if p_class is derived from a set.
-
isDerivedFromContainer
public static boolean isDerivedFromContainer(int p_iClassId) return true if p_iClass is derived from a container- Parameter:
p_iClassId- The class id- Gibt zurück:
trueif derived from the container class
-
isDerivedFromContainer
return true if p_strClass is derived from a container- Parameter:
p_strClass- The class type name- Gibt zurück:
trueif derived from the container class
-
isDerivedFromContainer
return true if p_class is derived from a container- Parameter:
p_class- The class object- Gibt zurück:
trueif derived from the container class
-
isDerivedFromUser
public static boolean isDerivedFromUser(int p_iClassId) Check if the given class is derived from the user class.- Parameter:
p_iClassId- The integer class identifier.- Gibt zurück:
trueif the given class is derived from the user class, orfalseotherwise.
-
isDerivedFromUser
Check if the given class is derived from the user class.- Parameter:
p_strClass- The class identifier.- Gibt zurück:
trueif the given class is derived from the user class, orfalseotherwise.
-
isDerivedFromUser
Check if the given class is derived from the user class.- Parameter:
p_class- The class object.- Gibt zurück:
trueif the given class is derived from the user class, orfalseotherwise.
-
isNoContainer
public static boolean isNoContainer(int p_iClassID) true if p_class is not derived from a container or a set- Parameter:
p_iClassID- The class type id- Gibt zurück:
- true if not derived from a container.
-
isNoContainer
true if p_strClass is not derived from a container or a set- Parameter:
p_strClass- The class type name- Gibt zurück:
trueif not derived from a container
-
isNoContainer
true if p_class is not derived from a container- Parameter:
p_class- The class object- Gibt zurück:
- ture if not derived from a container
-
isNoSet
public static boolean isNoSet(int p_iClassID) true if p_class is not derived from a set- Parameter:
p_iClassID- The class type id- Gibt zurück:
trueif not derived for a set
-
isNoSet
true if p_strClass is not derived from a set- Parameter:
p_strClass- The class type name- Gibt zurück:
trueif class not derived from a set
-
isNoSet
true if p_class is not derived from a set- Parameter:
p_class- The class object- Gibt zurück:
trueif not derived from a set
-
isNoContainerOrSet
public static boolean isNoContainerOrSet(int p_iClassID) true if p_iClassID is not derived from a container or a set- Parameter:
p_iClassID- The class type id- Gibt zurück:
trueif not derived form a container or set
-
isNoContainerOrSet
true if p_strClass is not derived from a container or a set- Parameter:
p_strClass- The class type name- Gibt zurück:
trueif not derived from a container or set
-
isNoContainerOrSet
true if p_class is not derived from a container or a set- Parameter:
p_class- The class object- Gibt zurück:
- true if not derived from a container or set
-
isArrayAttribute
checks if the given guid is an array attribute- Parameter:
p_strGuid- unique identifier- Gibt zurück:
trueif the attribute of the guid is an array attribute otherwisefalse
-
mapClassKeyToClassId
- Parameter:
p_strKey- The class type name (must be valid otherwise an DsRuntime exception will be thrown).- Gibt zurück:
- The class type id.
-
mapClassIdToClassKey
- Parameter:
p_iID- The class type id (must be valid otherwise an DsRuntime exception will be thrown).- Gibt zurück:
- The class type name.
-
isTenantAttributeDefined
public static boolean isTenantAttributeDefined()Is a attribute defined as tenant ID in this schema?- Gibt zurück:
trueif a attribute is defined as tenant ID in this schema.
-