{"id":1496,"date":"2012-07-23T13:00:00","date_gmt":"2012-07-23T13:00:00","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/2012\/10\/read-only-viewobject-and-declarative-sql-mode.html"},"modified":"2012-10-22T05:55:14","modified_gmt":"2012-10-22T05:55:14","slug":"read-only-viewobject-and-declarative","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html","title":{"rendered":"Read-only ViewObject and Declarative SQL mode"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left\">\n<div style=\"text-align: justify\"><strong>Introduction<\/strong>                      <\/div>\n<div style=\"text-align: justify\"><strong><br \/>\n<\/strong><\/div>\n<div style=\"text-align: justify\">The declarative SQL mode is considered to be one of the most valuable advantages of the                      <strong>entity-based<\/strong> view objects. In this mode the VO&#8217;s SQL is generated at runtime depending on the attributes showed in UI. For example, if some page contains a table with only two columns EmployeeId and FirstName, then the query will be generated as &#8220;select  Employee_ID, First_Name from Employees&#8221;.  This feature can significantly improve the performance of ADF application. But what about                      <strong>read-only<\/strong> or SQL-based view objects? JDeveloper doesn&#8217;t allow you to choose the SQL mode for SQL-based VOs. ?nly &#8220;Expert&#8221; mode can be used with no chance to have the query generated on the fly. But everything is possible.                     <\/div>\n<p>In this post we have an example of some SQL-based view object VEmployees:                     <\/p>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><a href=\"http:\/\/2.bp.blogspot.com\/-pKOrtlx6Bog\/UAwxM5T9cWI\/AAAAAAAAAt4\/xDPzXq9CBCk\/s1600\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA+%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0+2012-07-21+%D0%B2+15.57.21.png\"><img decoding=\"async\" border=\"0\" height=\"171\" src=\"http:\/\/2.bp.blogspot.com\/-pKOrtlx6Bog\/UAwxM5T9cWI\/AAAAAAAAAt4\/xDPzXq9CBCk\/s320\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA+%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0+2012-07-21+%D0%B2+15.57.21.png\" width=\"320\" \/><\/a><\/div>\n<p>Let&#8217;s generate View Object Definition class:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><a href=\"http:\/\/3.bp.blogspot.com\/-9K8YQMiKlh8\/UAwxTPRkudI\/AAAAAAAAAuA\/Lx6Il7lujgs\/s1600\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA+%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0+2012-07-21+%D0%B2+16.00.41.png\"><img decoding=\"async\" border=\"0\" height=\"221\" src=\"http:\/\/3.bp.blogspot.com\/-9K8YQMiKlh8\/UAwxTPRkudI\/AAAAAAAAAuA\/Lx6Il7lujgs\/s320\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA+%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0+2012-07-21+%D0%B2+16.00.41.png\" width=\"320\" \/><\/a><\/div>\n<p>We&#8217;re going to override some methods:<\/p>\n<pre class=\"brush:java\">  @Override\r\n  public boolean isRuntimeSQLGeneration()\r\n  {\r\n     return true;\r\n  }\r\n\r\n  @Override\r\n  public boolean isFullSql()\r\n   {\r\n      return false;\r\n   }\r\n\r\n  @Override\r\n  \/\/In our case we know exactly the clause FROM\r\n  public String buildDefaultFrom(AttributeDef[] attrDefs,\r\n                                 SQLBuilder builder,\r\n                                 BaseViewCriteriaManagerImpl vcManager)\r\n  {\r\n     return \"Employees\";\r\n  }\r\n\r\n  @Override\r\n  \/\/Setting \"Selected in Query\" property for each attribute except PK\r\n  protected void createDef()\r\n   {\r\n     for (AttributeDef at : getAttributeDefs()) \r\n      if (!at.isPrimaryKey()) \r\n        ((AttributeDefImpl) at).setSelected(false);   \r\n   }\r\n<\/pre>\n<p>Actually, that&#8217;s it! Let&#8217;s test it.                     <\/p>\n<p>For the page showing the full set of attributes, we have the result:<\/p>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><a href=\"http:\/\/2.bp.blogspot.com\/-l8KzicMbbsI\/UAwxaawiDrI\/AAAAAAAAAuI\/G78jxcRFyME\/s1600\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA+%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0+2012-07-21+%D0%B2+16.20.50.png\"><img decoding=\"async\" border=\"0\" height=\"221\" src=\"http:\/\/2.bp.blogspot.com\/-l8KzicMbbsI\/UAwxaawiDrI\/AAAAAAAAAuI\/G78jxcRFyME\/s320\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA+%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0+2012-07-21+%D0%B2+16.20.50.png\" width=\"320\" \/><\/a><\/div>\n<p>And generated query (I use ODL analyzer):<\/p>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><a href=\"http:\/\/3.bp.blogspot.com\/-838X4qXd93Q\/UAwxhVBGxEI\/AAAAAAAAAuQ\/aMK3HK4vOXU\/s1600\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA+%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0+2012-07-21+%D0%B2+16.22.24.jpg\"><img decoding=\"async\" border=\"0\" height=\"244\" src=\"http:\/\/3.bp.blogspot.com\/-838X4qXd93Q\/UAwxhVBGxEI\/AAAAAAAAAuQ\/aMK3HK4vOXU\/s640\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA+%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0+2012-07-21+%D0%B2+16.22.24.jpg\" width=\"640\" \/><\/a><\/div>\n<p>For the page with only two attributes we have the following result:<\/p>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><\/div>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><a href=\"http:\/\/2.bp.blogspot.com\/-pB04AdqGARA\/UAwxvC-y0cI\/AAAAAAAAAuY\/kGnqaKeGiYw\/s1600\/LimitSetAttr.jspx.jpg\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/2.bp.blogspot.com\/-pB04AdqGARA\/UAwxvC-y0cI\/AAAAAAAAAuY\/kGnqaKeGiYw\/s1600\/LimitSetAttr.jspx.jpg\" \/><\/a><\/div>\n<p>And the query:<\/p>\n<div class=\"separator\" style=\"clear: both;text-align: center\"><a href=\"http:\/\/4.bp.blogspot.com\/-xkTAD0L5SyA\/UAwx8ssioWI\/AAAAAAAAAug\/SHWADj5ZeVA\/s1600\/Oracle+JDeveloper+11g+Release+2+-+ReadOnlyVOApp.jws+_+ViewController.jpr.jpg\"><img decoding=\"async\" border=\"0\" height=\"216\" src=\"http:\/\/4.bp.blogspot.com\/-xkTAD0L5SyA\/UAwx8ssioWI\/AAAAAAAAAug\/SHWADj5ZeVA\/s640\/Oracle+JDeveloper+11g+Release+2+-+ReadOnlyVOApp.jws+_+ViewController.jpr.jpg\" width=\"640\" \/><\/a><\/div>\n<p>The                      <a href=\"http:\/\/adf-practice.googlecode.com\/files\/ReadOnlyVOApp.zip\">sample application<\/a> for this post requires JDeveloper 11.1.2.1.0 and standard HR schema.    <\/p>\n<p><strong><i>Reference: <\/i><\/strong><a href=\"http:\/\/adfpractice-fedor.blogspot.gr\/2012\/07\/read-only-viewobject-and-declarative.html\">Read-only ViewObject and Declarative SQL mode <\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/p\/jcg.html\">JCG partner<\/a> Eugene Fedorenko  at the <a href=\"http:\/\/adfpractice-fedor.blogspot.gr\/\">ADF Practice<\/a> blog.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction The declarative SQL mode is considered to be one of the most valuable advantages of the entity-based view objects. In this mode the VO&#8217;s SQL is generated at runtime depending on the attributes showed in UI. For example, if some page contains a table with only two columns EmployeeId and FirstName, then the query &hellip;<\/p>\n","protected":false},"author":191,"featured_media":112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[344],"class_list":["post-1496","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-adf"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Read-only ViewObject and Declarative SQL mode - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Introduction The declarative SQL mode is considered to be one of the most valuable advantages of the entity-based view objects. In this mode the VO&#039;s SQL\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Read-only ViewObject and Declarative SQL mode - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Introduction The declarative SQL mode is considered to be one of the most valuable advantages of the entity-based view objects. In this mode the VO&#039;s SQL\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-23T13:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-10-22T05:55:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Eugene Fedorenko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eugene Fedorenko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html\"},\"author\":{\"name\":\"Eugene Fedorenko\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/9e61ee3d0b8fda5d1239f82f0f5e4e93\"},\"headline\":\"Read-only ViewObject and Declarative SQL mode\",\"datePublished\":\"2012-07-23T13:00:00+00:00\",\"dateModified\":\"2012-10-22T05:55:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html\"},\"wordCount\":225,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"keywords\":[\"ADF\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html\",\"name\":\"Read-only ViewObject and Declarative SQL mode - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"datePublished\":\"2012-07-23T13:00:00+00:00\",\"dateModified\":\"2012-10-22T05:55:14+00:00\",\"description\":\"Introduction The declarative SQL mode is considered to be one of the most valuable advantages of the entity-based view objects. In this mode the VO's SQL\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"java-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2012\\\/07\\\/read-only-viewobject-and-declarative.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Read-only ViewObject and Declarative SQL mode\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/9e61ee3d0b8fda5d1239f82f0f5e4e93\",\"name\":\"Eugene Fedorenko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/603abf38118b4dc4a30d186fd170b45a3f06c8cb83e2598e6de2b3519fff4e3f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/603abf38118b4dc4a30d186fd170b45a3f06c8cb83e2598e6de2b3519fff4e3f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/603abf38118b4dc4a30d186fd170b45a3f06c8cb83e2598e6de2b3519fff4e3f?s=96&d=mm&r=g\",\"caption\":\"Eugene Fedorenko\"},\"description\":\"I am a Senior Architect at Flexagon focusing on ADF and many other things.\",\"sameAs\":[\"http:\\\/\\\/adfpractice-fedor.blogspot.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/eugene-fedorenko\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Read-only ViewObject and Declarative SQL mode - Java Code Geeks","description":"Introduction The declarative SQL mode is considered to be one of the most valuable advantages of the entity-based view objects. In this mode the VO's SQL","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html","og_locale":"en_US","og_type":"article","og_title":"Read-only ViewObject and Declarative SQL mode - Java Code Geeks","og_description":"Introduction The declarative SQL mode is considered to be one of the most valuable advantages of the entity-based view objects. In this mode the VO's SQL","og_url":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2012-07-23T13:00:00+00:00","article_modified_time":"2012-10-22T05:55:14+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","type":"image\/jpeg"}],"author":"Eugene Fedorenko","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Eugene Fedorenko","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html"},"author":{"name":"Eugene Fedorenko","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/9e61ee3d0b8fda5d1239f82f0f5e4e93"},"headline":"Read-only ViewObject and Declarative SQL mode","datePublished":"2012-07-23T13:00:00+00:00","dateModified":"2012-10-22T05:55:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html"},"wordCount":225,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","keywords":["ADF"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html","url":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html","name":"Read-only ViewObject and Declarative SQL mode - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","datePublished":"2012-07-23T13:00:00+00:00","dateModified":"2012-10-22T05:55:14+00:00","description":"Introduction The declarative SQL mode is considered to be one of the most valuable advantages of the entity-based view objects. In this mode the VO's SQL","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","width":150,"height":150,"caption":"java-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2012\/07\/read-only-viewobject-and-declarative.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Read-only ViewObject and Declarative SQL mode"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/9e61ee3d0b8fda5d1239f82f0f5e4e93","name":"Eugene Fedorenko","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/603abf38118b4dc4a30d186fd170b45a3f06c8cb83e2598e6de2b3519fff4e3f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/603abf38118b4dc4a30d186fd170b45a3f06c8cb83e2598e6de2b3519fff4e3f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/603abf38118b4dc4a30d186fd170b45a3f06c8cb83e2598e6de2b3519fff4e3f?s=96&d=mm&r=g","caption":"Eugene Fedorenko"},"description":"I am a Senior Architect at Flexagon focusing on ADF and many other things.","sameAs":["http:\/\/adfpractice-fedor.blogspot.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/eugene-fedorenko"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/1496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/191"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=1496"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/1496\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=1496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=1496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=1496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}