/glassfish-3.1.2/persistence/cmp/model/src/main/java/com/sun/jdo/api/persistence/model/mapping/ |
H A D | MappingRelationshipElement.java | 74 //=================== column handling for join tables ==================== 76 /** Returns the list of associated column names to which this 83 /** Adds a column to the list of columns mapped by this mapping field. 85 * tables. This method is used to map between the local column and the 88 * @param column foreign column element to be added to the mapping 93 public void addLocalColumn (ColumnPairElement column) throws ModelException; argument 95 /** Adds a column to the list of associated columns mapped by this mapping 97 * join tables. This method is used to map between the join table column 98 * and the foreign table column, whil 105 addAssociatedColumn(ColumnPairElement column) argument [all...] |
H A D | MappingFieldElement.java | 134 //======================= column handling =========================== 136 /** Returns the list of column names to which this mapping field is 142 /** Adds a column to the list of columns mapped by this mapping field. 143 * @param column column element to be added to the mapping 146 public void addColumn (DBMemberElement column) throws ModelException; argument 148 /** Removes a column from the list of columns mapped by this mapping field. 149 * @param columnName the relative name of the column to be removed from
|
H A D | MappingTableElement.java | 67 * "fake foreign key" objects and designate the column pairs used to join 108 /** Returns the list of column names in the primary key for this 115 /** Adds a column to the primary key of columns in this mapping table. 119 * @param column column element to be added 122 public void addKeyColumn (ColumnElement column) throws ModelException; argument 124 /** Removes a column from the primary key of columns in this mapping table. 128 * @param columnName the relative name of the column to be removed
|
/glassfish-3.1.2/persistence/cmp/model/src/main/java/com/sun/jdo/api/persistence/model/mapping/impl/ |
H A D | MappingRelationshipElementImpl.java | 71 private ArrayList _associatedColumns; // of column pair names 111 //=================== column handling for join tables ==================== 113 /** Returns the list of associated column names to which this 126 /** Adds a column to the list of columns mapped by this mapping field. 128 * tables. This method is used to map between the local column and the 131 * @param column column pair element to be added to the mapping 136 public void addLocalColumn (ColumnPairElement column) argument 141 super.addColumn(column); 144 /** Adds a column t 154 addAssociatedColumn(ColumnPairElement column) argument 201 addColumn(DBMemberElement column) argument [all...] |
H A D | MappingTableElementImpl.java | 70 private ArrayList _key; // array of column names 170 /** Returns the list of column names in the primary key for this 183 /** Adds a column to the primary key of columns in this mapping table. 187 * @param column column element to be added 190 public void addKeyColumn (ColumnElement column) throws ModelException argument 192 if (column != null) 195 column.getName().getFullName()); 198 addKeyColumnInternal(column); 211 /** Adds a column t 219 addKeyColumnInternal(ColumnElement column) argument [all...] |
H A D | MappingFieldElementImpl.java | 263 //========================== column handling ========================== 265 /** Returns the list of column names to which this mapping field is 277 /** Adds a column to the list of columns mapped by this mapping field. 278 * @param column column element to be added to the mapping 281 public void addColumn (DBMemberElement column) throws ModelException argument 283 if (column != null) 287 column.getName().getFullName()); 317 /** Removes a column from the list of columns mapped by this mapping field. 320 * @param columnName the relative name of the column t [all...] |
H A D | MappingReferenceKeyElementImpl.java | 71 private ArrayList _referencingKey; // array of column names 214 //======================= column handling =========================== 216 /** Returns the list of key column names in this referencing key. 229 /** Returns the list of relative column pair names in this referencing key. 230 * @return the names of the column pairs in this referencing key 246 * @param searchPairName the relative name of the column pair for 248 * @return the index of the column pair or -1 if not found 269 /** Adds a column to the list of key columns in this referencing key. 271 * that the column is not <code>null</code>. 272 * @param column colum 275 addKeyColumn(ColumnElement column) argument [all...] |
/glassfish-3.1.2/persistence/cmp/generator-database/src/main/java/com/sun/jdo/spi/persistence/generator/database/ |
H A D | DBElementFactory.java | 120 * Create column and add to the table. 121 * @param columnName Name of the column to create. 122 * @param declaringTbl The declaring table to which column gets added. 123 * @return ColumnElement that represents the newly-added column. 129 // Create column id 135 ColumnElement column = new ColumnElement(columnImpl, table); 136 column.setName(columnId); 137 column.setType(ji.getJdbcType()); 138 column.setNullable(ji.getNullable()); 139 column 156 createColumnPair(ColumnElement column, ColumnElement refColumn, TableElement declaringTbl) argument [all...] |
H A D | DDLGenerator.java | 350 // If we haven't added the last column, or we have but there's a 351 // constraint yet to be added, add a column separator. 484 * Returns a String which indicates how a column should be declared in 490 * properties of the given column. 491 * @param column Column to be declared in DDL. 494 * @return String containing DDL to create column in database. 496 private static String getColumnDef(ColumnElement column, argument 499 int jdbcType = column.getType(); 500 Integer scale = column.getScale(); 501 Integer precision = column [all...] |
H A D | DatabaseGenerator.java | 324 ColumnElement column = 329 fieldName, mappingClass, column); 332 column.setNullable(false); 333 pKey.addColumn(column); 334 pKey.getAssociatedIndex().addColumn(column); 336 column); 396 ColumnElement column) throws ModelException { 402 mappingField.addColumn(column); 403 if (column.isBlobType()) { 413 * Create and add mapping relationship with column pair 394 createAndAttachMappingField( String fieldName, MappingClassElement mappingClass, ColumnElement column) argument [all...] |
/glassfish-3.1.2/persistence/cmp/support-ejb/src/main/java/com/sun/jdo/spi/persistence/support/ejb/ejbqlc/ |
H A D | EJBQLAST.java | 60 * <li> column info 80 /** The column info */ 81 protected int column = 0; field in class:EJBQLAST 142 public void setColumn(int column) argument 144 this.column = column; 150 return column; 178 // line/column info 234 * the fields type, text, line, column, and typeInfo have the same values.
|
/glassfish-3.1.2/persistence/cmp/support-sqlstore/src/main/java/com/sun/jdo/spi/persistence/support/sqlstore/query/jqlc/ |
H A D | JQLAST.java | 62 * - column info 81 protected int column = 0; field in class:JQLAST 171 public void setColumn(int column) argument 173 this.column = column; 178 return column; 225 // line/column info
|
/glassfish-3.1.2/persistence/cmp/support-ejb/src/main/antlr/ |
H A D | EJBQL.g | 166 * This value is used to calculate the correct column in a line 183 int column = getColumn(); 184 int newColumn = (((column-1)/TABSIZE)+1)*TABSIZE+1; 189 public void reportError(int line, int column, String s) 191 ErrorMsg.error(line, column, s); 278 int column = 0; 281 column = ((RecognitionException)ex).getColumn(); 283 ErrorMsg.error(line, column, I18NHelper.getMessage(msgs, "EXC_SyntaxError")); //NOI18N 561 public void reportError(int line, int column, String s) 563 ErrorMsg.error(line, column, [all...] |
/glassfish-3.1.2/persistence/cmp/support-sqlstore/src/main/antlr/ |
H A D | JQL.g | 132 * This value is used to calculate the correct column in a line 150 int column = getColumn(); 151 int newColumn = (((column-1)/TABSIZE)+1)*TABSIZE+1; 158 public void reportError(int line, int column, String s) 160 errorMsg.error(line, column, s); 519 public void reportError(int line, int column, String s) 521 errorMsg.error(line, column, s); 608 int column = 0; 612 column = ((RecognitionException)ex).getColumn(); 614 errorMsg.error(line, column, I18NHelpe [all...] |
/glassfish-3.1.2/persistence/cmp/model/src/main/java/com/sun/jdo/api/persistence/model/util/ |
H A D | ModelValidator.java | 802 * one non-nullable column. Please note that the caller is 851 * exactly matches the list of column pair names. 853 * of column pairs; <code>null</code> otherwise. 871 /** Returns <code>true</code> if the specified list of column 881 // First check whether the list of fk column pairs has the 885 // Now check whether each fk column is included in the 1039 private boolean isMappedToBlob (ColumnElement column) 1041 return ((column != null) && 1042 SQLTypeUtil.isBlob(column.getType())); 1129 * <li> The version field must be mapped to exactly 1 column fro 2714 matchesTable(List tableNames, ColumnElement column) argument [all...] |
/glassfish-3.1.2/persistence/cmp/ejb-mapping/src/main/java/com/sun/jdo/api/persistence/mapping/ejb/ |
H A D | MappingGenerator.java | 238 // it is needed to hold the version column information. 339 * fake column name) for MappingFile.intoMappings() 431 * Update column in the SchemaElement with jdbc type and its length, 433 * @param column a ColumnElement to be updated 442 public static void updateColumn(ColumnElement column, int jdbcType, argument 446 column.setType(jdbcType); 447 column.setLength(length); 448 column.setScale(scale); 449 column.setPrecision(precision);
|
/glassfish-3.1.2/persistence/cmp/support-sqlstore/src/main/java/com/sun/jdo/spi/persistence/support/sqlstore/sql/generator/ |
H A D | Statement.java | 152 // Check whether this column has already been added. 183 // a default value indicting that the actual db column is null. 388 * Generates the column text for field <code>desc</code>. 389 * The column has to be associated to the corresponding query table 391 * For fields mapped to multiple columns choose one column to be included, 401 ColumnElement column = null; 405 column = (ColumnElement) iter.next(); 411 // from the query plan to find the table matching the column. 413 table = thePlan.findQueryTable(column.getDeclaringTable()); 415 table = findQueryTable(column [all...] |
/glassfish-3.1.2/persistence/cmp/support-sqlstore/src/main/java/com/sun/jdo/spi/persistence/support/sqlstore/model/ |
H A D | ClassDesc.java | 407 * Creates an instance of <code>LocalFieldDesc</code> for <code>column</code> 411 * @param column The input column. 414 private LocalFieldDesc createLocalHiddenField(ColumnElement column) { argument 416 columnDesc.add(column); 428 Object[] items = new Object[] {pcClass,lf.getName(),column.getName().getFullName()}; 472 // We need to go through each local column and extract the foreign column. 828 // Version field must be mapped to exactly one column. 960 LocalFieldDesc getLocalFieldDesc(ColumnElement column) { argument [all...] |