Package wt.vc.views
Class View
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.vc.views._View
wt.vc.views.View
- All Implemented Interfaces:
Externalizable,Serializable,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,NetFactor,ObjectMappable,Persistable,DisplayIdentification
@GenAsPersistable(superClass=WTObject.class,versions=-433302533224513071L,properties={@GeneratedProperty(name="name",type=java.lang.String.class,supportedAPI=PUBLIC,javaDoc="The name of the View. Must be unique.",constraints=@PropertyConstraints(upperLimit=30,required=true),columnProperties=@ColumnProperties(unique=true)),@GeneratedProperty(name="sortId",type=int.class,accessors=@PropertyAccessors(setAccess=PACKAGE))},tableProperties=@TableProperties(tableName="WTView"))
public final class View
extends _View
The view represents a type of branching mechanism for versioned data.
Versions assigned to views are valid only in the context of the view
(or in its downstream views, provided there have been no versions assigned
to them). Once assigned to a View, the version becomes view-dependent;
and all future versions must also be assigned to views.
A version participating in a view can be "branched" into any downstream
(child) views, but can not be branched into any of its parent views.
Use the newView static factory method(s), not the View
constructor, to construct instances of this class. Instances must be
constructed using the static factory(s), in order to ensure proper initialization
of the instance.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from class wt.vc.views._View
EXTERNALIZATION_VERSION_UID, NAME, SORT_IDFields inherited from class wt.fc._WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMPFields inherited from interface wt.fc._Persistable
PERSIST_INFOFields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPEFields inherited from interface wt.fc.Persistable
IDENTITY, TYPE -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of this view.protected voidinitialize(String viewName) Supports initialization, following construction of an instance.static ViewFactory method for creating views.Methods inherited from class wt.vc.views._View
getClassInfo, getConceptualClassname, getName, getSortId, getType, readExternal, readExternal, readVersion, setName, super_readExternal_View, super_readVersion_View, super_writeExternal_View, writeExternal, writeExternalMethods inherited from class wt.fc.WTObject
checkAttributes, duplicate, getDisplayIdentifier, getDisplayIdentity, getDisplayType, initialize, toStringMethods inherited from class wt.fc._WTObject
equals, getCreateTimestamp, getModifyTimestamp, getPersistInfo, hashCode, readVersion, setPersistInfo
-
Method Details
-
newView
Factory method for creating views. To create views and view associations, use the command-line interface provided or the load utility:
Supported API: true- Parameters:
viewName-- Returns:
- View
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
viewName-- Throws:
WTException
-
getIdentity
Returns the name of this view.
Supported API: true- Specified by:
getIdentityin interfacePersistable- Overrides:
getIdentityin classWTObject- Returns:
- String
-