Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.graph.query
Class QueryBuilder.CastAs<ReturnType>

    java.lang.Object
      org.modeshape.graph.query.QueryBuilder.CastAs<ReturnType>

Direct Known Subclasses:
  QueryBuilder.CastAsLowerBoundary, QueryBuilder.CastAsRightHandSide, QueryBuilder.CastAsUpperBoundary

Enclosing class:
  QueryBuilder

    public abstract class QueryBuilder.CastAs<ReturnType>

extends Object

Field Summary
`protected Object` | `value`

Constructor Summary
`protected` | `QueryBuilder.CastAs(Object value)`

Method Summary
`abstract ReturnType` | `as(String type)` Define the right-hand side literal value cast as the specified type.
`ReturnType` | `asBoolean()` Define the right-hand side literal value cast as a `PropertyType.BOOLEAN`.
`ReturnType` | `asDate()` Define the right-hand side literal value cast as a `PropertyType.DATE`.
`ReturnType` | `asDouble()` Define the right-hand side literal value cast as a `PropertyType.DOUBLE`.
`ReturnType` | `asLong()` Define the right-hand side literal value cast as a `PropertyType.LONG`.
`ReturnType` | `asPath()` Define the right-hand side literal value cast as a `PropertyType.PATH`.
`ReturnType` | `asString()` Define the right-hand side literal value cast as a `PropertyType.STRING`.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### value

    protected final Object value

Constructor Detail

### QueryBuilder.CastAs

    protected QueryBuilder.CastAs(Object value)

Method Detail

### as

    public abstract ReturnType as(String type)

  Define the right-hand side literal value cast as the specified type.

  Parameters:
    `type` - the property type; may not be null
  Returns:
    the constraint builder; never null

### asString

    public ReturnType asString()

  Define the right-hand side literal value cast as a `PropertyType.STRING`.

  Returns:
    the constraint builder; never null

### asBoolean

    public ReturnType asBoolean()

  Define the right-hand side literal value cast as a `PropertyType.BOOLEAN`.

  Returns:
    the constraint builder; never null

### asLong

    public ReturnType asLong()

  Define the right-hand side literal value cast as a `PropertyType.LONG`.

  Returns:
    the constraint builder; never null

### asDouble

    public ReturnType asDouble()

  Define the right-hand side literal value cast as a `PropertyType.DOUBLE`.

  Returns:
    the constraint builder; never null

### asDate

    public ReturnType asDate()

  Define the right-hand side literal value cast as a `PropertyType.DATE`.

  Returns:
    the constraint builder; never null

### asPath

    public ReturnType asPath()

  Define the right-hand side literal value cast as a `PropertyType.PATH`.

  Returns:
    the constraint builder; never null

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.