Class AbstractQValue
java.lang.Object
org.apache.jackrabbit.spi.commons.value.AbstractQValue
- All Implemented Interfaces:
Serializable,QValue
- Direct Known Subclasses:
DefaultQValue
AbstractQValue...- See Also:
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.spi.QValue
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscard()Frees temporarily allocated resources such as temporary file, buffer, etc.booleanDefault implementation of the equals method.This implementation creates a binary instance that usesQValue.getStream()and skipping on the given stream as its underlying mechanism to provide random access defined onBinary.booleanReturns abooleanrepresentation of this value.Returns aCalendarrepresentation of this value.Returns aBigDecimalrepresentation of this value.doubleReturns adoublerepresentation of this value.longReturns the length of the internal value or -1 if the implementation cannot determine the length at this time.
NOTE: forPropertyType.NAMEandPropertyType.PATHthe length of the internal value must not be used for indicating the length of a property such as retrieved by callingProperty.getLength()andProperty.getLengths().longgetLong()Returns alongrepresentation of this value.getName()Returns aNamerepresentation of this value.getPath()Returns aPathrepresentation of this value.Returns aStringrepresentation of thisQValueobject.intgetType()Returns thePropertyTypeof thisQValueobject.getURI()Returns anURIrepresentation of this value.inthashCode()Default calculation of the hashCode.toString()Returns the string representation of this internal value.
-
Method Details
-
getType
public int getType()Description copied from interface:QValueReturns thePropertyTypeof thisQValueobject. It may be either of the value property types defined by the JSR 283: -
getLength
Description copied from interface:QValueReturns the length of the internal value or -1 if the implementation cannot determine the length at this time.
NOTE: forPropertyType.NAMEandPropertyType.PATHthe length of the internal value must not be used for indicating the length of a property such as retrieved by callingProperty.getLength()andProperty.getLengths().- Specified by:
getLengthin interfaceQValue- Returns:
- length of this
QValueobject. - Throws:
RepositoryException- See Also:
-
getName
Description copied from interface:QValueReturns aNamerepresentation of this value.- Specified by:
getNamein interfaceQValue- Returns:
- A
Namerepresentation of this value. - Throws:
RepositoryException- if an error occurs.- See Also:
-
getCalendar
Description copied from interface:QValueReturns aCalendarrepresentation of this value.- Specified by:
getCalendarin interfaceQValue- Returns:
- A
Calendarrepresentation of this value. - Throws:
RepositoryException- if an error occurs.- See Also:
-
getDecimal
Description copied from interface:QValueReturns aBigDecimalrepresentation of this value.- Specified by:
getDecimalin interfaceQValue- Returns:
- A
BigDecimalrepresentation of this value. - Throws:
RepositoryException- if an error occurs.- See Also:
-
getURI
Description copied from interface:QValueReturns anURIrepresentation of this value.- Specified by:
getURIin interfaceQValue- Returns:
- A
URIrepresentation of this value. - Throws:
RepositoryException- if an error occurs.- See Also:
-
getDouble
Description copied from interface:QValueReturns adoublerepresentation of this value.- Specified by:
getDoublein interfaceQValue- Returns:
- A
doublerepresentation of this value. - Throws:
RepositoryException- if an error occurs.- See Also:
-
getLong
Description copied from interface:QValueReturns alongrepresentation of this value.- Specified by:
getLongin interfaceQValue- Returns:
- A
longrepresentation of this value. - Throws:
RepositoryException- if an error occurs.- See Also:
-
getBoolean
Description copied from interface:QValueReturns abooleanrepresentation of this value.- Specified by:
getBooleanin interfaceQValue- Returns:
- A
booleanrepresentation of this value. - Throws:
RepositoryException- See Also:
-
getPath
Description copied from interface:QValueReturns aPathrepresentation of this value.- Specified by:
getPathin interfaceQValue- Returns:
- A
Pathrepresentation of this value. - Throws:
RepositoryException- if an error occurs.- See Also:
-
getString
Description copied from interface:QValueReturns aStringrepresentation of thisQValueobject.- Specified by:
getStringin interfaceQValue- Returns:
- A
Stringrepresentation of thisQValueobject. - Throws:
RepositoryException- See Also:
-
getBinary
This implementation creates a binary instance that usesQValue.getStream()and skipping on the given stream as its underlying mechanism to provide random access defined onBinary.- Specified by:
getBinaryin interfaceQValue- Returns:
- A
Binaryrepresentation of this value. - Throws:
RepositoryException- See Also:
-
discard
public void discard()Description copied from interface:QValueFrees temporarily allocated resources such as temporary file, buffer, etc. -
toString
Returns the string representation of this internal value. -
equals
Default implementation of the equals method. Subclasses may optimize this e.g. by special handling for DATE properties. -
hashCode
public int hashCode()Default calculation of the hashCode. Subclasses may optimize this e.g. by special handling for DATE properties.
-