| java.lang.Object org.netbeans.modules.sql.framework.model.impl.AbstractSQLObject org.netbeans.modules.sql.framework.model.impl.SQLLiteralImpl
All known Subclasses: org.netbeans.modules.sql.framework.model.impl.VisibleSQLLiteralImpl,
SQLLiteralImpl | public class SQLLiteralImpl extends AbstractSQLObject implements SQLLiteral(Code) | | Represents a string or number literal value.
author: Ritesh Adval, Sudhi Seshachala version: $Revision$ |
Constructor Summary | |
public | SQLLiteralImpl() | public | SQLLiteralImpl(SQLLiteral src) Constructs a new instance of SQLLiteral, copying the contents of the given
SQLLiteral. | public | SQLLiteralImpl(String name, String value, int jdbcType) Constructs a new instance of SQLLiteral with the given display name, value, and
JDBC type. |
VALID_TYPE_NAMES | final protected static List VALID_TYPE_NAMES(Code) | | Array of Strings representing available SQL datatypes
|
SQLLiteralImpl | public SQLLiteralImpl()(Code) | | Creates a new default instance of SQLLiteral
|
SQLLiteralImpl | public SQLLiteralImpl(SQLLiteral src)(Code) | | Constructs a new instance of SQLLiteral, copying the contents of the given
SQLLiteral.
Parameters: src - SQLLiteral whose contents are to be copied to this new instance |
SQLLiteralImpl | public SQLLiteralImpl(String name, String value, int jdbcType) throws BaseException(Code) | | Constructs a new instance of SQLLiteral with the given display name, value, and
JDBC type.
Parameters: name - display name of new instance Parameters: value - value of new instance Parameters: jdbcType - JDBC type of new instance throws: BaseException - if name is null or empty, or value is null. |
getJdbcType | public int getJdbcType()(Code) | | Gets JDBC type of this literal.
JDBC type |
getPrecision | public int getPrecision()(Code) | | |
getValidTypeNames | final public static List getValidTypeNames()(Code) | | Returns list of Strings representing valid SQL datatypes for an SQLLiteral object.
read-only List of valid SQL datatypes |
getValue | public String getValue()(Code) | | Gets value of this literal.
current value |
setJdbcType | public void setJdbcType(int jdbcType)(Code) | | Sets JDBC type of this literal.
Parameters: jdbcType - new JDBC type |
setValue | public void setValue(String val)(Code) | | Sets value of this literal to the given value.
Parameters: val - new value |
|
|