column.html
来自「j2ee帮助文档软件设计/软件工程 文件格式」· HTML 代码 · 共 482 行 · 第 1/2 页
HTML
482 行
<A NAME="unique()"><!-- --></A><H3>unique</H3><PRE>public abstract boolean <B>unique</B></PRE><DL><DD>(Optional) Whether the property is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint is only a single field. This constraint applies in addition to any constraint entailed by primary key mapping and to constraints specified at the table level.<P><DD><DL></DL></DD><DD><DL></DL><DL><DT><B>Default:</B><DD>false</DD></DL></DL><HR><A NAME="nullable()"><!-- --></A><H3>nullable</H3><PRE>public abstract boolean <B>nullable</B></PRE><DL><DD>(Optional) Whether the database column is nullable.<P><DD><DL></DL></DD><DD><DL></DL><DL><DT><B>Default:</B><DD>true</DD></DL></DL><HR><A NAME="insertable()"><!-- --></A><H3>insertable</H3><PRE>public abstract boolean <B>insertable</B></PRE><DL><DD>(Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider.<P><DD><DL></DL></DD><DD><DL></DL><DL><DT><B>Default:</B><DD>true</DD></DL></DL><HR><A NAME="updatable()"><!-- --></A><H3>updatable</H3><PRE>public abstract boolean <B>updatable</B></PRE><DL><DD>(Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider.<P><DD><DL></DL></DD><DD><DL></DL><DL><DT><B>Default:</B><DD>true</DD></DL></DL><HR><A NAME="columnDefinition()"><!-- --></A><H3>columnDefinition</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>columnDefinition</B></PRE><DL><DD>(Optional) The SQL fragment that is used when generating the DDL for the column. <p> Defaults to the generated SQL to create a column of the inferred type.<P><DD><DL></DL></DD><DD><DL></DL><DL><DT><B>Default:</B><DD>""</DD></DL></DL><HR><A NAME="table()"><!-- --></A><H3>table</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>table</B></PRE><DL><DD>(Optional) The name of the table that contains the column. If absent the column is assumed to be in the primary table.<P><DD><DL></DL></DD><DD><DL></DL><DL><DT><B>Default:</B><DD>""</DD></DL></DL><HR><A NAME="length()"><!-- --></A><H3>length</H3><PRE>public abstract int <B>length</B></PRE><DL><DD>(Optional) The column length. (Applies only if a string-valued column is used.)<P><DD><DL></DL></DD><DD><DL></DL><DL><DT><B>Default:</B><DD>255</DD></DL></DL><HR><A NAME="precision()"><!-- --></A><H3>precision</H3><PRE>public abstract int <B>precision</B></PRE><DL><DD>(Optional) The precision for a decimal (exact numeric) column. (Applies only if a decimal column is used.) Value must be set by developer if used when generating the DDL for the column.<P><DD><DL></DL></DD><DD><DL></DL><DL><DT><B>Default:</B><DD>0</DD></DL></DL><HR><A NAME="scale()"><!-- --></A><H3>scale</H3><PRE>public abstract int <B>scale</B></PRE><DL><DD>(Optional) The scale for a decimal (exact numeric) column. (Applies only if a decimal column is used.)<P><DD><DL></DL></DD><DD><DL></DL><DL><DT><B>Default:</B><DD>0</DD></DL></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javax/persistence/CascadeType.html" title="enum in javax.persistence"><B>PREV CLASS</B></A> <A HREF="../../javax/persistence/ColumnResult.html" title="annotation in javax.persistence"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?javax/persistence/Column.html" target="_top"><B>FRAMES</B></A> <A HREF="Column.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: REQUIRED | <A HREF="#annotation_type_optional_element_summary">OPTIONAL</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#annotation_type_element_detail">ELEMENT</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../legal/license.html" target="_top">license terms.</a></font></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?