Package com.im.ijcs.api.ddl.dto
Class AbstractFieldInfo<T extends AbstractFieldInfo>
- java.lang.Object
-
- com.im.ijcs.api.ddl.dto.AbstractFieldInfo<T>
-
- Type Parameters:
T
- type of the field info
- All Implemented Interfaces:
ImplTypeInfo
,ItemPersistentInfo
,OwnablePersistentInfo
,SchemaItemPersistentInfo
,XAttributesInfo
,java.io.Serializable
- Direct Known Subclasses:
FieldInfo
public abstract class AbstractFieldInfo<T extends AbstractFieldInfo> extends java.lang.Object implements SchemaItemPersistentInfo, OwnablePersistentInfo
This class is a base for all FieldInfo classes, which describe aDFField
instance and are used for storing fields in a database. The persistence is handled by JAXB.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractFieldInfo.Required
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
description
protected java.lang.String
id
protected java.lang.String
name
protected java.lang.String
owner
protected java.util.List<PropInfo>
props
protected AbstractFieldInfo.Required
required
protected int
sharing
protected java.lang.String
type
protected java.lang.String
xmlns
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFieldInfo()
AbstractFieldInfo(java.lang.String id, java.lang.String name, java.lang.String type, AbstractFieldInfo.Required required, java.lang.String description, java.util.List<PropInfo> props, java.lang.String owner, int sharing)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
getClone()
java.lang.String
getDescription()
java.lang.String
getGenericType()
java.lang.String
getId()
java.lang.String
getImplType()
java.lang.String
getName()
java.lang.String
getOwner()
AbstractFieldInfo.Required
getRequired()
int
getSharing()
java.util.List<PropInfo>
getXAttributes()
void
setOwner(java.lang.String owner)
void
setSharing(int sharing)
T
updateDescription(java.lang.String newDesc)
T
updateName(java.lang.String newName)
T
updateOwner(java.lang.String newOwner)
T
updateRequired(AbstractFieldInfo.Required required)
T
updateXAttributes(java.util.List<PropInfo> props)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.im.ijcs.api.ddl.dto.SchemaItemPersistentInfo
getAsXml
-
-
-
-
Field Detail
-
xmlns
protected java.lang.String xmlns
-
id
protected java.lang.String id
-
name
protected java.lang.String name
-
type
protected java.lang.String type
-
required
protected AbstractFieldInfo.Required required
-
description
protected java.lang.String description
-
props
protected java.util.List<PropInfo> props
-
owner
protected java.lang.String owner
-
sharing
protected int sharing
-
-
Constructor Detail
-
AbstractFieldInfo
protected AbstractFieldInfo()
-
AbstractFieldInfo
public AbstractFieldInfo(java.lang.String id, java.lang.String name, java.lang.String type, AbstractFieldInfo.Required required, java.lang.String description, java.util.List<PropInfo> props, java.lang.String owner, int sharing)
-
-
Method Detail
-
getGenericType
public java.lang.String getGenericType()
- Specified by:
getGenericType
in interfaceItemPersistentInfo
-
getId
public java.lang.String getId()
- Specified by:
getId
in interfaceItemPersistentInfo
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceItemPersistentInfo
-
getImplType
public java.lang.String getImplType()
- Specified by:
getImplType
in interfaceImplTypeInfo
-
getRequired
public AbstractFieldInfo.Required getRequired()
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceItemPersistentInfo
-
getXAttributes
public java.util.List<PropInfo> getXAttributes()
- Specified by:
getXAttributes
in interfaceXAttributesInfo
- Returns:
- all available xatributes
-
getOwner
public java.lang.String getOwner()
- Specified by:
getOwner
in interfaceOwnablePersistentInfo
- Returns:
- The username of the owner of the item
-
setOwner
public void setOwner(java.lang.String owner)
-
getSharing
public int getSharing()
- Specified by:
getSharing
in interfaceOwnablePersistentInfo
- Returns:
- The sharing status of the item
-
setSharing
public void setSharing(int sharing)
-
getClone
public abstract T getClone()
-
updateName
public final T updateName(java.lang.String newName)
-
updateRequired
public T updateRequired(AbstractFieldInfo.Required required)
-
updateDescription
public final T updateDescription(java.lang.String newDesc)
-
updateOwner
public final T updateOwner(java.lang.String newOwner)
-
-