2013-02 Cloud migration for a Donation Management SystemYves Leblond
Salesforce.com and Cloud Computing, A world of opportunities. A personal and concrete experience feedback. Implementation of a Donation Management System for a Non Profit organisation in Luxembourg : Care asbl.
2012-12 Social Net Worth (Quattropole 2012)Yves Leblond
Social Net Worth ?
Présentation donnée lors de la conférence Quattropole "Comment le web social transforme-t-il notre société?"
http://www.quattropole.org/fr/manifestations/conf_rence_quattropole
http://www.quattropole.org/assets/2012_12/1354622576_programm_hochschulkonferenz_web.pdf
2013-02 Cloud migration for a Donation Management SystemYves Leblond
Salesforce.com and Cloud Computing, A world of opportunities. A personal and concrete experience feedback. Implementation of a Donation Management System for a Non Profit organisation in Luxembourg : Care asbl.
2012-12 Social Net Worth (Quattropole 2012)Yves Leblond
Social Net Worth ?
Présentation donnée lors de la conférence Quattropole "Comment le web social transforme-t-il notre société?"
http://www.quattropole.org/fr/manifestations/conf_rence_quattropole
http://www.quattropole.org/assets/2012_12/1354622576_programm_hochschulkonferenz_web.pdf
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open WideOCCIware
Hear hear dev & ops alike - ever got bitten by the fragmentation of the Cloud space at deployment time, By AWS vs Azure, Open Shift vs Heroku ? in a word, ever dreamt of configuring at once your Cloud application along with both its VMs and database ? Well, the extensible Open Cloud Computing Interface (OCCI) REST API (see http://occi-wg.org/) allows just that, by addressing the whole XaaS spectrum.
And now, OCCI is getting powerboosted by Eclipse Modeling and formal foundations. Enter Cloud Designer and other outputs of the OCCIware project (See http://www.occiware.org) : multiple visual representations, one per Cloud layer and technology. XaaS Cloud extension model validation, documentation & ops scripting generation. Simulation, decision-making comparison. Connectors that bring those models to life by getting their status from common Cloud services. Runtime middleware, deployed, monitored, adminstrated. And tackling the very interesting challenge of modeling a meta API in EMF's metamodel, while staying true to EMF, Eclipse tools and the OCCI standard.
Featuring Eclipse Sirius, Acceleo generators, EMF at runtime. Coming soon to a new Eclipse Foundation project near you, if so you'd like.
This talk includes a demonstration of the Docker connector and of how to use Cloud Designer to configure a simple Cloud application's deployment on the Roboconf PaaS system and OpenStack infrastructure.
Stackato presentation done at the Nordic Perl Workshop 2012 in Stockholm, Sweden
More information available at: https://logiclab.jira.com/wiki/display/OPEN/Stackato
Slides from my Feature Bits presentation at the 2010 Lean Software and Systems conference in Atlanta. See http://atlanta2010.leanssc.org/home/erik-sowa/ and http://www.leanssc.org/files/201004/videos/20100421_Sowa_EnabilingFlowWithinAndAcrossTeams/20100421_Sowa_EnabilingFlowWithinAndAcrossTeams.html
Course 3 : Types of data and opportunities by Nikolaos DeligiannisBetacowork
For more info about our Big Data courses, check out our website ➡️ https://www.betacowork.com/big-data/
---------
"Data is the new oil" - Many companies and professionals do not know how to use their data or are not aware of the added value they could gain from it.
It is in response to these problems that the project “Brussels: The Beating Heart of Big Data” was born.
This project, financed by the Region of Brussels Capital and organised by Betacowork, offers 3 training cycles of 10 courses on big data, at both beginner and advanced levels. These 3 cycles will be followed by a Hackathon weekend.
No prerequisites are required to start these courses. The aim of these courses is to familiarize participants with the principles of Big Data.
------
For more info about our Big Data courses, check out our website ➡️ https://www.betacowork.com/big-data/
Workshop on 10 March 2011, giving by Kurt Claeys (Microsoft), Mel Gerats and Olivier Mangelschots (Orbit One).
Topics:
Technical dive into Azure
Umbraco CMS and Azure
Azure Development Program
Hands-on workshop
Introduction to Microsoft Azure. Covers the change to a cloud development paradigm. Motivations for the change, Pricing structures, and an exercise in IT portfolio evaluation.
Azure Functions e Azure Logics Apps: i tuoi coltellini svizzeri per gestire i...Marco Parenzan
You have ore or more SQL Databases to manage. Sometimes you need to import, manipulate, export data, you need to work on schemas. You need to schedule some tasks, you need to wait some events before performing some over tasks. Or you need to send or manage notifications.
In all these situations, a little knowledge of programming languages, like C#, helps performing these tasks in a simpler and faster way. And you run code directly in the cloud.
So we'll introduce the little .NET knowledge required, how to write a Function App and functions and how to create data manipulation workflows.
Introduction and Overview of OpenStack for IaaSKeith Basil
These slides supported a presentation at the 2013 Red Hat Summit.
It covers:
✦ Introduction to OpenStack
✦ OpenStack Architecture
✦ Understanding the Elastic Cloud
✦ OpenStack in the Real World
innovations born in the cloud - cloud data services from IBM to prototype you...Wilfried Hoge
To bring your ideas to get insights from new data sources to live you must have the capabilities to prototype, fail fast if they don't work and bring to production easily if they are successful. See how IBM's cloud data services can help you to start testing your ideas with data.
In this session we will do a tour of the just released Isentris 4.0. We will see its enhanced visualization component, the new Isentris for Excel renderer, and how Pipeline Pilot can now be seamless called within Isentris, opening a wide set of opportunities to bring new functionalities to the end-users.
Introduction to SQL Server Analysis services 2008Tobias Koprowski
This is my presentation from 17th Polish SQL server User Group Meeting in Wroclaw. It\'s first part of Quadrology Bussiness Intelligence for ITPros Cycle.
In this slide, I will go throught below agenda
Overview About Azure
Azure Virtual Machine
SharePoint Hosting with Azure
Azure Website
Azure SQL Database
Azure for IOT
Azure with Business Intelligent
Conclusion
Digital Transformation and IT Strategy Toolkit and TemplatesAurelien Domont, MBA
This Digital Transformation and IT Strategy Toolkit was created by ex-McKinsey, Deloitte and BCG Management Consultants, after more than 5,000 hours of work. It is considered the world's best & most comprehensive Digital Transformation and IT Strategy Toolkit. It includes all the Frameworks, Best Practices & Templates required to successfully undertake the Digital Transformation of your organization and define a robust IT Strategy.
Editable Toolkit to help you reuse our content: 700 Powerpoint slides | 35 Excel sheets | 84 minutes of Video training
This PowerPoint presentation is only a small preview of our Toolkits. For more details, visit www.domontconsulting.com
Premium MEAN Stack Development Solutions for Modern BusinessesSynapseIndia
Stay ahead of the curve with our premium MEAN Stack Development Solutions. Our expert developers utilize MongoDB, Express.js, AngularJS, and Node.js to create modern and responsive web applications. Trust us for cutting-edge solutions that drive your business growth and success.
Know more: https://www.synapseindia.com/technology/mean-stack-development-company.html
More Related Content
Similar to 2010-06 - a smalltalk about salesforce.com with java architects at YaJuG
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open WideOCCIware
Hear hear dev & ops alike - ever got bitten by the fragmentation of the Cloud space at deployment time, By AWS vs Azure, Open Shift vs Heroku ? in a word, ever dreamt of configuring at once your Cloud application along with both its VMs and database ? Well, the extensible Open Cloud Computing Interface (OCCI) REST API (see http://occi-wg.org/) allows just that, by addressing the whole XaaS spectrum.
And now, OCCI is getting powerboosted by Eclipse Modeling and formal foundations. Enter Cloud Designer and other outputs of the OCCIware project (See http://www.occiware.org) : multiple visual representations, one per Cloud layer and technology. XaaS Cloud extension model validation, documentation & ops scripting generation. Simulation, decision-making comparison. Connectors that bring those models to life by getting their status from common Cloud services. Runtime middleware, deployed, monitored, adminstrated. And tackling the very interesting challenge of modeling a meta API in EMF's metamodel, while staying true to EMF, Eclipse tools and the OCCI standard.
Featuring Eclipse Sirius, Acceleo generators, EMF at runtime. Coming soon to a new Eclipse Foundation project near you, if so you'd like.
This talk includes a demonstration of the Docker connector and of how to use Cloud Designer to configure a simple Cloud application's deployment on the Roboconf PaaS system and OpenStack infrastructure.
Stackato presentation done at the Nordic Perl Workshop 2012 in Stockholm, Sweden
More information available at: https://logiclab.jira.com/wiki/display/OPEN/Stackato
Slides from my Feature Bits presentation at the 2010 Lean Software and Systems conference in Atlanta. See http://atlanta2010.leanssc.org/home/erik-sowa/ and http://www.leanssc.org/files/201004/videos/20100421_Sowa_EnabilingFlowWithinAndAcrossTeams/20100421_Sowa_EnabilingFlowWithinAndAcrossTeams.html
Course 3 : Types of data and opportunities by Nikolaos DeligiannisBetacowork
For more info about our Big Data courses, check out our website ➡️ https://www.betacowork.com/big-data/
---------
"Data is the new oil" - Many companies and professionals do not know how to use their data or are not aware of the added value they could gain from it.
It is in response to these problems that the project “Brussels: The Beating Heart of Big Data” was born.
This project, financed by the Region of Brussels Capital and organised by Betacowork, offers 3 training cycles of 10 courses on big data, at both beginner and advanced levels. These 3 cycles will be followed by a Hackathon weekend.
No prerequisites are required to start these courses. The aim of these courses is to familiarize participants with the principles of Big Data.
------
For more info about our Big Data courses, check out our website ➡️ https://www.betacowork.com/big-data/
Workshop on 10 March 2011, giving by Kurt Claeys (Microsoft), Mel Gerats and Olivier Mangelschots (Orbit One).
Topics:
Technical dive into Azure
Umbraco CMS and Azure
Azure Development Program
Hands-on workshop
Introduction to Microsoft Azure. Covers the change to a cloud development paradigm. Motivations for the change, Pricing structures, and an exercise in IT portfolio evaluation.
Azure Functions e Azure Logics Apps: i tuoi coltellini svizzeri per gestire i...Marco Parenzan
You have ore or more SQL Databases to manage. Sometimes you need to import, manipulate, export data, you need to work on schemas. You need to schedule some tasks, you need to wait some events before performing some over tasks. Or you need to send or manage notifications.
In all these situations, a little knowledge of programming languages, like C#, helps performing these tasks in a simpler and faster way. And you run code directly in the cloud.
So we'll introduce the little .NET knowledge required, how to write a Function App and functions and how to create data manipulation workflows.
Introduction and Overview of OpenStack for IaaSKeith Basil
These slides supported a presentation at the 2013 Red Hat Summit.
It covers:
✦ Introduction to OpenStack
✦ OpenStack Architecture
✦ Understanding the Elastic Cloud
✦ OpenStack in the Real World
innovations born in the cloud - cloud data services from IBM to prototype you...Wilfried Hoge
To bring your ideas to get insights from new data sources to live you must have the capabilities to prototype, fail fast if they don't work and bring to production easily if they are successful. See how IBM's cloud data services can help you to start testing your ideas with data.
In this session we will do a tour of the just released Isentris 4.0. We will see its enhanced visualization component, the new Isentris for Excel renderer, and how Pipeline Pilot can now be seamless called within Isentris, opening a wide set of opportunities to bring new functionalities to the end-users.
Introduction to SQL Server Analysis services 2008Tobias Koprowski
This is my presentation from 17th Polish SQL server User Group Meeting in Wroclaw. It\'s first part of Quadrology Bussiness Intelligence for ITPros Cycle.
In this slide, I will go throught below agenda
Overview About Azure
Azure Virtual Machine
SharePoint Hosting with Azure
Azure Website
Azure SQL Database
Azure for IOT
Azure with Business Intelligent
Conclusion
Similar to 2010-06 - a smalltalk about salesforce.com with java architects at YaJuG (20)
Digital Transformation and IT Strategy Toolkit and TemplatesAurelien Domont, MBA
This Digital Transformation and IT Strategy Toolkit was created by ex-McKinsey, Deloitte and BCG Management Consultants, after more than 5,000 hours of work. It is considered the world's best & most comprehensive Digital Transformation and IT Strategy Toolkit. It includes all the Frameworks, Best Practices & Templates required to successfully undertake the Digital Transformation of your organization and define a robust IT Strategy.
Editable Toolkit to help you reuse our content: 700 Powerpoint slides | 35 Excel sheets | 84 minutes of Video training
This PowerPoint presentation is only a small preview of our Toolkits. For more details, visit www.domontconsulting.com
Premium MEAN Stack Development Solutions for Modern BusinessesSynapseIndia
Stay ahead of the curve with our premium MEAN Stack Development Solutions. Our expert developers utilize MongoDB, Express.js, AngularJS, and Node.js to create modern and responsive web applications. Trust us for cutting-edge solutions that drive your business growth and success.
Know more: https://www.synapseindia.com/technology/mean-stack-development-company.html
Discover the innovative and creative projects that highlight my journey throu...dylandmeas
Discover the innovative and creative projects that highlight my journey through Full Sail University. Below, you’ll find a collection of my work showcasing my skills and expertise in digital marketing, event planning, and media production.
Business Valuation Principles for EntrepreneursBen Wann
This insightful presentation is designed to equip entrepreneurs with the essential knowledge and tools needed to accurately value their businesses. Understanding business valuation is crucial for making informed decisions, whether you're seeking investment, planning to sell, or simply want to gauge your company's worth.
What are the main advantages of using HR recruiter services.pdfHumanResourceDimensi1
HR recruiter services offer top talents to companies according to their specific needs. They handle all recruitment tasks from job posting to onboarding and help companies concentrate on their business growth. With their expertise and years of experience, they streamline the hiring process and save time and resources for the company.
Personal Brand Statement:
As an Army veteran dedicated to lifelong learning, I bring a disciplined, strategic mindset to my pursuits. I am constantly expanding my knowledge to innovate and lead effectively. My journey is driven by a commitment to excellence, and to make a meaningful impact in the world.
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...BBPMedia1
Marvin neemt je in deze presentatie mee in de voordelen van non-endemic advertising op retail media netwerken. Hij brengt ook de uitdagingen in beeld die de markt op dit moment heeft op het gebied van retail media voor niet-leveranciers.
Retail media wordt gezien als het nieuwe advertising-medium en ook mediabureaus richten massaal retail media-afdelingen op. Merken die niet in de betreffende winkel liggen staan ook nog niet in de rij om op de retail media netwerken te adverteren. Marvin belicht de uitdagingen die er zijn om echt aansluiting te vinden op die markt van non-endemic advertising.
VAT Registration Outlined In UAE: Benefits and Requirementsuae taxgpt
Vat Registration is a legal obligation for businesses meeting the threshold requirement, helping companies avoid fines and ramifications. Contact now!
https://viralsocialtrends.com/vat-registration-outlined-in-uae/
[Note: This is a partial preview. To download this presentation, visit:
https://www.oeconsulting.com.sg/training-presentations]
Sustainability has become an increasingly critical topic as the world recognizes the need to protect our planet and its resources for future generations. Sustainability means meeting our current needs without compromising the ability of future generations to meet theirs. It involves long-term planning and consideration of the consequences of our actions. The goal is to create strategies that ensure the long-term viability of People, Planet, and Profit.
Leading companies such as Nike, Toyota, and Siemens are prioritizing sustainable innovation in their business models, setting an example for others to follow. In this Sustainability training presentation, you will learn key concepts, principles, and practices of sustainability applicable across industries. This training aims to create awareness and educate employees, senior executives, consultants, and other key stakeholders, including investors, policymakers, and supply chain partners, on the importance and implementation of sustainability.
LEARNING OBJECTIVES
1. Develop a comprehensive understanding of the fundamental principles and concepts that form the foundation of sustainability within corporate environments.
2. Explore the sustainability implementation model, focusing on effective measures and reporting strategies to track and communicate sustainability efforts.
3. Identify and define best practices and critical success factors essential for achieving sustainability goals within organizations.
CONTENTS
1. Introduction and Key Concepts of Sustainability
2. Principles and Practices of Sustainability
3. Measures and Reporting in Sustainability
4. Sustainability Implementation & Best Practices
To download the complete presentation, visit: https://www.oeconsulting.com.sg/training-presentations
Implicitly or explicitly all competing businesses employ a strategy to select a mix
of marketing resources. Formulating such competitive strategies fundamentally
involves recognizing relationships between elements of the marketing mix (e.g.,
price and product quality), as well as assessing competitive and market conditions
(i.e., industry structure in the language of economics).
Improving profitability for small businessBen Wann
In this comprehensive presentation, we will explore strategies and practical tips for enhancing profitability in small businesses. Tailored to meet the unique challenges faced by small enterprises, this session covers various aspects that directly impact the bottom line. Attendees will learn how to optimize operational efficiency, manage expenses, and increase revenue through innovative marketing and customer engagement techniques.
Unveiling the Secrets How Does Generative AI Work.pdfSam H
At its core, generative artificial intelligence relies on the concept of generative models, which serve as engines that churn out entirely new data resembling their training data. It is like a sculptor who has studied so many forms found in nature and then uses this knowledge to create sculptures from his imagination that have never been seen before anywhere else. If taken to cyberspace, gans work almost the same way.
4. Cloud computing ?
• everything as a service
(and more) PAAS !
SAAS ! IAAS !
Cloud !
Cloud SA SaaS AG
• consider IT as a facility Cloud
computing
expert summit
provided on demand
June 30th, 2010 Yves Leblond @small_talks
5. The great IAAS leap forward ;-)
Before IAAS After IAAS
add some RAM, CPU, servers
and see what happens...
I have the solution : provision
but had to wait for budget,
some virtual machines ;-)
purchase and delivery... so
think twice
Does anyone knows what this What is this virtual machine
server is there for ? don’t for ? anyway, it costs ‘only’
unplug it ! 100!/month. don’t touch !.
(even in big banks...)
June 30th, 2010 Yves Leblond @small_talks
6. The owner point of
view
more flexible
Cheaper
June 30th, 2010 Yves Leblond @small_talks
7. What may happen if wild
usages (as usual?)
the more systems we
Virtualisation have, the more we are happy !
is our new game ! The worst the software is, the most
Give us more System we have work
fun ! administrators That will never change !
June 30th, 2010 Yves Leblond @small_talks
8. “Good practices usage” is the key to cloud
computing implementation projects
• ITSM ‘in the IAAS cloud’ :
new constraints, but stay rigorous (even more)
• Software design ‘in the PAAS cloud’:
think scalability and cloud deployment
• Learn, then use best practices, cloud application
frameworks, etc...
• Or...
June 30th, 2010 Yves Leblond @small_talks
9. Lets take the developer
(and user) point of view
IAAS (may be) part of the solution.
but not the solution
SOFTWARE DESIGN
USER SOLUTION DESIGN
June 30th, 2010 Yves Leblond @small_talks
21. Apex language
trigger blockDuplicates_tgr on Lead bulk(before insert, before update) {
/*
* begin by building a map which stores the (unique) list of leads
* being inserted/updated, using email address as the key.
*/
Map<String, Lead> leadMap = new Map<String, Lead>();
for (Lead lead : System.Trigger.new) {"
if (lead.Email != null) { // skip null emails
" /* for inserts OR
" * updates where the email address is changing
" * check to see if the email is a duplicate of another in
" * this batch, if unique, add this lead to the leadMap
" */
" if ( System.Trigger.isInsert ||
" " (System.Trigger.isUpdate &&
"lead.Email != System.Trigger.oldMap.get(lead.Id).Email)) {
""
" if (leadMap.containsKey(lead.Email)) {
" lead.Email.addError('Another new lead has the same email address.');
" } else {
" leadMap.put(lead.Email, lead);
" }
" }
}
}
/* Using the lead map, make a single database query,
* find all the leads in the database that have the same email address as
* any of the leads being inserted/updated.
*/ June 30th, 2010 Yves Leblond @small_talks
for (Lead lead : [select Email from Lead where Email IN :leadMap.KeySet()]) {
22. Apex usage
• triggers
• classes (internal or web services)
• batch processing
• Visualforce controllers
• ...
June 30th, 2010 Yves Leblond @small_talks
23. SOQL - SOSL
• SOQL (Salesforce Object Query Language)
• “select” : more or less the SQL logic for querying
objects stored in DB
• “insert, update, delete” : used for loaded/instantiated
objects (one or many per request), not like SQL
processing logic (more like a “persistence layer”).
• SOSL (Salesforce Object Search Languages)
• text based search (full text indexes)
June 30th, 2010 Yves Leblond @small_talks
25. Security and
user management
• by roles (company organigram)
• by profile (manager, vendor, project mgr)
• can be refined using complexe rules (e.g.
depending of attributes values)
• immediate and automatic propagation
June 30th, 2010 Yves Leblond @small_talks
27. Packaging
• a set of custom object definitions, classes,
trigger definitions,VisualForce components
• “packaged” together
• to be moved from on org to another
• Versioning and dependancies
• Installation and uninstallation (removing associated data)
• Unit tests mandatory !
• 75% of code must be covered by unit tests before
being packaged...
June 30th, 2010 Yves Leblond @small_talks
28. Sandbox
• a complete copy of your company data (called your
“organisation”), where you can :
• deploy new packages version
• deploy other company applications
• and test them for real
Have you ever dream of such a test environment ???
think to the efforts, human and financial ressources,
to have a test environment always up to date...
June 30th, 2010 Yves Leblond @small_talks
29. force.com governor
Governor limit : execution time, external calls per
transaction, SOQL statements per transaction, ...
Limit Trigger Anonymous Block, ...
Total number of SOQL queries issued2 20 100
Total number of records retrieved by SOQL queries 1000 10000
Total number of SOSL queries issued 0 20
Total number of records retrieved by a single SOSL query 0 200
Total number of DML statements issued (insert, update, upsert, merge, delete,
or database.emptyRecycleBin) 20 100
Total number of records processed as a result of DML statements or
database.emptyRecycleBin 100 10000
....
June 30th, 2010 Yves Leblond @small_talks
30. force.com governor
The governor is there to guarantee
performance and scalability fo all
customers.
June 30th, 2010 Yves Leblond @small_talks
31. Best practices
Governor (performance constraints), mandatory unit
tests, bulk management processing and most of the
salesforce constraints
help also developer to apply best software practices
even if it is sometimes frustrating ;-), if used to “Code and Go Live”.
June 30th, 2010 Yves Leblond @small_talks
32. 3. At the heart :
the multitenant
architecture
June 30th, 2010 Yves Leblond @small_talks
33. “There is only one salesforce
database worldwide shared by all
salesforces organisations and
customers”
And it is a giant Oracle Database, located in US,
Singapore, and next in Europe data centers.
June 30th, 2010 Yves Leblond @small_talks
39. This is where important
part of SF “know how” is
(patented) : how to
guarantee request
response time....
Salesforce rebuild a query engine for the databases
in order to manage
300.000.000 transactions every day,
very little servers
and an average response time of 270ms
see http://trust.salesforce.com for live stats
June 30th, 2010 Yves Leblond @small_talks
40. and Java ?
• Internally, there is a lot of java :
• APEX is precompiled in java code
• it seems that VisualForce generates Java
Faces code
• ...
• But you don’t see it ;-)
June 30th, 2010 Yves Leblond @small_talks
42. One of the integration options
• Flex • Amazon • Python
• .net & VB • AJAX • Cocoa
• Ruby • java
• Google • PHP • Any WSDL consumer
(APEX classes can be
• Perl • Facebook declared as web
services)
June 30th, 2010 Yves Leblond @small_talks
44. try {
binding = (SoapBindingStub) new SforceServiceLocator().getSoap();
} catch (ServiceException ex1) {
System.out.println(ex1.getMessage());
return;
}
try {
lr = binding.login(userName, pwd);
} catch (UnexpectedErrorFault ex2) {
connect
System.out.println(ex2.getExceptionMessage() + "nn"
return;
} catch (LoginFault ex2) {
System.out.println(ex2.getExceptionMessage() + "nn");
return;
} catch (RemoteException ex2) {
System.out.println(ex2.getMessage() + "nn");
return;
}
// create a variable to hold the query result
QueryResult qr = null;
// call the query saving the results in qr SOQL request
try {
qr = binding
.query("select Name, numberOfEmployees, Id, Industry from Account");
} catch (UnexpectedErrorFault uef) {
System.out.println(uef.getExceptionMessage() + "nn");
return;
} catch (Exception e) {
e.printStackTrace();
System.out.println("nn");
java
return;
}
if (qr != null) {
SObject[] records = qr.getRecords();
_accounts = new Account[records.length];
// we can loop through the returned records
for (int i = 0; i < records.length; i++) {
// Because we asked for accounts we will convert
// the SObject for each record into an Account object
Account account = (Account) records[i];
_accounts[i] = account;
// Now we can access any of the fields we had in the query
// select clause directly from the account variable
System.out.print(new Integer(i).toString() + ". ");
System.out.print(account.getName() + " - ");
System.out.println(account.getId());
}
June 30th, 2010 Yves Leblond @small_talks
45. Data management
using “Partner WSDL”
weakly typed, based on
generic metadata infos
June 30th, 2010 Yves Leblond @small_talks
46. private void querySample() {
...
QueryResult qr = null;
QueryOptions qo = new QueryOptions();
qo.setBatchSize(new Integer(3));
binding.setHeader(new SforceServiceLocator().getServiceName()
.getNamespaceURI(), "QueryOptions", qo);
SOQL request
try {
qr = binding.query("select FirstName, LastName from Contact");
int loopCount = 0;
boolean continueLoop = true;
while (continueLoop) {
java, but
// process the query results
for (int i = 0; i < qr.getRecords().length; i++) {
SObject con = qr.getRecords()[i];
laborious.
String fName = "";
String lName = "";
(like in old JDBC)
if (con.get_any()[0].getName().toLowerCase().equals(
"firstname")) {
fName = con.get_any()[0].getValue();
lName = con.get_any()[1].getValue();
} else
lName = con.get_any()[0].getValue();
if (fName == null) {
System.out.println("Contact " + (i + 1) + ": " + lName);
} else {
System.out.println("Contact " + (i + 1) + ": " + fName
+ " " + lName);
}
}
// handle the loop + 1 problem by checking to see if the most
// recent queryResult
if (qr.isDone())
continueLoop = false;
else
qr = binding.queryMore(qr.getQueryLocator());
}
System.out.println("nQuery succesfully executed.");
getUserInput("nHit return to continue...");
} catch (ApiFault af) {
System.out
.println("nFailed to execute query succesfully, error message was: n"
+ af.getExceptionMessage());
June 30th, 2010
getUserInput("nHit return to continue...");
} catch (Exception ex) {
Yves Leblond @small_talks
47. Even metadata
management can be
done in Java...
June 30th, 2010 Yves Leblond @small_talks
48. ex : creation of a new kind of
Custom Object type
private void createCustomObject()
{
"
"
CustomObject co = new CustomObject();
String name = "My Custom Object";
NB :
"
"
co.setFullName("MyCustomObject" + "__c");
co.setDeploymentStatus(DeploymentStatus.Deployed);
the Force.com IDE
"
"
co.setDescription("Created by the Metadata API Sample");
co.setEnableActivities(true); (eclipse plugin)
"
"
co.setLabel(name);
co.setPluralLabel(co.getLabel() + "s"); use this.
" co.setSharingModel(SharingModel.ReadWrite);
" CustomField nf = new CustomField();
" nf.setType(FieldType.Text);
" nf.setDescription("The custom object identifier on page layouts, " +
"related lists etc");
" nf.setLabel("My Custom Object");
" nf.setFullName("MyCustomObject" + " __c");
null)try { AsyncResult[] ars = metadatabinding.create(new CustomObject[] { co }); if (ars ==
" {
" " System.out.println("The object was not created successfully"); return;
" }
" String createdObjectId = ars[0].getId();"
" String[] ids = new String[] {createdObjectId};
" boolean done = false;
" long waitTimeMilliSecs = ONE_SECOND;
" AsyncResult[] arsStatus = null;
"
" ….
June 30th, 2010 Yves Leblond @small_talks
50. VMforce ?
• VMforce : Spring applications on top of this
• Custom Objects : your data
• Native GUI and customization
• Workflow, Rules, Security profiles, ...
• Apex Classes and Triggers : processing
• VisualForce : native MVC framework
June 30th, 2010 Yves Leblond @small_talks
52. • Spring :
• Spring Framework
• SpringSource TC server (Server® runtime, the Enterprise version of
Apache Tomcat)
• force.com
• force.com services
• force.com database
• everything we talked before : including automatic scalability, high
availability, auto-tuning, back up and disaster recovery....
• VMware
• vCloud technology: Automatic management of the Java stack that
powers VMforce applications
• VMware vSphere: Industry leading virtualization platform will provide
the resource isolation, management, and virtualization
June 30th, 2010 Yves Leblond @small_talks