/** * Create an instance of {@link JaxbSecondaryTable } * */ public JaxbSecondaryTable createJaxbSecondaryTable() { return new JaxbSecondaryTable(); }
@Override public String getCatalog() { return table.getCatalog(); }
@Override public String getSchema() { return table.getSchema(); }
protected AnnotationInstance parserSecondaryTable(JaxbSecondaryTable secondaryTable, AnnotationTarget target) { if ( secondaryTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.SecondaryTableSchemaAware( secondaryTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", secondaryTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", secondaryTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", secondaryTable.getSchema(), annotationValueList ); nestedPrimaryKeyJoinColumnList( "pkJoinColumns", secondaryTable.getPrimaryKeyJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", secondaryTable.getUniqueConstraint(), annotationValueList ); return create( SECONDARY_TABLE, target, annotationValueList ); }
@Override public void setCatalog(String catalog) { table.setCatalog( catalog ); } }
@Override public void setSchema(String schema) { table.setSchema( schema ); }
protected AnnotationInstance parserSecondaryTable(JaxbSecondaryTable secondaryTable, AnnotationTarget target) { if ( secondaryTable == null ) { return null; } DefaultConfigurationHelper.INSTANCE.applyDefaults( new SchemaAware.SecondaryTableSchemaAware( secondaryTable ), getDefaults() ); List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", secondaryTable.getName(), annotationValueList ); MockHelper.stringValue( "catalog", secondaryTable.getCatalog(), annotationValueList ); MockHelper.stringValue( "schema", secondaryTable.getSchema(), annotationValueList ); nestedPrimaryKeyJoinColumnList( "pkJoinColumns", secondaryTable.getPrimaryKeyJoinColumn(), annotationValueList ); nestedUniqueConstraintList( "uniqueConstraints", secondaryTable.getUniqueConstraint(), annotationValueList ); return create( SECONDARY_TABLE, target, annotationValueList ); }
@Override public void setCatalog(String catalog) { table.setCatalog( catalog ); } }
@Override public void setSchema(String schema) { table.setSchema( schema ); }
/** * Create an instance of {@link JaxbSecondaryTable } * */ public JaxbSecondaryTable createJaxbSecondaryTable() { return new JaxbSecondaryTable(); }
@Override public String getSchema() { return table.getSchema(); }
@Override public String getCatalog() { return table.getCatalog(); }