Package org.b3log.latke.repository

Examples of org.b3log.latke.repository.Repository.beginTransaction()


            };
        }

        repository.setCacheEnabled(false);

        final Transaction transaction = repository.beginTransaction();
        try {
            final String dataContent = request.getParameter("data").trim();
            final JSONArray data = new JSONArray(dataContent);
            for (int i = 0; i < data.length(); i++) {
                final JSONObject record = data.getJSONObject(i);
View Full Code Here


     */
    @Override
    public EntityTransaction getTransaction() {
        // The user repository is a Latke built-in repository
        final Repository userRepository = Repositories.getRepository(User.USER);
        final Transaction transaction = userRepository.beginTransaction();

        return new EntityTransactionImpl(transaction);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.