magoffin.matt.ma2.dao.hbm
Class BitwiseAndSQLFunction

java.lang.Object
  extended by org.hibernate.dialect.function.StandardSQLFunction
      extended by magoffin.matt.ma2.dao.hbm.BitwiseAndSQLFunction
All Implemented Interfaces:
org.hibernate.dialect.function.SQLFunction
Direct Known Subclasses:
BitwiseAndFunctionSQLFunction

public class BitwiseAndSQLFunction
extends org.hibernate.dialect.function.StandardSQLFunction

SQLFunction for bitwise and operation.

Adapted from http://forum.hibernate.org/viewtopic.php?t=942395&view=previous&sid=f13df7759a4a9abd374b406a35ffc3c2

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
matt.magoffin

Field Summary
static java.lang.String DEFAULT_NAME
          The default function name.
static org.hibernate.type.Type DEFAULT_TYPE
          The default typeValue.
 
Constructor Summary
BitwiseAndSQLFunction()
          Constructor using defaults.
BitwiseAndSQLFunction(java.lang.String name, org.hibernate.type.Type typeValue)
          Constructor.
 
Method Summary
 java.lang.String render(java.util.List args, org.hibernate.engine.SessionFactoryImplementor factory)
           
 
Methods inherited from class org.hibernate.dialect.function.StandardSQLFunction
getName, getReturnType, getType, hasArguments, hasParenthesesIfNoArguments, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final java.lang.String DEFAULT_NAME
The default function name.

See Also:
Constant Field Values

DEFAULT_TYPE

public static final org.hibernate.type.Type DEFAULT_TYPE
The default typeValue.

Constructor Detail

BitwiseAndSQLFunction

public BitwiseAndSQLFunction()
Constructor using defaults.


BitwiseAndSQLFunction

public BitwiseAndSQLFunction(java.lang.String name,
                             org.hibernate.type.Type typeValue)
Constructor.

Parameters:
name - the HQL field
typeValue - the HQL type
Method Detail

render

public java.lang.String render(java.util.List args,
                               org.hibernate.engine.SessionFactoryImplementor factory)
Specified by:
render in interface org.hibernate.dialect.function.SQLFunction
Overrides:
render in class org.hibernate.dialect.function.StandardSQLFunction