Package adalid.core
Class Key
java.lang.Object
adalid.core.AbstractArtifact
adalid.core.Key
- Author:
- Jorge Campins
-
Field Summary
Fields inherited from class adalid.core.AbstractArtifact
_de_, _of_, BR, ENGLISH, FWGTS, FWLTS, HT, PORTUGUESE, SPANISH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondubiousProperties(PersistentEntity entity) dubiousPropertyNames(PersistentEntity entity) getKeyFeatures(String prefix, String suffix) invalidProperties(PersistentEntity entity) invalidPropertyNames(PersistentEntity entity) booleanbooleanbooleanisUnique()booleanbooleanisValidKeyFor(PersistentEntity entity) voidnewKeyField(Property property) El método newKeyField se utiliza para agregar propiedades a la clave.voidnewKeyField(Property... property) El método newKeyField se utiliza para agregar propiedades a la clave.voidnewKeyField(Property property, SortOption sortOption) El método newKeyField se utiliza para agregar propiedades a la clave.voidsetNullsNotDistinct(boolean nullsNotDistinct) El método setNullsNotDistinct se utiliza para definir la forma en la que se deben manejar los valores nulos en restricciones e índices únicos.voidsetUnique(boolean unique) El método setUnique se utiliza para establecer la unicidad de la clave.Methods inherited from class adalid.core.AbstractArtifact
a, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttributes, annotate, b, b, bigDecimal, bigDecimal, bigDecimal, bigDecimal, bigDecimal, bigInteger, bigInteger, bigInteger, bigInteger, bigInteger, checkName, checkScope, classToString, clearAttributes, coalesce, copyBootstrappingAttributes, copyLocalizedStrings, defaultLocale, depth, fa, fieldsToString, finalise, finish, getAlias, getAttribute, getAttribute, getAttributes, getAttributesArray, getAttributesArray, getAttributesKeySetByRegex, getBooleanAttribute, getBooleanAttribute, getClassPath, getCrypticName, getDeclaringArtifact, getDeclaringEntity, getDeclaringEntityRoot, getDeclaringField, getDeclaringFieldEntityRoot, getDeclaringFieldIndex, getDeclaringFieldNamedClassSimpleName, getDeclaringFieldPersistentEntityRoot, getDeclaringFieldPersistentEntityTableRoot, getDeclaringOperation, getDeclaringPersistentEntity, getDeclaringPersistentEntityRoot, getDefaultCollectionLabel, getDefaultCollectionShortLabel, getDefaultColumnHeader, getDefaultDescription, getDefaultLabel, getDefaultLocale, getDefaultShortDescription, getDefaultShortLabel, getDefaultSymbol, getDefaultTooltip, getDefaultWrapperClass, getFullName, getInlineHelpType, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getKeyValuePairAttribute, getKeyValuePairAttribute, getKeyValuePairAttribute, getKeyValuePairAttribute, getLocalizedCollectionLabel, getLocalizedCollectionShortLabel, getLocalizedColumnHeader, getLocalizedDescription, getLocalizedLabel, getLocalizedShortDescription, getLocalizedShortLabel, getLocalizedSymbol, getLocalizedTooltip, getName, getPartialName, getPartialSqlName, getPathList, getPathString, getSqlName, getStringAttribute, getStringAttribute, getStringAttribute, getStringAttribute, getStringKeyValuePairAttribute, getStringKeyValuePairAttribute, getTrace, getValidFieldAnnotations, getValidTypeAnnotations, getValueString, getValueString, getWrapper, greaterThanZero, h1, h2, h3, h4, h5, h6, hashCodeHexString, i, i, ic, ic, isAnnotated, isClassInPath, isDeclared, isExpression, isFinalised, isFinished, isFontAwesomeClass, isInherited, isInheritedFromAbstract, isInheritedFromConcrete, isLocalizedSymbolDefined, isNotDeclared, isNotInherited, isNotInheritedFromAbstract, isNotInheritedFromConcrete, isOperation, isUnicodeSymbolClass, isValidEmbeddedDocument, isValidFieldAnnotation, isValidHelpFileName, isValidHelpFileType, isValidJavaClassName, isValidSnippetFileName, isValidTypeAnnotation, localeReadingKey, localeWritingKey, m, m, mapsToString, put, round, s, s, setAlias, setDefaultCollectionLabel, setDefaultCollectionShortLabel, setDefaultColumnHeader, setDefaultColumnHeader, setDefaultDescription, setDefaultLabel, setDefaultShortDescription, setDefaultShortLabel, setDefaultShortLabel, setDefaultSymbol, setDefaultTooltip, setInlineHelpType, setLocalizedCollectionLabel, setLocalizedCollectionShortLabel, setLocalizedColumnHeader, setLocalizedColumnHeader, setLocalizedDescription, setLocalizedLabel, setLocalizedShortDescription, setLocalizedShortLabel, setLocalizedShortLabel, setLocalizedSymbol, setLocalizedTooltip, setSqlName, setStaticAttributes, settler, setTrace, specified, specified, specified, specified, specified, specified, specified, specified, toString, toString, toString, toString, toString, toString, u, u, ul, verifyExpression, verifyExpression, verifyExpression, verifyExpression, verifyExpression, verifyExpression, verifyNames, xs
-
Constructor Details
-
Key
public Key()
-
-
Method Details
-
getKeyFeatures
- Specified by:
getKeyFeaturesin interfaceArtifact- Overrides:
getKeyFeaturesin classAbstractArtifact- Parameters:
prefix- prefijosuffix- sufijo- Returns:
- the key features
-
getKeyFieldsList
- Returns:
- the key fields
-
isUnique
public boolean isUnique()- Returns:
- the unique indicator
-
setUnique
public void setUnique(boolean unique) El método setUnique se utiliza para establecer la unicidad de la clave. Las claves únicas no permiten valores duplicados en las propiedades que las integran.- Parameters:
unique- true, si la clave es única; de lo contrario false
-
isNullsNotDistinct
public boolean isNullsNotDistinct() -
setNullsNotDistinct
public void setNullsNotDistinct(boolean nullsNotDistinct) El método setNullsNotDistinct se utiliza para definir la forma en la que se deben manejar los valores nulos en restricciones e índices únicos. Si el manejador de base de datos de su aplicación es PostgreSQL, de manera predeterminada los valores nulos en una columna única no se consideran iguales, lo que permite múltiples valores nulos en la columna. A partir de la versión 15 de PostgreSQL, setNullsNotDistinct(true) permite modificar esto, haciendo que el índice trate los nulos como iguales. Un índice único de varias columnas solo rechazará los casos en los que todas las columnas indexadas sean iguales en varias filas.- Parameters:
nullsNotDistinct- true, si los valores nulos se deben tratar como iguales; de lo contrario false
-
newKeyField
El método newKeyField se utiliza para agregar propiedades a la clave. Las claves pueden estar integradas por una o más propiedades, y para cada propiedad se puede establecer el orden en el índice correspondiente. La posición relativa de cada propiedad en el índice está determinado por la secuencia en la que se agregan a la clave.- Parameters:
property- propiedad de la entidad; el orden en el índice será ascendente.
-
newKeyField
El método newKeyField se utiliza para agregar propiedades a la clave. Las claves pueden estar integradas por una o más propiedades, y para cada propiedad se puede establecer el orden en el índice correspondiente. La posición relativa de cada propiedad en el índice está determinado por la secuencia en la que se agregan a la clave.- Parameters:
property- propiedad de la entidad.sortOption- especifica el orden de la propiedad en el índice. Su valor es uno de los elementos de la enumeración SortOption. Seleccione ASC o DESC para establecer el orden como ascendente o descendente, respectivamente.
-
newKeyField
El método newKeyField se utiliza para agregar propiedades a la clave. Las claves pueden estar integradas por una o más propiedades, y para cada propiedad se puede establecer el orden en el índice correspondiente. La posición relativa de cada propiedad en el índice está determinado por la secuencia en la que se agregan a la clave.- Parameters:
property- una o más propiedades de la entidad; el orden en el índice será ascendente.
-
isValidKeyFor
-
invalidPropertyNames
-
invalidProperties
-
dubiousPropertyNames
-
dubiousProperties
-
isUniqueKeyWithNullProperties
public boolean isUniqueKeyWithNullProperties() -
isSingleProperty
public boolean isSingleProperty() -
getTheProperty
-