|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ClassDescriptor
ClassDescriptor describes one class, together with its attributes.
AttributeDescriptor| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sap.tc.mobile.cfs.meta.api.AbstractDescriptor |
|---|
AbstractDescriptor.Visitor |
| Method Summary | |
|---|---|
boolean |
canCreate()
Check for creation allowed. |
boolean |
canDelete()
Check for delete allowed. |
boolean |
canUpdate()
Check for update allowed. |
java.lang.String |
getAliasName()
Get alias class name (used in model and queries). |
AttributeDescriptor |
getAttribute(int id)
Get attribute descriptor by id. |
AttributeDescriptor |
getAttribute(java.lang.String name)
Get attribute descriptor for given model attribute name. |
int |
getAttributeCount()
Get total attribute count (including those of superclasses). |
int |
getAttributeIndex(AttributeDescriptor attribute)
Get index of the attribute within this class. |
AttributeDescriptor[] |
getAttributes()
Get all attribute descriptors in this class, including those of superclasses. |
AttributeDescriptor |
getAttributeTechnical(java.lang.String name)
Get attribute descriptor for given technical attribute name. |
AuthorizationDescriptor |
getAuthorization(java.lang.String aoName)
Get authorization descriptor for given AO. |
AuthorizationDescriptor[] |
getAuthorizations()
Get authorization descriptors for this class. |
boolean |
getMBOInstanceFlag()
Check upload flag (client to server). |
java.lang.Class |
getObjectClass()
Get object class this descriptor represents. |
java.lang.String |
getOwningMBO()
Get name of MBO owning this class. |
ModelDescriptor |
getOwningModel()
Get the model owning this class. |
AttributeDescriptor |
getPSyncKeyAttribute()
Get PSYNCKEY attribute of the MBO node (if it's an MBO child node). |
RelationDescriptor[] |
getRelations()
Get relations going from this class (where it is source). |
ClassDescriptor |
getSuperclass()
Get superclass of this class. |
java.lang.String |
getSyncBOSuffix()
get SyncBO Suffix |
AttributeDescriptor |
getSyncKeyAttribute()
Get SYNCKEY attribute of the MBO node (if it's an MBO node). |
java.lang.String |
getTechnicalName()
Get technical class name (used in persistency and sync). |
GUID |
getTypeGUID()
Get GUID of the MBO type represented by this root class (specific to mobile middleware). |
boolean |
hasAggregations()
Check for aggregations from this class. |
boolean |
hasReferences()
Check for object references from this class. |
boolean |
isDownload()
Check download flag (server to client). |
boolean |
isInstanceOf(ClassDescriptor cdesc)
Check for instance of given class. |
boolean |
isKeepInstance()
Check keep instance flag for upload-only MBOs. |
boolean |
isRoot()
Check whether this class is a root class. |
boolean |
isUpload()
Check upload flag (client to server). |
| Methods inherited from interface com.sap.tc.mobile.cfs.meta.api.StorageTypeDescriptor |
|---|
getStorageType |
| Methods inherited from interface com.sap.tc.mobile.cfs.meta.api.AbstractDescriptor |
|---|
addUserDescriptor, clearAllUserDescriptors, getUserDescriptor, removeUserDescriptor, visit |
| Method Detail |
|---|
ModelDescriptor getOwningModel()
ClassDescriptor getSuperclass()
GUID getTypeGUID()
java.lang.String getOwningMBO()
AttributeDescriptor getSyncKeyAttribute()
AttributeDescriptor getPSyncKeyAttribute()
java.lang.String getTechnicalName()
java.lang.String getAliasName()
java.lang.Class getObjectClass()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if Java class for this class cannot be found.boolean isRoot()
boolean getMBOInstanceFlag()
boolean isUpload()
boolean isDownload()
boolean isKeepInstance()
boolean hasAggregations()
boolean hasReferences()
boolean canCreate()
boolean canUpdate()
boolean canDelete()
AttributeDescriptor getAttributeTechnical(java.lang.String name)
name - attribute name (technical name).
AttributeDescriptor getAttribute(java.lang.String name)
name - attribute name (descriptive model name).
AttributeDescriptor getAttribute(int id)
throws java.lang.ArrayIndexOutOfBoundsException
id - attribute ID.
java.lang.ArrayIndexOutOfBoundsException - if the ID doesn't identify an attribute.AttributeDescriptor[] getAttributes()
int getAttributeCount()
int getAttributeIndex(AttributeDescriptor attribute)
throws java.lang.IllegalArgumentException
attribute - attribute to get index of.
java.lang.IllegalArgumentException - if the attribute is not in the class.RelationDescriptor[] getRelations()
AuthorizationDescriptor[] getAuthorizations()
AuthorizationDescriptor getAuthorization(java.lang.String aoName)
aoName - AO name.
boolean isInstanceOf(ClassDescriptor cdesc)
cdesc - (super)class descriptor.
java.lang.String getSyncBOSuffix()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||