Class DtSketch
- java.lang.Object
-
- io.vertigo.studio.notebook.AbstractSketch
-
- io.vertigo.studio.notebook.domain.DtSketch
-
- All Implemented Interfaces:
Sketch
public final class DtSketch extends AbstractSketch
The DtSketch class defines the sketch of data.- Author:
- pchretien, mlaroche
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_DATA_SPACEstatic StringPREFIXstatic PatternREGEX_DATA_SPACEthe dataSpace must match this pattern.-
Fields inherited from interface io.vertigo.studio.notebook.Sketch
REGEX_SKETCH_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DtSketchBuilderbuilder(String name)Static method factory for DtSketchBuilderbooleancontains(String fieldName)StringgetClassCanonicalName()StringgetClassSimpleName()StringgetDataSpace()Optional<DtSketchField>getDisplayField()DtSketchFieldgetField(String fieldName)Retourne le champ correspondant SOUS CONDITION qu'il existe sinon assertion.List<DtSketchField>getFields()Optional<DtSketch>getFragment()Optional<DtSketchField>getHandleField()Optional<DtSketchField>getIdField()Optional<DtSketchField>getKeyField()StringgetPackageName()Optional<DtSketchField>getSortField()StudioStereotypegetStereotype()booleanisPersistent()Gestion de la persistance.-
Methods inherited from class io.vertigo.studio.notebook.AbstractSketch
getKey, getLocalName, toString
-
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
REGEX_DATA_SPACE
public static final Pattern REGEX_DATA_SPACE
the dataSpace must match this pattern.
-
DEFAULT_DATA_SPACE
public static final String DEFAULT_DATA_SPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static DtSketchBuilder builder(String name)
Static method factory for DtSketchBuilder- Parameters:
name- the name of the dtSketch- Returns:
- DtSketchBuilder
-
getStereotype
public StudioStereotype getStereotype()
- Returns:
- Stereotype du Dt
-
getClassCanonicalName
public String getClassCanonicalName()
- Returns:
- Nom canonique (i.e. avec le package) de la classe d'implémentation du DtObject
-
getClassSimpleName
public String getClassSimpleName()
- Returns:
- Simple Nom (i.e. sans le package) de la classe d'implémentation du DtObject
-
getPackageName
public String getPackageName()
- Returns:
- the name of the package
-
getField
public DtSketchField getField(String fieldName)
Retourne le champ correspondant SOUS CONDITION qu'il existe sinon assertion.- Parameters:
fieldName- Nom du champ- Returns:
- Champ correspondant
-
contains
public boolean contains(String fieldName)
- Parameters:
fieldName- FieldName- Returns:
- if this field exists in this DtSketch
-
getFields
public List<DtSketchField> getFields()
- Returns:
- Collection des champs.
-
getIdField
public Optional<DtSketchField> getIdField()
- Returns:
- Champ identifiant l'identifiant
-
isPersistent
public boolean isPersistent()
Gestion de la persistance.- Returns:
- Si la définition est persistée.
-
getDisplayField
public Optional<DtSketchField> getDisplayField()
- Returns:
- Champ représentant l'affichage
-
getSortField
public Optional<DtSketchField> getSortField()
- Returns:
- Champ représentant le tri
-
getHandleField
public Optional<DtSketchField> getHandleField()
- Returns:
- Champ représentant le handle
-
getKeyField
public Optional<DtSketchField> getKeyField()
- Returns:
- Champ représentant la clé
-
getDataSpace
public String getDataSpace()
- Returns:
- the dataSpace
-
-