[#2696] Provide default implementation for CustomQueryPart.bind() (for

all Custom QueryParts)
This commit is contained in:
Lukas Eder 2013-08-16 13:03:13 +02:00
parent 36d017a1b4
commit 7e49dc6c26
3 changed files with 21 additions and 18 deletions

View File

@ -80,17 +80,18 @@ public abstract class CustomCondition extends AbstractCondition {
@Override
public abstract void toSQL(RenderContext context);
// -------------------------------------------------------------------------
// Implementation optional
// -------------------------------------------------------------------------
/**
* Subclasses must implement this method
* Subclasses may implement this method
* <hr/>
* {@inheritDoc}
*/
@Override
public abstract void bind(BindContext context) throws DataAccessException;
// -------------------------------------------------------------------------
// Implementation optional
// -------------------------------------------------------------------------
public void bind(BindContext context) throws DataAccessException {
}
/**
* Subclasses may implement this method

View File

@ -81,17 +81,18 @@ public abstract class CustomField<T> extends AbstractField<T> {
@Override
public abstract void toSQL(RenderContext context);
// -------------------------------------------------------------------------
// Implementation optional
// -------------------------------------------------------------------------
/**
* Subclasses must implement this method
* Subclasses may implement this method
* <hr/>
* {@inheritDoc}
*/
@Override
public abstract void bind(BindContext context) throws DataAccessException;
// -------------------------------------------------------------------------
// Implementation optional
// -------------------------------------------------------------------------
public void bind(BindContext context) throws DataAccessException {
}
/**
* Subclasses may implement this method

View File

@ -91,17 +91,18 @@ public abstract class CustomQueryPart extends AbstractQueryPart {
@Override
public abstract void toSQL(RenderContext context);
// -------------------------------------------------------------------------
// Implementation optional
// -------------------------------------------------------------------------
/**
* Subclasses must implement this method
* Subclasses may implement this method
* <hr/>
* {@inheritDoc}
*/
@Override
public abstract void bind(BindContext context) throws DataAccessException;
// -------------------------------------------------------------------------
// Implementation optional
// -------------------------------------------------------------------------
public void bind(BindContext context) throws DataAccessException {
}
/**
* Subclasses may implement this method