Package com.arcusys.learn.persistence.liferay.model.impl

Examples of com.arcusys.learn.persistence.liferay.model.impl.LFFileStorageImpl


     * @param id the primary key for the new l f file storage
     * @return the new l f file storage
     */
    @Override
    public LFFileStorage create(long id) {
        LFFileStorage lfFileStorage = new LFFileStorageImpl();

        lfFileStorage.setNew(true);
        lfFileStorage.setPrimaryKey(id);

        return lfFileStorage;
    }
View Full Code Here


    protected LFFileStorage toUnwrappedModel(LFFileStorage lfFileStorage) {
        if (lfFileStorage instanceof LFFileStorageImpl) {
            return lfFileStorage;
        }

        LFFileStorageImpl lfFileStorageImpl = new LFFileStorageImpl();

        lfFileStorageImpl.setNew(lfFileStorage.isNew());
        lfFileStorageImpl.setPrimaryKey(lfFileStorage.getPrimaryKey());

        lfFileStorageImpl.setId(lfFileStorage.getId());
        lfFileStorageImpl.setFilename(lfFileStorage.getFilename());
        lfFileStorageImpl.setContent(lfFileStorage.getContent());

        return lfFileStorageImpl;
    }
View Full Code Here

TOP

Related Classes of com.arcusys.learn.persistence.liferay.model.impl.LFFileStorageImpl

Copyright © 2018 www.massapicom. 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.