01: //$Id: LiteralType.java 7825 2005-08-10 20:23:55Z oneovthafew $
02: package org.hibernate.type;
03:
04: import org.hibernate.dialect.Dialect;
05:
06: /**
07: * A type that may appear as an SQL literal
08: * @author Gavin King
09: */
10: public interface LiteralType {
11: /**
12: * String representation of the value, suitable for embedding in
13: * an SQL statement.
14: * @param value
15: * @param dialect
16: * @return String the value, as it appears in a SQL query
17: * @throws Exception
18: */
19: public String objectToSQLString(Object value, Dialect dialect)
20: throws Exception;
21:
22: }
|